fabro/lib
Scott Werner bf05b01ba6 Simplify session owner lookup and migration preflight
- Drop the post-decode run_id/session_id/event-body checks in
  find_session_owner: decode_event_row already verifies every stored
  column against the decoded envelope, and the WHERE clause pins
  session_id and event_name to the requested values.
- Build the lookup query from SELECT_EVENT_COLUMNS like the sibling
  event queries instead of duplicating the column list.
- Carry the stored run_id text in the unparseable-id error instead of
  an "<invalid>" placeholder.
- Fetch applied migration versions once per migrate() and share the
  set between the session-owner preflight and the pre-migration
  snapshot; check the applied version first so steady-state startups
  skip the sqlite_master probe. Mark the preflight as removable with
  the run-history compatibility window.
- Restore session_by_id_key as a #[cfg(test)] helper so tests stop
  hand-rolling the legacy reverse-index key shape.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-31 14:59:38 -04:00
..
apps Index session ownership from creation events 2026-08-31 14:16:58 -04:00
components Simplify session owner lookup and migration preflight 2026-08-31 14:59:38 -04:00
foundation Simplify session owner lookup and migration preflight 2026-08-31 14:59:38 -04:00
packages/fabro-api-client Merge pull request #827 from fabro-sh/codex/run-intent-registration-spine 2026-08-31 13:44:08 -04:00