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
//! IPC message types for the Unix domain socket protocol.
//!
//! `IpcFrame` represents messages arriving from an SDK process (inbound).
//! `IpcResponse` represents messages sent back to an SDK process (outbound).
use AuditEvent;
use ApprovalDecision;
use CheckActionRequest;
/// A decoded message received from an SDK process over the Unix socket.
///
/// Each variant corresponds to a 1-byte wire tag:
/// - `1` = PolicyQuery
/// - `2` = EventReport
/// - `3` = ApprovalResponse
/// - `4` = Heartbeat
// AuditEvent grew with AAASM-934 lineage fields; the size disparity between
// EventReport and the other variants is inherent to the design.
use PolicyViolation;
use CheckActionResponse;
/// A message sent from the runtime back to an SDK process over the Unix socket.
///
/// Each variant corresponds to a 1-byte wire tag:
/// - `1` = PolicyResponse
/// - `2` = ApprovalDecision (async push when a PENDING decision resolves)
/// - `3` = Ack
/// - `4` = ViolationAlert (runtime pushes a policy violation back to the originating SDK)