hephaestus/docs/reference
Erich Blume c81d45a291
Some checks failed
Build / validate (pull_request) Failing after 4s
heph-core: real HLC + persistent device origin (sync 8a)
First sync slice. Ratifies yrs for body merge in the tech-spec.

- hlc module: Hlc (physical, counter, origin) with a fixed-width encoding
  whose lexical order equals causal order; HlcClock generator (tick/update)
  — clock-injected, strictly monotonic. Unit + 2 proptests.
- meta table (migration v3) holds the stable per-device `origin` and the
  last HLC. next_hlc() does a read-modify-write inside the caller's
  transaction (store is single-writer, so no race), replacing the
  timestamp placeholder. Every node write is now stamped with a real,
  monotonic, causally-ordered HLC.

4 stamping integration tests (monotonic under stalled/regressed clock;
origin shared + persists across reopen; HLC resumes from persisted state).
89 tests green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 21:13:55 -07:00
..
reference.md Set up hephaestus from template and add design + tech spec 2026-05-31 09:37:28 -07:00
tech-spec.md heph-core: real HLC + persistent device origin (sync 8a) 2026-05-31 21:13:55 -07:00