Files
Heimdall/skills/camera-assignment/SKILL.md
T
arnaud.dartois 636154572b
Heimdall Gitea / Detect CI scope (push) Successful in 6s
Heimdall Gitea / Build and tests (push) Successful in 19m19s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and scan server image (push) Successful in 6m13s
Heimdall Gitea / Build and scan agent image (push) Successful in 14m44s
Heimdall Gitea / Publish Docker Hub latest tags (push) Successful in 1m48s
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Successful in 19m9s
Heimdall Gitea / CI policy (push) Successful in 10s
Complete remaining Heimdall features and acceptance
Merge pull request #138

Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-06 11:14:49 +01:00

2.0 KiB

name, description
name description
camera-assignment Implement and verify assignment of Heimdall cameras to online Agents using persisted assignment history and actual Agent capabilities.

Heimdall camera assignment

Read AGENTS.md, the camera/Agent assignment sections of todo.md, and skills/heimdall-dotnet/SKILL.md. For persistence changes, also follow skills/ef-core-persistence/SKILL.md.

  • Keep assignment scoped to the camera's site and online Agents. Persist assignment/release history and update Camera.AgentId in the same EF Core unit of work.
  • Assignment strategy must use evidence actually supplied by the relevant entity. Do not infer Agent inference hardware from camera-side protocol flags such as PTZ or camera-native motion detection.
  • GpuPriority prefers Agents reporting HasGpu; if none are GPU-capable, it falls back to all online Agents. Workload balancing remains deterministic within the eligible candidates.
  • Camera discovery currently does not populate Camera.HasMotionDetection; treat that legacy field as unknown/false and do not use it for Agent placement until a camera capability probe supplies verified data.
  • Add PostgreSQL relational tests for strategy selection, failover, and assignment history. Do not use EF InMemory to verify concurrency or transaction semantics.
  • For every behavior change, build a uniquely tagged disposable Docker Compose acceptance stack from the changed source, exercise the changed assignment through the API or service boundary against PostgreSQL, and use generated credentials, ports, volumes, and project name. Install an EXIT trap before build/start; tear down only that project, verify zero project containers/volumes/networks, remove each locally built image tag and verify it absent. Preserve shared base images and test exit status. Follow skills/compose-disposable-recipe/SKILL.md.

Current validated behavior: GpuPriority selects a GPU Agent for a camera even when camera motion capability is false; PostgreSQL test evidence is recorded in todo.md.