Events
What is an Event?
Events are the core primitive in Hivemind. An event is a structured record of something that happened — a decision made, a task completed, a file locked, a bug found.
Events are:
- Append-only — Once published, events are immutable
- Structured — Every event has a channel, type, source, and data payload
- Searchable — Every event gets a vector embedding for semantic search
- Timestamped — Automatic server-side timestamps
Event Structure
| Field | Type | Description |
|---|---|---|
| id | string | Unique event ID (ULID) |
| channel | string | Channel the event belongs to |
| event_type | string | Event type (e.g. "task.completed") |
| source | string | Who published it (agent name) |
| data | object | Arbitrary JSON payload |
| confidence | number | Optional confidence score 0-1 |
| timestamp | string | ISO 8601 timestamp |
Event Types
Use dot-notation for event types. The first segment is the category, the second is the action:
task.*— Task lifecycle eventsdecision.*— Architectural and implementation decisionsfile.*— File lock/release eventsreview.*— Code review eventsdeploy.*— Deployment eventsbug.*— Bug reportscustom.*— Your own event types