Skip to content

v0.1.6 — HarloPulse: the push-on-arrival biometric loop

Latest

Choose a tag to compare

@JosephOIbrahim JosephOIbrahim released this 10 Jun 19:37
· 49 commits to master since this release

The loop is live

Apple Watch → iPhone HealthKit → background push → Mac launchd socket → biometric barrier → coach. First organic biometrics flowed June 10; the loop is autonomous, survives reboots on both ends, and runs at zero resident processes between Watch syncs.

The codebase at this tag

Component What it is State
crates/hippocampus (Rust) The hot path: 1-bit SDR encoding, XOR/Hamming search, lazy decay, apoptosis, verified-only reflex cache — exposed to Python via PyO3 1,849 lines · 42/42 tests · 0.844 ms median search @ 100k traces
python/harlo Orchestration: two hemispheres, Bridge + Amygdala, Modulation Layer + Blood-Brain Barrier, Elenchus GVR verification, DMN inquiry engine, Motor Cortex with Basal Ganglia inhibition-default gating, MCP server (coach · recall · store · patterns · status · decision + USD-proof demo tools) 188 files · ~25.7k lines
USD substrate Real pxr.Usd canonical persistence (21 codeless prim types under the harlo plugin) + USD-Lite in-memory runtime tier — the Fabric pattern. Native composition theses confirmed live in v0.1.2 live stage on disk
ios/HarloPulse (Swift) iPhone sidecar: HealthKit per-type opt-in reads, HKObserverQuery push-on-arrival, HMAC-framed transport, full App Intents surface (Siri / Shortcuts / Spotlight) 1,270 lines · signed iOS 27 build, deployed to hardware
macOS surface Harlo.app bundle + launchd socket-activated units (daemon · agents · pulse), HealthBridge scaffold 0 W idle — launchctl PID column reads -
Tests + docs 109 Python test files; ADRs, WWDC26 frontier analyses, signing runbook, CTO reviews in docs/ 1,381 passed (lean bundle) · 42 Rust

The 33 inviolable rules (CLAUDE.md) are enforced mechanically — compliance greps, structural plist tests, build-failing constraints — not by convention.

Benchmarks (measured on the reference M1 Ultra, reproducible via cargo bench -p hippocampus)

Path Constitutional budget Measured
SDR search, 100k traces (k=5) < 2 ms (Rule 3) 0.844 ms median
Cold start — FFI import + first recall < 5 ms (Rule 3) 3.4 ms
Hot recall round trip (Python → Rust → SQLite) < 2 ms (Rule 3) 0.66 ms p50 · 0.94 ms p95
Resident processes between sessions 0 (Rule 1) 0

Shipped in v0.1.6

  • HarloPulse on hardware (Xcode 27 / iOS 27 SDK): 6-word HMAC pairing (raw token never persists — Keychain / 0600 derived key only), per-type opt-in with default OFF (ADR-0001 / D65), background delivery push-on-arrival, 48h lookback + chunked frames.
  • Mac side at 0 W (Rule 1): launchd holds TCP 48653, spawns pulse listen on the first SYN; the listener adopts the socket, drains, exits. KeepAlive structurally forbidden by plist tests.
  • Rule 9 containment: raw samples consumed in memory; only the derived modulation verdict (load / depleted / stale) persists and surfaces in the coach.
  • App Intents (WWDC26 P0+P1): "Sync HarloPulse," status snippet, toggles with clarification + foreground continuation, OpenIntent, onscreen awareness (iOS 18.2+), payload-free donations.
  • Four frontier docs in docs/frontier/: App Intents adoption plan, Foundation Models provider review (+ live-verified apple_fm_sdk addendum), code-along addendum, HealthKit collaboration report.
  • README: measured-benchmarks section, push-on-arrival loop diagram, badges.

Field fixes worth reading

  • Host-candidate suggestion now leads with the LAN IP and uses scutil for the real Bonjour name — a plausible-but-fake placeholder hostname cost a debugging session (NWError -65554).
  • First sync against a fresh anchor pulled entire HealthKit history past the 1 MiB frame cap — fixed with the 48h lookback, which is also the privacy-correct behavior: deep history never leaves the phone.

PRs: #12 · #13 · #14 · #15 — Full changelog: v0.1.5...v0.1.6

🤖 Generated with Claude Code