Event Schema

Event Schema

Events are the operational history of Mnemos Harness. They record important runtime state transitions and are append-only.

The v0 SQLite events table stores:

seq
id
kind
actor
profile_id
workspace_id
run_id
task_id
payload_json
schema_version
created_at
hash_prev
hash_self

seq is the local monotonic sequence. id is the hash of the event content. hash_prev points at the previous event hash or the zero hash for the first record. hash_self is a SHA-256 hex digest over the previous hash, kind, actor, payload, and timestamp.

Initial event commands:

mnemos events append run.created '{"cwd":"."}'
mnemos events tail

Implemented v0 event kinds:

daemon.started
run.started
run.finished
run.failed
workspace.added
worktree.created
worktree.destroyed
worktree.reviewed
policy.decision
approval.requested
approval.approved
approval.denied
task.created
evidence.added

Future event families include tools, task review/completion, worktree review/merge, extensions, model health, memory, skills, and jobs.