-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.agent-plane.patch.yaml
More file actions
249 lines (235 loc) · 8.5 KB
/
Copy pathopenapi.agent-plane.patch.yaml
File metadata and controls
249 lines (235 loc) · 8.5 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
# Additive OpenAPI patch fragment for the agent-plane schema family.
# Merge this file into openapi.yaml at build time.
# All operations require bearerAuth (inherited from the base spec security requirement).
tags:
- name: Agent Plane
description: Agent sessions, execution decisions, skills, memory, and session receipts
paths:
/v2/sessions:
post:
operationId: upsertAgentSession
summary: Upsert an AgentSession
description: Creates or updates an autonomous agent session record with its role, mode, substrate, and execution surface. Idempotent on `id`.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/AgentSession.json' }
responses:
'200':
description: AgentSession created or updated successfully.
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to upsert sessions.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/execution/decide:
post:
operationId: decideExecution
summary: Record an ExecutionDecision
description: |
Persists an immutable execution decision (allow, deny, ask, defer, or rewrite) made by
an agent during a session. Returns the stored ExecutionDecision with its assigned URN.
Idempotent on `id`.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/ExecutionDecision.json' }
responses:
'200':
description: ExecutionDecision recorded and returned.
content:
application/json:
schema: { $ref: './schemas/ExecutionDecision.json' }
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to record execution decisions.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/skills:
post:
operationId: upsertSkillManifest
summary: Upsert a SkillManifest
description: Creates or updates an agent skill manifest with its activation rules, requirements, and policy bindings. Idempotent on `id`.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/SkillManifest.json' }
responses:
'200':
description: SkillManifest created or updated successfully.
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to upsert skill manifests.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/memory:
post:
operationId: upsertMemoryEntry
summary: Upsert a MemoryEntry
description: Creates or updates a persistent agent memory entry of kind rule, learned, or recap. Idempotent on `id`.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/MemoryEntry.json' }
responses:
'200':
description: MemoryEntry created or updated successfully.
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to upsert memory entries.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/receipts/session:
post:
operationId: recordSessionReceipt
summary: Record a SessionReceipt
description: Persists the final outcome record for a completed AgentSession, including all produced artifacts and gate results. Idempotent on `id`.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/SessionReceipt.json' }
responses:
'200':
description: SessionReceipt recorded successfully.
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to record session receipts.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/artifacts/manifest:
post:
operationId: upsertArtifactManifest
summary: Upsert an ArtifactManifest
description: Creates or updates a shell/document artifact manifest for a derived artifact such as a PDF.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/ArtifactManifest.json' }
responses:
'200':
description: ArtifactManifest recorded successfully.
/v2/artifacts/signature:
post:
operationId: recordSignedArtifact
summary: Record a SignedArtifact
description: Persists the signature metadata associated with a signed artifact.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/SignedArtifact.json' }
responses:
'200':
description: SignedArtifact recorded successfully.
/v2/artifacts/validation:
post:
operationId: recordPdfValidationReport
summary: Record a PdfValidationReport
description: Persists a PDF validation report for an artifact.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/PdfValidationReport.json' }
responses:
'200':
description: PdfValidationReport recorded successfully.
/v2/annotations/export:
post:
operationId: recordAnnotationExport
summary: Record an AnnotationExport
description: Persists an annotation export from PDF or HTML review surfaces.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/AnnotationExport.json' }
responses:
'200':
description: AnnotationExport recorded successfully.
/v2/runs/report:
post:
operationId: recordRunReport
summary: Record a RunReport
description: Persists a run report describing workflow artifacts and publication outputs.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/RunReport.json' }
responses:
'200':
description: RunReport recorded successfully.
/v2/diagnostics/noether:
post:
operationId: recordNoetherDiagnostic
summary: Record a NoetherDiagnostic
description: Persists a Noether diagnostic reading for a model layer or run.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/NoetherDiagnostic.json' }
responses:
'200':
description: NoetherDiagnostic recorded successfully.
/v2/publish/decisions:
post:
operationId: recordPublishDecision
summary: Record a PublishDecision
description: Persists a publish decision across knowledge, value, and ecosystem openness lanes.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/PublishDecision.json' }
responses:
'200':
description: PublishDecision recorded successfully.
/v2/mirror/receipts:
post:
operationId: recordMirrorReceipt
summary: Record a MirrorReceipt
description: Persists a receipt for an artifact mirrored to a downstream channel.
tags: [Agent Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/MirrorReceipt.json' }
responses:
'200':
description: MirrorReceipt recorded successfully.