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:
Accusys
2026-08-24 19:13:11 +08:00
parent d29b4804af
commit 9f12e835b8
43 changed files with 3993 additions and 491 deletions
+15 -2
View File
@@ -492,7 +492,9 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<span class="w"> </span><span class="nt">&quot;last_frame&quot;</span><span class="p">:</span><span class="w"> </span><span class="mi">38127</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;first_sec&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">1519.0</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;last_sec&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">1525.1</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;avg_confidence&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">0.8254</span>
<span class="w"> </span><span class="nt">&quot;avg_confidence&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">0.8254</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;avg_capture_quality&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">0.6123</span><span class="p">,</span>
<span class="w"> </span><span class="nt">&quot;best_capture_quality&quot;</span><span class="p">:</span><span class="w"> </span><span class="mf">0.7812</span>
<span class="w"> </span><span class="p">}</span>
<span class="w"> </span><span class="p">]</span>
<span class="p">}</span>
@@ -572,6 +574,16 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<td>float</td>
<td>Average detection confidence (0.0–1.0)</td>
</tr>
<tr>
<td><code>traces[].avg_capture_quality</code></td>
<td>float</td>
<td>Average frame sharpness quality score (0.0–1.0)</td>
</tr>
<tr>
<td><code>traces[].best_capture_quality</code></td>
<td>float</td>
<td>Best frame sharpness quality score (0.0–1.0)</td>
</tr>
</tbody>
</table>
<h4>Error Responses</h4>
@@ -1738,7 +1750,8 @@ curl<span class="w"> </span>-s<span class="w"> </span>-X<span class="w"> </span>
<p>This <strong>replaces</strong> the entire <code>aliases</code> array. To add to existing aliases, include all existing entries in the request.</p>
<hr />
<p><em>Updated: 2026-07-21 — Fixed bind/unbind TKG update to match both trace_N and face_track_N external_id formats</em>
<p><em>Updated: 2026-08-12 — identity traces include capture_quality fields (avg_capture_quality, best_capture_quality)</em>
<em>Updated: 2026-07-21 — Fixed bind/unbind TKG update to match both trace_N and face_track_N external_id formats</em>
<em>Updated: 2026-06-20 — Added identity files, chunks, faces, status, and JSON endpoints</em></p>
</div>
</body>
+2 -2
View File
@@ -333,8 +333,8 @@ a { color: #0066cc; }
</thead>
<tbody>
<tr>
<td><code>/api/v1/search/persons</code></td>
<td><code>universal_search.rs</code> (not mounted)</td>
<td><code>/api/v1/search/people</code></td>
<td><code>universal_search.rs</code> (mounted)</td>
</tr>
<tr>
<td><code>/api/v1/who</code></td>