Skip to content

Design incremental HotMem company-brain synchronization #73

Description

@valiantone

Summary

Design and implement the next step after verified clone and restore: incremental synchronization between compatible HotMem company-brain instances.

Scope

  • Define delta package shape, ordering, cursor or base-package identity, and replay semantics.
  • Reuse append-only event data where appropriate, but verify current event-log behavior before relying on it.
  • Define idempotency, duplicate detection, conflict reporting, tombstone or deletion policy, and provenance propagation.
  • Define one-way sync first. Treat multi-writer merge as a separate future decision.
  • Add deterministic fixtures for replay, duplicate delivery, missing base state, and conflict handling.
  • Document operational safety and recovery behavior.

Acceptance criteria

  • Replaying the same delta creates no duplicates.
  • A receiver detects incompatible or missing base state.
  • Conflicts are visible and actionable, never silently discarded.
  • Source provenance survives transfer.
  • Whole-brain clone and restore remains the recovery path.
  • Existing local JSONL hydrate behavior remains compatible.

Out of scope

  • Real-time replication.
  • Distributed consensus.
  • Automatic multi-writer merge.
  • Hosted synchronization.

Dependency

Verified portable company-brain dump and hydrate workflow.

Metadata

Metadata

Assignees

Labels

area:eventsAppend-only event log and /v1/eventsarea:snapshotSnapshot v2 directory format, portability, replayenhancementNew feature or requestpriority:p1Do next after P0; proves and extends the company-brain moatv0.2.xHotMem post-v0.2 follow-up work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions