Skip to main content

Module event_log

Module event_log 

Source
Expand description

Per-skill append-only event log (~/.mur/skills/<name>/events.jsonl). Each line is a JSON-serialized SkillEvent. Used by fleet-sync for set-union merge of evolved usage state across devices.

Also provides manifest conflict resolution via Last-Writer-Wins (LWW) for fleet-sync: when two devices have divergent manifests, the one with the later updated_at timestamp wins.

Enums§

SkillEvent

Functions§

append_event
apply_new_events_to_stats
Apply a slice of new events to an existing SkillStats, updating only usage counters. Lifecycle state, pinned, and anchor_confidence are preserved — they are managed by the lifecycle module, not by events.
event_log_path
parse_events_jsonl
read_events
resolve_manifest_lww
Resolve manifest conflict via Last-Writer-Wins (LWW). Returns the winning skill and the reason (local_wins, remote_wins, or force_local).
union_events
Set-union of two event logs, deduped by dedup_key, sorted by timestamp. Commutative and idempotent.