-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.truth-plane.patch.yaml
More file actions
77 lines (73 loc) · 2.82 KB
/
openapi.truth-plane.patch.yaml
File metadata and controls
77 lines (73 loc) · 2.82 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
# Additive OpenAPI patch fragment for the Truth Plane (truth surfaces + delta surfaces + incident events).
# Merge this file into openapi.yaml at build time.
# All operations require bearerAuth (inherited from the base spec security requirement).
tags:
- name: Truth Plane
description: Signed truth surfaces, delta surfaces, and incident lifecycle events
paths:
/v2/truth/surfaces:
post:
operationId: upsertTruthSurface
summary: Upsert a TruthSurface
description: Creates or updates a signed TruthSurface emitted by a plane (system/user/agent/witness). Idempotent on `id`.
tags: [Truth Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/TruthSurface.json' }
responses:
'200':
description: TruthSurface 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 truth surfaces.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/truth/deltas:
post:
operationId: recordDeltaSurface
summary: Record a DeltaSurface
description: Records a signed DeltaSurface comparing two TruthSurfaces. Idempotent on `id`.
tags: [Truth Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/DeltaSurface.json' }
responses:
'200':
description: DeltaSurface 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 delta surfaces.
'422':
description: Request body is valid JSON but fails schema validation.
/v2/incidents:
post:
operationId: recordIncidentEvent
summary: Record an IncidentEvent
description: Records an incident lifecycle event (freeze/fork/kill) with evidence refs. Idempotent on `event_id`.
tags: [Truth Plane]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/control-plane/IncidentEvent.json' }
responses:
'200':
description: IncidentEvent 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 incident events.
'422':
description: Request body is valid JSON but fails schema validation.