fix: correct TKG node_type/edge_type mismatches in scan.rs and tkg.rs

Mismatches fixed (builder vs query layer):
- 'text_region' -> 'text_trace' (3 locations: scan.rs count + tkg.rs LIP_SYNC
  query + tkg.rs LIP_SYNC node ID lookup)
- 'yolo_object' -> 'object' (2 queries in scan.rs)
- 'FACE_TO_FACE' -> CO_OCCURS_WITH + JOIN with tkg_nodes (2 queries in
  scan.rs, so face_face_edges correctly counts only face-track pairs)
- 'HAND_OBJECT' -> 'hand_object' (2 queries in scan.rs)

Impact: ingestion_status and file stats endpoints now return accurate
counts; LIP_SYNC edges now resolve their target text nodes.
This commit is contained in:
Accusys
2026-07-11 08:40:24 +08:00
parent b98a362de5
commit 7635ad8d4d
3 changed files with 165 additions and 48 deletions
+1 -1
View File
@@ -9,8 +9,8 @@ use axum::{
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use crate::core::db::PostgresDb;
use crate::core::db::schema::t;
use crate::core::db::PostgresDb;
pub fn trace_agent_routes() -> Router<crate::api::types::AppState> {
Router::new()