Skip to content

Latest commit

 

History

History
121 lines (114 loc) · 7.76 KB

ROADMAP.md

File metadata and controls

121 lines (114 loc) · 7.76 KB

ROADMAP — Recall v2 launcher

The v2 launcher is a thin Tauri client over the existing Python engine + FastAPI service at 127.0.0.1:4545. The engine and its seven layers are the core IP and are not rewritten here (see V2_BRIEF.md and apps/launcher/DESIGN.md). Recovery is the hero; search is secondary.

Each phase ends with a local commit (never push; no AI attribution). These checkboxes are the source of truth for where we are — update them as phases land so any session resumes from the right place.

  • Phase 0 — Foundations. Engine running, capture live, CI green, repo clean.
  • Phase 1 — Launcher foundation (in progress). Tauri panel on Ctrl+Space, Recovery hero on real /v1/recovery/recent data, hide-on-blur, content-fit resize, vibrancy.
  • Phase 2 — Search surface. Persistent search field at the top (Raycast-style); empty = the Recovery hero, typing renders the episodic + session + micro-context bundle on the thread spine with per-layer node hues (moment/session/context), keyboard-first (↑↓ move, ↵ open, esc clear). Backed by the live /v1/search; Enter opens the selected result via the open_target command. Code-complete + type/compile-checked; visual verification in-app pending (needs a real window + captured data).
  • Phase 3 — Threads & evolution. Resting state now carries an "Active threads" section (/v1/threads/recent) alongside the Recovery hero; ↵/→ on a thread (or a recovery candidate — it carries a thread_id) drills into a detail view rendering the thread's evolution phases on the spine (/v1/threads/{id}/evolution); ←/esc returns. Enter on a phase opens its representative target. Code-complete + type/compile-checked; visual verification pending.
  • Phase 3.5 — Every engine layer has a surface. The resting state gains "On your radar" (/v1/resurface/idle — topics set aside past the idle threshold, deduped against active threads); search gains a file results group (/v1/search/files, also in the extension popup); and macOS desktop-focus capture (darwin.py probe, opt-in desktop_capture_enabled) feeds the engine a third source.
  • Phase 4 — Restore choreography. Enter on a candidate reopens the work in order (files → chats → tabs by domain → searches). The engine orders the plan (plan_for, with per-step reasons); the Rust command executes it with a 140 ms stagger so the OS layers windows in plan order, tallies opened/requested onto the returned plan, and the row reads "reopening your work…" while it runs.
  • Phase 5 — Settings & polish. ⌘, opens a settings view inside the panel: summon hotkey re-recorded live (persisted to ~/.recall/launcher.json, parser unit-tested, falls back to ⌃Space on any bad spec — the panel can never end up unsummonable), start at login (tauri-plugin-autostart LaunchAgent), indexed folders row opening ~/.recall/config.json. Resting data now re-reads the engine on every summon (stale panels and "engine offline" self-heal), and the empty/offline states carry honest copy.
  • Phase 6 — Ship (build path). pnpm tauri build produces a 2.4 MB Recall.app + Recall_0.1.0_aarch64.dmg (release profile, fat LTO; window-vibrancy pinned to tauri's minor to fix a duplicate-ObjC-class LTO link failure). Ad-hoc signed today; the Developer-ID signing + notarization path is documented in RELEASE.md and needs only the certificate — no code changes. Still open before a public cut: notarized artifact + demo script on real sessions.

Capture track — make capture real, clean, and scalable

The launcher is only as good as the event log behind it. This track is the gate: a continuity surface with an empty ~/.recall/events/ is empty no matter how polished. Capture runs through the MV3 extension (apps/extension/background.js) → 127.0.0.1:4545 → the seven-layer engine. Charter holds: local-first, deterministic, additive, no DOM scraping, no telemetry. See the capture audit for the full diagnosis.

  • Capture C0 — Audit. Root cause of the empty hero pinned: the extension was not loaded (reserved-underscore filename blocked Chrome, now removed), capture used a fire-and-forget sender with no queue, and only 2 stale test events were on disk.
  • Capture C1 — Make capture real & verifiable. Extension loaded and capturing organically (a live day shows browser_visit + chat + search + desktop_window kinds side by side). The honest self-check shipped as GET /v1/events/today (count + per-kind tally read straight from the day file, <10 ms median, smoke §36) and surfaces as an "N events today" pill in the extension's trust strip. Doc drift fixed: README ingest/retrieval tables now carry /v1/events/batch, /v1/search/files, /v1/events/today; popup bundle rebuilt from source.
  • Capture C2 — Refactor core (modular + tested). background.js split into capture/sources.js (listeners + title-settle), capture/normalize.js (pure (url,title)→{kind,payload}, node-tested via capture/normalize.test.js), and capture/outbox.js (delivery). ES-module service worker; no behaviour change to what lands on disk.
  • Capture C3 — Robust capture (zero loss). Persistent outbox in chrome.storage.local; batched POST to /v1/events/batch with chrome.alarms retry (survives MV3 worker eviction and daemon downtime); webNavigation.onHistoryStateUpdated for SPA-route capture; capture-time ts preserved through delayed flushes. Server side: POST /v1/events/batch shipped (smoke §34). Code-complete; the remaining open item is C1 — load the extension and confirm organic events flow end-to-end (only reproducible in a real browser).
  • Capture C4 — Work-session signal (the moat). capture/dwell.js tracks attention (tabs.onActivated, windows.onFocusChanged, same-tab navs, SPA routes) and emits one browser_focus event when focus leaves a page — dwell ≥8 s, capped at 30 min, deduped by construction (one event per interval) — carrying dwell_ms and a deterministic work-block hint (block: wb-<epoch>; a new block after 5 min of browser silence). Pure tracker core node-tested (7 checks); engine opted in via ALLOWED_KINDS + payload allowlist + smoke §34, with the kind deliberately absent from RETRIEVABLE_KINDS — it is a grouping signal for behavioural work-blocks, never a search result.
  • Capture C5 — Behavioural sessions (use the signal). app/core/workblocks.py — a pure, deterministic derivation that regroups a session's events into work-blocks of continuous attention. The 30-min clock over-merges two scattered bursts into one session and can't tell focus from a tab left open; work-blocks read the dwell_ms/block signal back and split what the clock lumped (10-min behavioural idle) while bridging gaps a dwell span or shared wb- id proves were continuous. Additive — the session_id spine is untouched; Session gains derived work_blocks + behavioural_label ("one 47-minute focus block" / "3 attention blocks"), surfaced through SessionOut and the launcher caption. 9 pure unit checks (_test_workblocks.py) + smoke §38; ~1 µs per derivation, safe on the search hot path.