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:
+16
-5
@@ -84,10 +84,18 @@ impl PipelineProgress {
|
||||
status: "pending".into(),
|
||||
detail: None,
|
||||
},
|
||||
// Rule 2 Ingestion (15%)
|
||||
// Rule 2 Ingestion (10%)
|
||||
PipelineStage {
|
||||
name: "rule2_ingestion".into(),
|
||||
weight: 0.15,
|
||||
weight: 0.10,
|
||||
progress: 0.0,
|
||||
status: "pending".into(),
|
||||
detail: None,
|
||||
},
|
||||
// VLM Summary (5%)
|
||||
PipelineStage {
|
||||
name: "vlm_summary".into(),
|
||||
weight: 0.05,
|
||||
progress: 0.0,
|
||||
status: "pending".into(),
|
||||
detail: None,
|
||||
@@ -158,12 +166,13 @@ pub enum TkgPhase {
|
||||
HasAppearanceEdges = 15, // Build has_appearance edges
|
||||
WearsEdges = 16, // Build wears edges
|
||||
HandObjectEdges = 17, // Build hand_object edges
|
||||
Completed = 18,
|
||||
Failed = 19,
|
||||
TraceArtifacts = 18, // Save key_frame.jpg, key_face.jpg, trace_profile.json
|
||||
Completed = 19,
|
||||
Failed = 20,
|
||||
}
|
||||
|
||||
impl TkgPhase {
|
||||
pub const TOTAL: usize = 18; // phases 0-17
|
||||
pub const TOTAL: usize = 19; // phases 0-18
|
||||
|
||||
pub fn name(&self) -> &'static str {
|
||||
match self {
|
||||
@@ -185,6 +194,7 @@ impl TkgPhase {
|
||||
TkgPhase::HasAppearanceEdges => "has_appearance_edges",
|
||||
TkgPhase::WearsEdges => "wears_edges",
|
||||
TkgPhase::HandObjectEdges => "hand_object_edges",
|
||||
TkgPhase::TraceArtifacts => "trace_artifacts",
|
||||
TkgPhase::Completed => "completed",
|
||||
TkgPhase::Failed => "failed",
|
||||
}
|
||||
@@ -210,6 +220,7 @@ impl TkgPhase {
|
||||
15 => TkgPhase::HasAppearanceEdges,
|
||||
16 => TkgPhase::WearsEdges,
|
||||
17 => TkgPhase::HandObjectEdges,
|
||||
18 => TkgPhase::TraceArtifacts,
|
||||
_ => TkgPhase::Completed,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user