Activity & Audit Trail
Browse, export, and append chronological activity entries for observability and compliance.
MuBit tracks all memory operations as a chronological activity trail. Use it for observability, debugging, compliance audit, and manual trace annotation.
Activity is distinct from semantic retrieval (recall / query). It provides exact chronological ordering — what happened and when — rather than ranked relevance.
Browse activity
List recent activity entries for a run with optional type and agent filters.
Activity has no dedicated SDK helper. Browse, export, and append are reachable only over raw HTTP (POST /v2/control/activity, /v2/control/activity/export, /v2/control/activities/append) or gRPC (ListActivity, ExportActivity, AppendActivity). The examples below use the HTTP transport; authenticate with Authorization: Bearer <api_key>.
POST /v2/control/activity returns entries sorted newest-first (sort defaults to "desc"). limit defaults to 100 and is clamped to 500. Each entry uses the proto field names — note entry_type and created_at (not type/timestamp).
Export activity
Export the full activity trail for offline analysis or compliance archival. The request takes the same filters as the browse call (run_id, user_id, agent_id, entry_types, created_after, created_before, sort) — there is no format request field. The response always returns JSONL, with the format string and serialized entries in the response's format and content fields.
Append activity
Manually append an activity trace — useful for logging external observations, human annotations, or system events that aren't captured automatically. Each request appends a single activity record (not a list). The record carries type and payload (required) plus optional tool_name, input_ref, output_ref, ts, and agent_id. Issue one request per record.
Activity vs. semantic query
ListActivity | recall / query | |
|---|---|---|
| Ordering | Chronological (exact timestamps) | Relevance-ranked |
| Use case | Audit, debugging, compliance | Context retrieval for LLM prompts |
| Filters | Type, agent, time range | Semantic similarity, entry types |
| Output | Raw entries as ingested | Answer with evidence scoring |
Use activity for "what happened" questions. Use query/recall for "what's relevant" questions.
API reference
| Transport | Endpoint |
|---|---|
| HTTP | POST /v2/control/activity (list), POST /v2/control/activity/export (export), POST /v2/control/activities/append (append) |
| gRPC | ListActivity, ExportActivity, AppendActivity |
See Control HTTP reference and Control gRPC reference for full request/response schemas.
Next steps
- See SDK methods for the full method catalog.
- See Control HTTP reference for request/response field details.