append records at the tail, read starting from any position in the stream, and check-tail to figure out the tail.
seq_num: 42
timestamp: 1713812735000
headers:
role: agent
response-type: tool-call
format: json
body:
timestamp: 1713812735000
headers:
role: agent
response-type: tool-call
format: json
body:
Anatomy of a record
Sequence number
Strictly increasing position within the stream.Always assigned by S2.
Timestamp
Arrival time in milliseconds.Assigned by S2 or client-specified.
Headers
Name-value pairs, similar to HTTP headers.Both name and value can be arbitrary bytes.
Body
The core payload of a record.Arbitrary bytes.

