chore: harden knowledge graph storage and clear common clippy warnings

Enforce stable 1:1 entity embeddings, relationship endpoint auth, and
user-scoped deletes; align schemas/migrations and resolve common crate
clippy findings.
This commit is contained in:
Per Stark
2026-05-28 21:46:35 +02:00
parent 189adb1a5f
commit 5724f11dc1
17 changed files with 533 additions and 209 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ async fn reserve_task(
payload: IngestionPayload,
user_id: &str,
) -> anyhow::Result<IngestionTask> {
let task = IngestionTask::create_and_add_to_db(payload, user_id.into(), db).await?;
let task = IngestionTask::create_and_add_to_db(payload, user_id, db).await?;
let lease = task.lease_duration();
let claimed = IngestionTask::claim_next_ready(db, worker_id, Utc::now(), lease)
.await?