Visit History V2 — layout & format

.visit_history/
  v2/
    README__generated__vh_v2_format.md    # this file
    focus_per_device/
      <device-name>/                      # hostname on desktop; mobile-XXXXXXXX on mobile
        <doc-id>.vh_v2                    # one focus file per (device, document)
  • The filename is the document’s persistent id: frontmatter id for .md (incl. .excalidraw.md), metadata.frontmatter.id for .canvas.
  • Each .vh_v2 file holds one focus timestamp per line — ISO 8601 UTC with millisecond precision (e.g. 2026-07-09T12:34:56.789Z) — newline-terminated, sorted ascending, without exact duplicates.
  • Per-device directories keep synced devices from ever writing the same file (no sync conflicts).
  • Documents whose id is not filename-safe cannot be tracked and are skipped.