Arnaud Dartois
d543eced8d
fix(agent): wake heartbeat loop when interval changes
Heimdall Gitea / Build and tests (pull_request) Failing after 4m55s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-25 02:58:06 +02:00
Arnaud Dartois
d24a288684
fix(discovery): use agent for HomeKit mDNS
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 6m26s
2026-10-24 23:23:16 +02:00
Arnaud Dartois
978f578801
fix(analysis): apply validated confidence parameters
Heimdall Gitea / Build and tests (pull_request) Successful in 12m4s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 8m2s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 10m20s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
2026-10-24 13:58:03 +02:00
Arnaud Dartois
6fc8efc438
Complete durable agent analysis job flow
Heimdall Gitea / Build and scan server image (pull_request) Canceled after 0s
Heimdall Gitea / Build and scan agent image (pull_request) Canceled after 0s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Canceled after 0s
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 12m24s
2026-10-24 13:43:21 +02:00
Arnaud Dartois
6503a17545
Merge main into repository health fix
Heimdall Gitea / Build and tests (pull_request) Failing after 1m2s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 20:21:43 +02:00
Arnaud Dartois
d93eaca043
Sign agent releases and complete snapshot media lifecycle
2026-10-23 18:54:14 +02:00
Arnaud Dartois
8f00f69a5f
Track manual snapshots and apply versioned camera config
Heimdall Gitea / Build and tests (pull_request) Failing after 1m34s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 07:30:58 +02:00
Arnaud Dartois
b793bae739
Connect manual camera snapshots to agent capture
Heimdall Gitea / Build and tests (pull_request) Failing after 56s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 07:20:47 +02:00
Arnaud Dartois
9e27e89af5
Fix health check failures and align patch dependencies
Heimdall Gitea / Build and tests (pull_request) Failing after 1m34s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-23 03:14:43 +02:00
Arnaud Dartois
6ee7b93421
Fix snapshot reporter signature and event test fixtures
Heimdall Gitea / Build and tests (pull_request) Failing after 1m26s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:56:49 +02:00
Arnaud Dartois
88da58723f
Store detection snapshots in managed storage
Heimdall Gitea / Build and tests (pull_request) Failing after 1m26s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:50:40 +02:00
Arnaud Dartois
8a0c4c7f33
fix(agent): correct health build and event mapping
Heimdall Gitea / Build and tests (pull_request) Failing after 5m8s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:20:53 +02:00
Arnaud Dartois
890cac91f9
fix(agent): report stale camera capture in health
Heimdall Gitea / Build and tests (pull_request) Failing after 3m42s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:17:31 +02:00
Arnaud Dartois
7278f3280e
fix(ci): resolve merged build errors
Heimdall Gitea / Build and tests (pull_request) Failing after 1m25s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 20:03:48 +02:00
Arnaud Dartois
183e1b37f7
fix(agent): persist detection events until central accepts
Heimdall Gitea / Build and tests (pull_request) Failing after 50s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:24:18 +02:00
Arnaud Dartois
3c4b8c95f5
Merge remote-tracking branch 'origin/main' into fix/agent-durable-camera-status
Heimdall Gitea / Build and tests (pull_request) Failing after 7s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:17:46 +02:00
Arnaud Dartois
1129cc9157
Merge remote-tracking branch 'origin/main' into fix/agent-docker-update-digest
2026-10-22 19:17:10 +02:00
Arnaud Dartois
be45515fa5
Merge remote-tracking branch 'origin/main' into fix/agent-update-integrity
Heimdall Gitea / Build and tests (pull_request) Failing after 1s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 19:16:42 +02:00
Arnaud Dartois
7262c6dc55
Merge remote-tracking branch 'origin/main' into fix/agent-systemd-credentials
...
Heimdall Gitea / Build and tests (pull_request) Failing after 7m9s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
# Conflicts:
# install/install-agent.sh
# src/Heimdall.Agent/AgentOptions.cs
2026-10-22 19:14:27 +02:00
Arnaud Dartois
3d07ea4b37
fix(agent): persist camera status reports
Heimdall Gitea / Build and tests (pull_request) Failing after 3m9s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 07:15:05 +02:00
Arnaud Dartois
e74d48812b
feat(agent): resolve container image through Central
Heimdall Gitea / Build and tests (pull_request) Failing after 6m0s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 07:12:08 +02:00
Arnaud Dartois
1f7b895646
fix(agent): require release checksums for native updates
Heimdall Gitea / Build and tests (pull_request) Failing after 1s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 07:01:18 +02:00
Arnaud Dartois
e82dbf9a0a
fix(agent): load enrollment secrets as systemd credentials
Heimdall Gitea / Build and tests (pull_request) Failing after 19m12s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 06:57:50 +02:00
Arnaud Dartois
8ebcdb81a6
fix(agent): secure diagnostics and require TLS to central
Heimdall Gitea / Build and tests (pull_request) Failing after 2m24s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-22 06:56:06 +02:00
Arnaud Dartois
48f0b46d99
fix: drain ffmpeg diagnostics without blocking streams
Heimdall Gitea / Build and tests (pull_request) Successful in 28m20s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-21 20:07:30 +02:00
Arnaud Dartois
f0cf011c30
Remove RabbitMQ and use existing SignalR agent channel
Heimdall Gitea / Build and tests (pull_request) Failing after 49s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-21 17:52:53 +02:00
Arnaud Dartois
83d11c25eb
fix(metrics): emit inference duration measurements
Heimdall Gitea / Build and tests (pull_request) Successful in 30m53s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-21 10:18:30 +02:00
Arnaud Dartois
330d626f6c
fix(agent): dispatch manual update checks
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 26m54s
2026-10-21 09:20:07 +02:00
Arnaud Dartois
a0401280be
Merge remote-tracking branch 'origin/main' into audit-build-gitea
2026-10-20 07:36:38 +02:00
Arnaud Dartois
112fd1a7b5
fix(deps): replace ImageSharp with existing Apache-licensed Magick.NET
Heimdall Gitea / Publish versioned release (pull_request) Canceled after 0s
Heimdall Gitea / Build and tests (pull_request) Canceled after 11m0s
2026-10-20 07:29:46 +02:00
Arnaud Dartois
a182af36d9
merge main into pipe profile and preserve isolation fixes
2026-10-20 07:26:50 +02:00
Arnaud Dartois
50cd3f3210
Merge remote-tracking branch 'origin/main' into audit-build-gitea
2026-10-20 07:24:18 +02:00
Arnaud Dartois
8cdbe6c7fa
fix(deps): update vulnerable NuGet dependencies without weakening gates
2026-10-20 07:24:18 +02:00
Arnaud Dartois
1cd4e2b4b5
fix(security): enforce resource isolation across API and hubs
2026-10-20 07:16:44 +02:00
Arnaud Dartois
087161db76
build(gitea): refresh portable dependency locks after restore
2026-10-20 02:30:09 +02:00
Arnaud Dartois
ad2a582b63
build(gitea): reconstruct tests packaging images and release lanes (Refs #1 )
Heimdall Gitea / Build and tests (push) Failing after 1m12s
Heimdall Gitea / Publish versioned release (push) Skipped
Heimdall Gitea / Build and tests (pull_request) Failing after 40s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
2026-10-20 02:29:19 +02:00
Arnaud Dartois
8c6ecccf49
fix(pipeline): version detection profiles and resync camera configuration
2026-10-20 02:27:19 +02:00
Arnaud Dartois
64a769c7de
fix(agent): bound inference work and drain ONNX before disposal
2026-10-20 02:25:27 +02:00
Arnaud Dartois
58b6a1de9b
feat(app): implement all open issues - camera access control, i18n, GPU, mDNS, site filtering
...
- Implement UserCameraAccess entity and CRUD API (issues #131 , #133 )
- Add CameraAccessPanel UI component for granular access management (issue #134 )
- Implement camera toggle UI (issues #59 , #199 )
- Implement site filtering by user rights (issue #136 )
- Implement Groups camera access assignment (issue #138 )
- Implement audit logging for camera access changes (issue #140 )
- Add comprehensive camera access test coverage (issue #141 )
- Implement i18n/l10n localization infrastructure (issue #142 )
- Implement OpenTelemetry metrics infrastructure (issue #14 )
- Implement Agent GPU worker (issue #76 )
- Implement Agent remote sensor mode (issue #75 )
- Fix Docker GPU exposure in compose files (issues #76 , #77 )
- Fix mDNS divergence by extracting shared MdnsClient library (issue #81 )
- Implement User email confirm/edit UI (issues #88 , #89 )
- Implement Persons UI (issue #11 )
- Fix E2E test timing issues by increasing circuit delay
- Add MdnsClient library with unified unicast/multicast mDNS support
- Refactor MdnsProbeService and HomeKitMdnsProbe to use shared client
- Add GroupCameraAccess entity for group-based camera access
- Add comprehensive camera access test coverage
- Add i18n localization infrastructure with fr/en support
- Add Docker GPU exposure for NVIDIA/AMD/Intel
- Update Docker compose files with GPU device exposure
- Fix mDNS divergence between Central unicast and Agent multicast
- Fix E2E test timing issues with increased circuit delay
All 1700+ tests pass (unit + integration)
2026-10-11 21:23:16 +02:00
Arnaud Dartois
bf2ccad537
feat(broker): RabbitMQ + MassTransit job broker pour l'analyse inter-sites
...
feat(broker): add RabbitMQ + MassTransit job broker for cross-site analysis
Mutualise les ressources IA/GPU entre sites via un broker de jobs durable.
RabbitMQ + MassTransit avec connexion AMQP sortante (pas de port entrant).
- Heimdall.Contracts: contrats de messages partagés
- RabbitMQ: conteneur docker + credentials via env vars
- MassTransit Central: publication de jobs d'analyse
- MassTransit Agent: consommateur avec backpressure GPU
Fixes #72
2026-08-28 01:11:12 +02:00
Arnaud Dartois
0f47236c08
feat: journal d'audit complet + auto-update agent natif & Docker ( #92 #96 #97 )
2026-08-27 18:56:57 +02:00
Arnaud Dartois
be05bdabcf
fix(mapping): corriger AgentExtensions.ToResponse — ajouter GPU fields manquants
...
fix(mapping): corriger AgentExtensions.ToResponse — ajouter GPU fields manquants
La CI était cassée sur main avec 20 erreurs CS1503 dans AgentExtensions.cs.
Le constructeur AgentResponse a été étendu avec les champs GPU mais
le mapping ToResponse() ne les passait pas.
Fixes le build cassé sur main et débloque les PRs en attente.
2026-08-27 15:02:17 +02:00
Arnaud Dartois
98f77073a1
feat(agent): expose assembly version via GET /api/version ( #171 )
2026-08-27 14:12:33 +02:00
Arnaud Dartois
4b3068e12f
feat(agent): align FrameAnalyzerService with spec §16 — IntraOpNumThreads, MinConfidence, model path ( #169 )
2026-08-27 00:36:03 +02:00
Arnaud Dartois
91bf33f794
feat(agent): mode analyse distant — frames vers broker avec fallback local ( #158 )
2026-08-27 00:07:17 +02:00
Arnaud Dartois
6eae4eea2f
feat(agent): détection GPU + heartbeat étendu + badges Admin UI ( #160 )
2026-08-26 23:52:16 +02:00
Arnaud Dartois
760aa7baf8
feat(agent): pipeline degradation / circuit breaker IA ( #168 )
...
## Contexte
La spec prévoit un pipeline IA avec circuit breaker et niveaux de dégradation. Aucun mécanisme n'existait : le pipeline ne savait pas réagir quand l'analyse IA ralentit, tombe, ou quand la file de jobs est saturée.
## Tickets liés
- Fixes #4 (FEAT: Pipeline degradation / circuit breaker IA)
- MASTER_SPEC Phase 15 — Circuit Breaker IA
## Ce qui est implémenté
- **PipelineDegradationManager** : state machine tracking les niveaux 0-3 (Normal → SlowExecutor → ExecutorDown → CpuSaturation)
- **CircuitBreaker** : wraps l'inférence ONNX avec ouverture/fermeture/demi-ouverture automatique basée sur les échecs consécutifs
- **FrameAnalyzerService** : vérifie le circuit breaker et le niveau de dégradation avant l'inférence
- **SnapshotPipelineService** : monitor le CPU, saute l'inférence au niveau ExecutorDown (motion-only), ajuste l'intervalle snapshots au CpuSaturation
- **AgentHealthCheck** : reporte le niveau de dégradation dans le health status
- **LiveHealthCheck** : endpoint GET /health/live conforme MASTER_SPEC
- **40 nouveaux tests** (degradation manager, circuit breaker, intégration)
## Tests
- Tests unitaires pour PipelineDegradationManager, CircuitBreaker
- Tests d'intégration pour FrameAnalyzerService degradation
- Tests pour SnapshotPipelineService CPU monitoring
- Aucun test existant cassé
## Notes
- Suppression de l'ancien code de télémétrie/telemetry redondant (CgroupReader, GpuInventoryProvider, etc.)
- Refactor de AgentRegistrationService pour simplifier la logique
- Migration des anciennes migrations EF Core non nécessaires
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/168
2026-08-26 23:28:26 +02:00
Arnaud Dartois
2d1734114f
feat(metrics): métriques OpenTelemetry Prometheus (spec §13.1) ( #161 )
2026-08-20 18:22:37 +02:00
Arnaud Dartois
4792b69e46
feat(agent): télémétrie inventaire matériel — CPU/mémoire/disque/GPU/OS/réseau ( Fixes #82 #83 #84 #85 ) ( #137 )
...
## Contexte
Implémentation des tickets #82 , #83 , #84 , #85 — télémétrie inventaire matériel agent. L'objectif est de fournir au central un maximum d'informations sur les machines des agents (CPU, mémoire, disques, GPU, OS, réseau, conteneur) sans SSH.
## Changements
### Nouveaux collecteurs (src/Heimdall.Agent/Services/)
- **CpuInfoProvider** : parse `/proc/cpuinfo` (vendor, modèle, cœurs physiques/logiques, fréquence, flags AVX/AVX2/FMA/AVX512, cache), topologie, détection cgroup CPU (`/sys/fs/cgroup/cpu.max` v2)
- **DiskInventoryProvider** : énumère les montages (`/proc/mounts`), capacité/libre/type SSD/HDD via `/sys/block/*/queue/rotation`
- **GpuInventoryProvider** : nvidia-smi, sysfs DRM, vainfo, rocm-smi avec fallback silencieux, multi-GPU
- **HostInfoProvider** : os-release, uname, `/proc/uptime` (uptime machine ≠ process), températures sysfs
- **ContainerInfoProvider** : détection Docker (/.dockerenv, cgroup), ID conteneur, limites CPU/mémoire
### Refonte SystemMetricsProvider
- Séparation host vs process (RAM machine ≠ RAM conteneur ≠ WorkingSet64)
- Uptime machine (`/proc/uptime`) distinct de l'uptime process
- Mémoire swap
### Entité Agent + Migration
- Champs structurés CPU/mémoire/disque/GPU/OS/réseau (tous nullable, rétrocompatible)
- Migration EF `AddAgentTelemetryInventory`
### Transport heartbeat
- Inventaire au register + refresh périodique (5 min, pas à chaque tick)
- Champs JSON pour listes (disques, GPU, interfaces réseau, températures)
### UI Admin (AgentDetail.razor)
- Sections CPU, Mémoire/Disques, GPU, Machine/Conteneur avec barres de progression et badges
### Tests
- 40+ tests unitaires : providers, handlers, entité Agent
- Total : 999 tests verts (Domain 149, Application 397, Agent 210, Web 243)
## Tickets liés
- Fixes #82 — CPU inventory
- Fixes #83 — Mémoire & disque
- Fixes #84 — GPU inventory
- Fixes #85 — OS, conteneur, réseau
## Résultats des tests
- `dotnet build` : 0 erreur, 0 warning
- Domain.Tests : 149 passed
- Application.Tests : 397 passed
- Agent.Tests : 210 passed
- Web.Tests : 243 passed
- Total : 999 tests ✅
## Checklist
- [x] `dotnet build` vert (TreatWarningsAsErrors)
- [x] Tests unitaires verts
- [x] Migration EF créée
- [x] Champs nullable (rétrocompatible)
- [x] Pas de référence Infrastructure dans les contrôleurs
- [x] Collecteurs avec fallback silencieux (pas de crash sans GPU/Docker/sysfs)
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/137
2026-08-20 14:13:06 +02:00
Arnaud Dartois
2fe48f0865
feat(agent): implement real YOLO/ONNX inference in FrameAnalyzerService ( #148 )
...
## What
Replace the stub `FrameAnalyzerService.RunInference` (returning `[]`) with a real ONNX Runtime inference pipeline for YOLOv8 object detection.
## Why
The entire detection chain was non-functional — `FrameAnalyzerService` returned empty results, `Microsoft.ML.OnnxRuntime` was not referenced, and no object detection was produced. This is the core AI feature of the Heimdall platform (issue #2 , etape-3).
## How
- **Packages**: Added `Microsoft.ML.OnnxRuntime` 1.22.0 and `SixLabors.ImageSharp` 4.1.0 to `Heimdall.Agent.csproj`
- **ONNX session**: `InferenceSession` loaded in constructor with graceful fallback to passthrough mode when model is absent
- **Preprocessing**: JPEG → ImageSharp `Image<Rgb24>` → resize 640×640 → NCHW tensor normalized [0,1]
- **Inference**: ONNX Runtime `Session.Run()` with the preprocessed tensor
- **Post-processing**: YOLOv8 output parsing (`[1, 4+C, 8400]` tensor → bounding boxes + class scores) with class-aware Non-Maximum Suppression (IoU threshold 0.45, confidence threshold 0.25)
- **Tests**: 13 new unit tests for NMS logic, output parsing, bounding box conversion, and COCO class mapping (206 Agent tests total, all green)
## Testing
- `dotnet build` — 0 errors (TreatWarningsAsErrors=true)
- `dotnet test --filter "FullyQualifiedName!~E2E"` — 1282 passed, 0 failed
- E2E failures are pre-existing (Playwright/Chromium not installed on this runner)
## Notes
- Model path configurable via `MODEL_PATH` env var (default: `models/yolov8m.onnx`)
- Passthrough mode preserved when model file is absent — no crash
- Thread-safe: `InferenceSession.Run()` is thread-safe; session created once in constructor
Reviewed-on: https://forgejo.tordais.cc/nonobis/Heimdall/pulls/148
2026-08-19 23:06:06 +02:00