feat: add TraceArtifacts phase + VLM waits for all key_frame.jpg
- Add TraceArtifacts phase to TkgPhase enum (phase 18) - Report progress as key_frame.jpg/key_face.jpg are created - VLM trigger now polls until ALL key_frame.jpg files exist (was: started after TKG build, before artifacts were ready) - Add iron rule to AGENTS.md: ask before removing data Tested: Gamma 8 (27 traces) → 27/27 VLM summaries completed
This commit is contained in:
@@ -404,6 +404,23 @@ pub async fn handle_phase1(uuid: &str) -> Result<()> {
|
||||
momentry_core::core::pipeline::run_phase1(uuid).await
|
||||
}
|
||||
|
||||
/// Handle tkg-backfill command
|
||||
pub async fn handle_tkg_backfill(file_uuid: &str) -> Result<()> {
|
||||
let db = momentry_core::core::db::postgres_db::PostgresDb::new(
|
||||
&momentry_core::core::config::DATABASE_URL,
|
||||
)
|
||||
.await?;
|
||||
let output_dir = momentry_core::core::config::OUTPUT_DIR.as_str();
|
||||
let n = momentry_core::core::processor::tkg::backfill_trace_dirs(&db, file_uuid, output_dir)
|
||||
.await?;
|
||||
tracing::info!(
|
||||
"[tkg-backfill] built {} trace artifact dirs for {}",
|
||||
n,
|
||||
file_uuid
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Handle complete command
|
||||
pub async fn handle_complete(uuid: &str) -> Result<()> {
|
||||
let db = momentry_core::core::db::postgres_db::PostgresDb::new(
|
||||
|
||||
Reference in New Issue
Block a user