TrajectoryEvent
A compact, replay-oriented record of one harness-side action or observation.
Class Diagram
Section titled “Class Diagram”---
title: TrajectoryEvent
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class TrajectoryEvent {
+string id
+string sessionId
+string turnId
+string toolCallId
+int32 turnIndex
+string eventType
+dictionary data
+string createdAt
+RedactionMetadata redaction
}
class RedactionMetadata {
+boolean sanitized
+RedactedField[] fields
+string policy
}
TrajectoryEvent *-- RedactionMetadata
Yaml Example
Section titled “Yaml Example”id: traj_abc123sessionId: sess_abc123turnId: turn_001toolCallId: call_abc123turnIndex: 4eventType: commandcreatedAt: 2026-06-09T20:00:00ZProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| id | string | Stable trajectory event identifier |
| sessionId | string | Stable session identifier |
| turnId | string | Associated turn identifier, when available |
| toolCallId | string | Associated tool call identifier, when available |
| turnIndex | int32 | Zero-based turn index in the session |
| eventType | string | Host-defined trajectory event category |
| data | dictionary | Sanitized event data |
| createdAt | string | ISO 8601 UTC timestamp when the trajectory event was recorded |
| redaction | RedactionMetadata | Redaction state for sensitive trajectory fields |
Composed Types
Section titled “Composed Types”The following types are composed within TrajectoryEvent: