Skip to content

Graph

The graph and its primitives — objects, relations, patches, views, and events. The graph is a projection of the event log; mutations go through events. For the conceptual model see concepts/graph.

Event-sourced graph. The log is truth; objects/relations are projection.

attach_store(store)

Wire an EventStore as the durability sink. Idempotent on the same store. Calling with a different store after events exist is an error — events would be persisted in two places and you'd lose history.

emit(event)

Append to log, project, persist (if attached), notify. CONTRACT #2.

patch_object(target, updates, *, actor='system', caused_by=None, frame_id=None, rationale=None, evidence=None, llm_request_event_id=None, tool_request_event_ids=None)

Auto-apply shortcut: build patch, version-check, emit applied/rejected.

Primitives

Diffs