fix(agent): bound inference work and drain ONNX before disposal #6

Merged
arnaud.dartois merged 1 commits from audit/pipe-runtime into main 2026-10-20 07:28:08 +02:00
Owner

Problem

A full inference queue can hide dropped work, and disposing the ONNX session while inference is active can race native resources. Missing models can also look like a successful negative result.

Change

Reject saturated submissions explicitly and count failures, drain in-flight inference before disposing ONNX, bound native inference time, validate the YOLOv8 COCO output contract, normalize image channels and coordinates, and report effective CPU/model health.

Validation

  • Full Heimdall.Agent.Tests: 360 passed, 1 failed (SnapshotPipelineServiceTests.StartStop_WithLocalCameras_PopulatesStoreFallback).
  • Isolated rerun of that test: 1 passed. The full suite is being rerun to confirm whether the failure was transient.
  • No merge requested; this PR targets main.
## Problem A full inference queue can hide dropped work, and disposing the ONNX session while inference is active can race native resources. Missing models can also look like a successful negative result. ## Change Reject saturated submissions explicitly and count failures, drain in-flight inference before disposing ONNX, bound native inference time, validate the YOLOv8 COCO output contract, normalize image channels and coordinates, and report effective CPU/model health. ## Validation - Full Heimdall.Agent.Tests: 360 passed, 1 failed (SnapshotPipelineServiceTests.StartStop_WithLocalCameras_PopulatesStoreFallback). - Isolated rerun of that test: 1 passed. The full suite is being rerun to confirm whether the failure was transient. - No merge requested; this PR targets main.
arnaud.dartois added 1 commit 2026-10-20 07:24:20 +02:00
arnaud.dartois merged commit a0641658d8 into main 2026-10-20 07:28:08 +02:00
arnaud.dartois added the area:agentarea:analysispriority:P2type:bug labels 2026-11-06 13:40:04 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arnaud.dartois/Heimdall#6