Expand description
NATS-based code graph synchronization (EX-3184).
When an agent modifies a CodeNode via code_replace, the change is published
to nusy.code.graph.updates. Other agents subscribed to that subject receive
the update within milliseconds and apply it to their local graph.
This is multi-writer (unlike kanban’s single-writer pattern). Conflicts are
detected and logged to nusy.code.graph.conflict for the Captain to review.
Structs§
- Code
Graph Publisher - Publishes code graph updates to NATS.
- Code
Graph Update - A code graph mutation event, published over NATS.
- Conflict
Event - A conflict detected during sync (two agents edited the same node).
- Syncable
Graph - The subset of graph state needed for sync operations.
Enums§
- Update
Type - Type of graph mutation.
Constants§
- CONFLICT_
SUBJECT - Subject for conflict notifications.
- UPDATES_
SUBJECT - Subject for code graph update events.
Functions§
- subscribe_
and_ apply - Subscribe to code graph updates and apply them locally.
Type Aliases§
- Shared
Graph State - Shared graph state that the subscriber can update.