feat(cli): add 'lore related' semantic similarity command (bd-8con)
Adds 'lore related' / 'lore similar' command for discovering semantically related issues and MRs using vector embeddings. Two modes: - Entity mode: find entities similar to a specific issue/MR - Query mode: embed free text and find matching entities Includes distance-to-similarity conversion, label intersection, human and robot output formatters, and 11 unit tests.
This commit is contained in:
20
migrations/028_surgical_sync_runs.sql
Normal file
20
migrations/028_surgical_sync_runs.sql
Normal file
@@ -0,0 +1,20 @@
|
||||
-- Migration 028: Extend sync_runs for surgical sync observability
|
||||
-- Adds mode/phase tracking and surgical-specific counters.
|
||||
|
||||
ALTER TABLE sync_runs ADD COLUMN mode TEXT;
|
||||
ALTER TABLE sync_runs ADD COLUMN phase TEXT;
|
||||
ALTER TABLE sync_runs ADD COLUMN surgical_iids_json TEXT;
|
||||
ALTER TABLE sync_runs ADD COLUMN issues_fetched INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN mrs_fetched INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN issues_ingested INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN mrs_ingested INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN skipped_stale INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN docs_regenerated INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN docs_embedded INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN warnings_count INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE sync_runs ADD COLUMN cancelled_at INTEGER;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_sync_runs_mode_started
|
||||
ON sync_runs(mode, started_at DESC);
|
||||
CREATE INDEX IF NOT EXISTS idx_sync_runs_status_phase_started
|
||||
ON sync_runs(status, phase, started_at DESC);
|
||||
Reference in New Issue
Block a user