Interface AuditEntry

A single entry in the emergent tool audit trail.

Audit entries record every significant state change: registration, promotion, demotion, usage recording, and session cleanup. They are stored both in-memory and (when a storage adapter is provided) in the agentos_emergent_audit_log SQLite table.

interface AuditEntry {
    id: string;
    toolId: string;
    eventType: string;
    data?: unknown;
    timestamp: number;
}

Properties

id: string

Unique identifier for this audit entry.

toolId: string

The tool ID this event pertains to.

eventType: string

Machine-readable event type (e.g., 'register', 'promote', 'demote').

data?: unknown

Optional structured data associated with the event.

timestamp: number

Unix epoch millisecond timestamp of when the event occurred.