docs: clean recipe-built images after acceptance
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 3m38s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s
Heimdall Gitea / Detect CI scope (pull_request) Successful in 6s
Heimdall Gitea / Build and tests (pull_request) Failing after 3m38s
Heimdall Gitea / Build and scan server image (pull_request) Skipped
Heimdall Gitea / Build and scan agent image (pull_request) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (pull_request) Skipped
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Failing after 2s
This commit is contained in:
1 parent
7d741637f3
commit
d881ee152b
19 files changed
+46
-14
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# Heimdall contributor rules
|
||||
|
||||
- For every feature, fix, operational change, or meaningful documentation change, create or update a focused skill under `skills/` in the same PR. The skill must capture the project-specific implementation and acceptance workflow, not restate generic guidance.
|
||||
- Every behavior or deployment change must pass an acceptance recipe in a disposable Docker Compose project built from the changed source. Use isolated generated credentials, ports, volumes, and project names; never reuse production configuration/data. Tear down only that project and confirm its containers/volumes are gone. Do not skip this recipe silently when Docker is unavailable.
|
||||
- Every behavior or deployment change must pass an acceptance recipe in a disposable Docker Compose project built from the changed source. Use isolated generated credentials, ports, volumes, project names, and unique tags for locally built acceptance images; never reuse production configuration/data. Tear down only that project and confirm its containers/volumes/networks are gone, then remove and verify absence of only the exact image tags built by that recipe. Keep shared upstream/base images. Never use broad image pruning. Do not skip this recipe silently when Docker is unavailable.
|
||||
- Read `todo.md` before changing code. Update its status and acceptance notes in the same PR as each correction or feature. Remove a completed item only after the behavior is verified; keep a short completion entry for traceability.
|
||||
- Keep `Domain` independent of infrastructure. Put use cases and interfaces in `Application`, adapters and EF Core persistence in `Infrastructure`, HTTP/UI composition in `Web`, and camera/runtime behavior in `Agent`.
|
||||
- Target the SDK pinned by `global.json` and .NET 10 or newer. Use nullable reference types, cancellation tokens for I/O, and explicit options validation. Do not weaken locked restore or suppress a new warning without a reason.
|
||||
|
||||
@@ -24,6 +24,8 @@ dotnet test tests/Heimdall.Agent.Tests/Heimdall.Agent.Tests.csproj --no-restore
|
||||
|
||||
For the focused Kestrel ACK acceptance, copy only the test project's source dependencies into a temporary directory outside the repository. Use a uniquely named Compose project with the pinned .NET SDK image, the temporary source mounted at `/workspace`, a project-scoped NuGet/result volume, a project-scoped bridge, a generated fixture API key, and a loopback-only port. Put the two locked restore/test commands in `/workspace/run-ack-test.sh` and set `entrypoint: ["/bin/bash", "/workspace/run-ack-test.sh"]`; avoid a scalar `command` with `bash -lc`, which Compose passes as multiple arguments and can run `dotnet` without its subcommand. The test itself proves Central returns a transient 503 and then persists the exact digest once. Tear down only that project with `down --volumes --remove-orphans`, verify its containers, volumes, and network are gone, and remove the temporary source. Serialize Docker acceptance when another source build is using the shared daemon.
|
||||
|
||||
This SDK-only recipe does not build a local Heimdall image; keep the shared upstream SDK image. If the recipe is extended to build an app image, assign a project-unique tag and remove/verify that exact tag after teardown per `skills/compose-disposable-recipe/SKILL.md`.
|
||||
|
||||
## Acceptance boundary
|
||||
|
||||
In-memory SignalR/HTTP fixtures and a local Agent container validate reconnect and runtime behavior without a physical camera. Mark real-camera stream stability, resource release on the deployed host, and LAN discovery as open until they pass on representative hardware and network equipment.
|
||||
@@ -24,3 +24,5 @@ Use this workflow when changing `docker/scripts/backup*.sh`, `docker/scripts/res
|
||||
6. The scheduled backup image installs Alpine's `aws-cli`, `bash`, and GNU `coreutils` (`date -d` retention cutoffs do not work in BusyBox). Do not rely on the retired MinIO client download URL. The scripts pass configured S3 credentials explicitly to AWS CLI for each invocation.
|
||||
7. Validate S3 behavior with a disposable RustFS service, unique Compose project/network/volumes and generated keys. Create a synthetic row, run `backup.sh`, verify both dated and `latest.sql.gz` objects, mutate the row, then run `restore.sh --latest --yes` and verify the prior value. Add ancient synthetic daily and weekly keys and confirm both retention jobs delete them. Also exercise `backup-protected-data.sh` upload and `backup-rustfs.sh` mirror/manifest where changed.
|
||||
8. Keep real-volume production recovery and production RPO/RTO open until validated on their actual service and data.
|
||||
|
||||
These backup recipes use shared upstream PostgreSQL/RustFS images and do not build a Heimdall image by default; retain those base images. If a changed recipe adds any local build, tag it uniquely for the Compose project and remove/verify that exact tag after teardown. Do not use image-prune commands.
|
||||
@@ -16,5 +16,6 @@ When changing this area, verify:
|
||||
- `GroupsPageTests` for site/camera labels and the UI add/remove request sequence.
|
||||
- PostgreSQL integration tests for persistence or query changes; do not use EF InMemory as relational proof.
|
||||
- The disposable Compose recipe in `skills/compose-disposable-recipe/SKILL.md` for behavior or deployment changes, using a unique project, network, credentials, ports, and volumes.
|
||||
- If Compose builds Central from source, override its image with a project-unique tag and remove/verify that exact tag after teardown; retain shared base images.
|
||||
|
||||
Use synthetic camera metadata in automated tests. Physical RTSP, snapshot and reconnect behavior is a separate Agent/camera acceptance and must be reported as unverified unless run against real hardware.
|
||||
@@ -36,3 +36,5 @@ Use this skill when changing the Linux or Windows Central installer, its generat
|
||||
## Acceptance
|
||||
|
||||
Run `bash -n install/install-server.sh`, validate PowerShell syntax when `pwsh` is available, and run `docker compose config --quiet` for both the installer output and `docker/docker-compose.prod.yml`. Exercise a first install and a second run against an isolated temporary directory: confirm secrets and nondefault `.env` values are byte-for-byte unchanged, the old Compose is backed up, missing new variables are added once, and no volume removal command appears. Then follow `skills/compose-disposable-recipe/SKILL.md` with a unique project, generated credentials, isolated ports/volumes, and scoped teardown. Never connect the recipe to a deployed Docker daemon or production data.
|
||||
|
||||
If acceptance builds a local Central image, assign a project-unique tag and remove/verify that tag after teardown. Do not remove registry/base images or use broad image pruning; Watchtower's deployment `--cleanup` behavior is separate from disposable-test cleanup.
|
||||
@@ -12,15 +12,26 @@ Use this skill for every Heimdall behavior, deployment, or operational change. R
|
||||
- Build from the current source with a unique Compose project name. Do not test against the production hostname, database, image volumes, secrets, or credentials.
|
||||
- Put generated `.env` and secret files under a temporary directory outside the repository. Use synthetic test identities and cryptographically random local passwords.
|
||||
- Use an unused loopback host port and Compose-managed volumes whose names include the unique project name. Do not join production or shared networks.
|
||||
- Never use broad Docker cleanup such as `docker system prune`. Remove only the test project with `docker compose -p <unique-name> down --volumes --remove-orphans`.
|
||||
- After cleanup, check that the test project has no containers or volumes. Remove its temporary files and keep logs free of credentials.
|
||||
- Give each locally built acceptance image a project-unique tag, for example `heimdall:<project>-acceptance`; do not build under `latest`, `local`, or a tag that existed before the recipe. Use a temporary Compose override to set the unique image tag while preserving the source build context. Record all generated tags before starting.
|
||||
- Never use broad Docker cleanup such as `docker system prune`, `docker image prune`, or `docker rmi $(docker images -q)`. Remove only the test project with `docker compose -p <unique-name> down --volumes --remove-orphans`.
|
||||
- After teardown, check that the project has no containers, volumes, or networks. For every locally built image tag, run `docker image rm <exact-recipe-tag>` if it exists, then verify `docker image inspect <exact-recipe-tag>` fails. Remove the temporary Compose override/env/source files. Do not remove shared upstream base images (for example PostgreSQL, .NET SDK, or MediaMTX) or images owned by another recipe/project.
|
||||
- Put teardown and exact-tag image removal in the same cleanup trap so both success and failure paths clean up. Do not reuse another acceptance recipe's locally built image: build a uniquely tagged image for this recipe and remove it in this recipe's cleanup path.
|
||||
|
||||
## Acceptance workflow
|
||||
|
||||
1. Inspect the Compose file and interpolation requirements before starting it. Generate a temporary environment file with unique database/JWT secrets and a distinct loopback port.
|
||||
2. Start the minimal Central + PostgreSQL stack from source with `docker compose -p <unique-name> --env-file <temp-env> -f docker/docker-compose.yml up -d --build`.
|
||||
3. Wait for the Central health check and probe the changed behavior through its HTTP/API/UI boundary. Exercise both the expected success path and the relevant rejection/restart path.
|
||||
4. Capture only sanitized logs or response codes needed to explain a failure. Never print passwords, tokens, connection strings, or full environment files.
|
||||
5. Tear down the named project and its volumes in a cleanup path. Verify removal and delete temporary files.
|
||||
2. Generate a temporary Compose image override. For example:
|
||||
|
||||
```yaml
|
||||
services:
|
||||
heimdall:
|
||||
image: heimdall:${ACCEPTANCE_PROJECT}-central
|
||||
```
|
||||
|
||||
Put `ACCEPTANCE_PROJECT=<unique-name>` in the temporary env file and include both Compose files in every command. This overrides only the image tag; the checked-in source build context is retained. Use similarly unique tags for any Agent or helper image built from this checkout.
|
||||
3. Start the minimal Central + PostgreSQL stack from source with `docker compose -p <unique-name> --env-file <temp-env> -f docker/docker-compose.yml -f <temp-image-override> up -d --build`.
|
||||
4. Wait for the Central health check and probe the changed behavior through its HTTP/API/UI boundary. Exercise both the expected success path and the relevant rejection/restart path.
|
||||
5. Capture only sanitized logs or response codes needed to explain a failure. Never print passwords, tokens, connection strings, or full environment files.
|
||||
6. Tear down the named project and its volumes in a cleanup path. Verify no project containers, volumes, or networks remain. Remove every project-unique image tag created by this recipe and verify it is absent; retain only shared upstream/base images. Delete temporary environment and secret files.
|
||||
|
||||
If Docker access is unavailable, request the required local permission or explain the blocker; do not substitute a production deployment or claim the recipe passed.
|
||||
@@ -22,7 +22,8 @@ Read `AGENTS.md`, `todo.md`, `docs/docker-compose.md`, and the relevant Compose
|
||||
2. Run Compose config validation, build Central from source, start PostgreSQL and Central, then verify PostgreSQL health, Central `/healthz`, bootstrap status, and the documented opt-in default for OCR.
|
||||
3. When documentation covers OCR enablement, set `PLATE_OCR_ENABLED=true` in the generated temporary env and verify the option reaches the container, then exercise the synthetic crop path. Also verify false by default. Do not infer real camera accuracy.
|
||||
4. Tear down only the named project with `down --volumes --remove-orphans`; verify zero project containers, volumes, and networks. Remove temporary environment and secret files.
|
||||
5. Keep Windows installer execution, production recovery, external S3 services, and real hardware acceptance open unless independently run on those targets.
|
||||
5. Assign the locally built Central image a unique tag containing the project name. After teardown, remove and verify absence of that exact tag. Keep shared upstream runtime/database images and never prune images broadly.
|
||||
6. Keep Windows installer execution, production recovery, external S3 services, and real hardware acceptance open unless independently run on those targets.
|
||||
|
||||
When the Docker daemon is reserved by another acceptance, perform static source/config review and record the Compose run as pending. Never launch an overlapping project to satisfy this recipe.
|
||||
|
||||
|
||||
@@ -13,5 +13,6 @@ Use this skill when changing account bootstrap, signup, login routing, user crea
|
||||
- Existing installations with users skip setup and keep their accounts. The bootstrap flow must not overwrite or replace existing users.
|
||||
- Update FR/EN resources, route behavior, API client behavior, and tests together. Remove public registration links and ensure direct calls to the old registration route are rejected after setup.
|
||||
- For every implementation change, follow `compose-disposable-recipe` and validate both an empty database (setup and first admin) and an initialized database (setup closed, anonymous registration rejected, admin account creation available).
|
||||
- Tag every source-built Central image with the unique Compose project name and remove/verify that exact tag after teardown; retain shared PostgreSQL and .NET base images.
|
||||
|
||||
Never use credentials supplied for a real deployment in tests. Use generated credentials in the disposable Compose environment and sanitize logs.
|
||||
@@ -22,6 +22,7 @@ Use this skill when changing ONNX Runtime packages, execution provider configura
|
||||
- Add tests for CPU-only selection, successful CUDA selection, missing CUDA provider, and CUDA session initialization failure. Also exercise the repository YOLO fixture with the CPU provider so package changes preserve real inference.
|
||||
- Test the default Agent test suite and the GPU package variant where the local machine permits. GPU package tests may need a larger non-`/tmp` output directory because ONNX GPU and image-processing NuGet packages ship native assets for multiple operating systems. The real-model test searches upward from the test output for `models/yolov8n.onnx`; keep output under the repository or place the fixture alongside the test output.
|
||||
- Any runtime/image or Compose behavior change requires the disposable Compose recipe in `skills/compose-disposable-recipe/SKILL.md`. Keep hardware-only validation open unless NVIDIA, AMD, or Intel hardware is actually exercised. A successful CPU fallback test does not prove GPU execution.
|
||||
- Tag the locally built CUDA Agent and any Central fixture image with the unique acceptance project name. After stopping the project, remove those exact tags and verify they are absent; retain shared CUDA/runtime base layers and never use `docker image prune`.
|
||||
|
||||
- The current pinned GPU image pairs ONNX Runtime 1.22 with NVIDIA CUDA 12.8.1/cuDNN 9.8.0.87 on amd64. The CUDA runtime base is pinned by the architecture-specific manifest digest in `docker/Dockerfile.agent.gpu`; the dev overlay targets `linux/amd64` and the Dockerfile uses that target rather than a constant `FROM --platform` override. Refresh the digest only after checking the ONNX Runtime compatibility table and obtaining the matching NVIDIA registry digest.
|
||||
|
||||
|
||||
@@ -30,5 +30,7 @@ grant. Soft-deleted groups must stop granting access immediately.
|
||||
list, remove the member, and verify the empty list. Use only synthetic data.
|
||||
3. Tear down that exact project with volumes and orphans, verify there are no
|
||||
project containers, volumes, or networks, and delete generated secret files.
|
||||
4. Update `todo.md` with the exact evidence and keep physical/deployment-only
|
||||
4. Remove and verify absence of every project-unique locally built image tag
|
||||
after teardown. Retain shared upstream PostgreSQL/.NET runtime images.
|
||||
5. Update `todo.md` with the exact evidence and keep physical/deployment-only
|
||||
claims separate from local acceptance.
|
||||
@@ -25,5 +25,6 @@ Read `AGENTS.md`, the `AUTH-BOOTSTRAP` entry in `todo.md`, and the Identity wiri
|
||||
- Keep PostgreSQL-specific transaction and concurrency guarantees in Infrastructure. Use relational integration tests for bootstrap races, recovery-code redemption, session revocation, and migration compatibility.
|
||||
- For behavior changes, update FR/EN resources and UI/API contracts, add focused tests, update `todo.md`, and run the disposable Compose acceptance recipe with unique credentials, ports, volumes, project name, and network.
|
||||
- Acceptance must exercise bootstrap through the setup UI, user lifecycle and role editing through `/users`, permission editing through `/admin/claims`, and verify the resulting JWT/API allow and deny decisions. Check that stale sessions fail after a role/permission change and that the last usable Admin cannot be demoted, deleted, or locked.
|
||||
- Give each source-built Central acceptance image a project-unique tag; remove and verify absence of that exact tag after Compose teardown. Keep shared upstream base images and avoid all broad image-prune commands.
|
||||
|
||||
Useful official references: [ASP.NET Core Identity configuration](https://learn.microsoft.com/aspnet/core/security/authentication/identity-configuration), [Two-factor authentication](https://learn.microsoft.com/aspnet/core/security/authentication/identity-enable-qrcodes), and [Data Protection](https://learn.microsoft.com/aspnet/core/security/data-protection/introduction).
|
||||
@@ -25,3 +25,5 @@ Read `AGENTS.md`, the mDNS #81 entry in `todo.md`, `skills/heimdall-dotnet/SKILL
|
||||
## Disposable Compose
|
||||
|
||||
Run a one-shot isolated Compose test from the changed source with the SDK pinned by `global.json` (currently `mcr.microsoft.com/dotnet/sdk:10.0.100`). Copy only the Agent test project and its referenced source projects into a temporary directory outside the repository. Restore with `--locked-mode`, then run only `HomeKitMdnsProbeTests`; these tests synthesize DNS-SD response packets and exercise the parser plus Agent mapping without multicast privileges or access to the LAN. Use a unique Compose project, project-scoped NuGet volume, and isolated bridge; publish no ports and never use host networking. Remove only the named project with `down --volumes --remove-orphans`, verify its containers, volumes, and network are gone, then delete the source copy. This proves source/test behavior in a container, not multicast delivery or camera discovery on a real LAN.
|
||||
|
||||
This SDK-only recipe creates no local Heimdall image. Retain the shared SDK base image; if future changes add a local build, use a project-unique tag and remove/verify that exact tag after teardown under `skills/compose-disposable-recipe/SKILL.md`.
|
||||
@@ -19,5 +19,6 @@ The supported PWA deployment is at the web origin root (`/`). The Blazor app use
|
||||
|
||||
1. Run `tests/Heimdall.E2E.Tests` with its disposable PostgreSQL fixture and Chromium. Check unauthenticated manifest and icon access, exact public-shell contents, offline navigation fallback, and absence of cached private content.
|
||||
2. Build the changed source through the disposable Central + PostgreSQL Compose recipe in `skills/compose-disposable-recipe/SKILL.md`; probe `/healthz`, `/manifest.webmanifest`, `/service-worker.js` and the offline page. Use unique project/ports/credentials/volumes and verify teardown.
|
||||
Assign the locally built Central image a project-unique tag; remove and verify that exact tag after teardown, while retaining shared .NET/PostgreSQL bases.
|
||||
3. Review `docs/pwa.md` and deployment instructions for HTTPS, root hosting, reverse proxy/WebSocket support, update and rollback behavior. Report physical iOS/Android/desktop installation, HTTPS proxy, and mobile sleep/network testing only when run on those real environments.
|
||||
4. Keep the PWA backlog open for validations that require real browsers/devices or remote push infrastructure. Do not claim Web Push exists without a tested VAPID backend, subscriptions, revocation and permission-aware delivery.
|
||||
@@ -12,4 +12,5 @@ Use this skill for `.gitea/workflows/renovate.yml`, `renovate.json`, or dependen
|
||||
- HTTP 401/403 means the secret is missing, expired, revoked, or lacks repository access. Configure a bot token with repository read and write access so Renovate can open pull requests. Read preflight success does not prove write access; confirm a successful run that opens or updates a PR.
|
||||
- Use `node --test scripts/ci/renovate-preflight.test.mjs` to test endpoint validation and sanitized auth failures locally. Do not run Renovate locally with production credentials.
|
||||
- For a changed preflight/deployment path, validate a disposable Compose project with a mock HTTPS API, a synthetic token, no host-published ports or persistent data, and both accepted and rejected credentials. Remove that exact project and confirm it leaves no containers or volumes; if pulling the Node base image is unavailable, record the blocker and rerun the recipe when registry access is restored.
|
||||
- The mock-preflight recipe uses a shared upstream Node image and creates no local application image. Retain that base image; if the recipe adds a local build, use a project-unique tag and remove/verify only that exact tag after teardown.
|
||||
- For operational changes, update the P0 Renovate status in `todo.md` with the workflow run and the remaining remote-secret validation. Never claim the bot works based only on configuration presence.
|
||||
@@ -10,11 +10,11 @@ Use this workflow when changing `Dockerfile` health checks, Central Compose heal
|
||||
- Central and Agent containers probe `/healthz` on port 8080 (the development Agent may bind its host-mapped port). ASP.NET maps this route for `GET`; a `HEAD` request returns 405 and marks a live server unhealthy.
|
||||
- In the Alpine image, use BusyBox `wget` with `-O /dev/null` to issue a GET and discard the body. Do not use `--spider`, because BusyBox implements it as HEAD.
|
||||
- Apply this to both `docker/Dockerfile`/Central Compose and `docker/Dockerfile.agent`/Agent development Compose. Keep the image and Compose probes consistent, with bounded timeout/retries and no published health endpoint required.
|
||||
- For acceptance, build the changed Central or Agent image from source in a unique Compose project with a generated `.env`, synthetic credentials, a loopback-only unused port, and project-scoped volumes/network. Verify a GET health probe succeeds and an equivalent HEAD receives the endpoint's 405; then confirm the changed service reports healthy and remove only that project with `down --volumes --remove-orphans`. Verify no labeled containers, volumes, or networks remain.
|
||||
- For acceptance, build the changed Central or Agent image from source under a project-unique tag in a unique Compose project with a generated `.env`, synthetic credentials, a loopback-only unused port, and project-scoped volumes/network. Verify a GET health probe succeeds and an equivalent HEAD receives the endpoint's 405; then confirm the changed service reports healthy and remove only that project with `down --volumes --remove-orphans`. Verify no labeled containers, volumes, or networks remain, remove and inspect the exact local image tag, and retain shared base images.
|
||||
|
||||
## Metrics scrape acceptance
|
||||
|
||||
For a Central scrape check, the source-built server image exposes GET /metrics as Prometheus text and includes ASP.NET Core instrumentation after a request. Use the same disposable Compose isolation and an explicitly empty Sentry DSN; scrape the host loopback port, assert HTTP 200 plus Prometheus # HELP/# TYPE and an ASP.NET request metric, then remove the project and verify zero containers, volumes, and networks.
|
||||
For a Central scrape check, the source-built server image exposes GET /metrics as Prometheus text and includes ASP.NET Core instrumentation after a request. Use the same disposable Compose isolation and an explicitly empty Sentry DSN; scrape the host loopback port, assert HTTP 200 plus Prometheus # HELP/# TYPE and an ASP.NET request metric, then remove the project and verify zero containers, volumes, and networks. Remove and verify absence of that recipe's unique server image tag afterward.
|
||||
|
||||
On 5 November 2026, project hmd-metrics-scrape-1793874584 used the prior source-built OCR Central image (no code changes between that image and this scrape). It returned HTTP 200 with Prometheus exposition and ASP.NET metrics; Sentry DSN was empty and teardown verified 0/0/0. This local check does not validate a deployed Prometheus server or alert thresholds.
|
||||
|
||||
|
||||
@@ -16,5 +16,6 @@ Recording is opt-in per camera (`RecordingEnabled`, default false). Agent captur
|
||||
- Add PostgreSQL tests for migration, metadata/idempotency, quota concurrency/cleanup, camera access, range translation, and retention semantics when touching those paths. Agent tests should cover bounded argument construction, defaults, and spool/config behavior.
|
||||
- For acceptance, build Central from this changed source in a unique disposable Compose project. Register an isolated Agent and synthetic RTSP source, enable recording, prove at least one segment reaches Central, verify scoped list/range download and unauthorized denial, then remove only that Compose project and confirm its containers/volumes/network are gone.
|
||||
- For quota acceptance, set `RECORDING_STORAGE_QUOTA_MAX_BYTES` to a small positive value such as 32, build Central from source, and probe `/healthz` plus `/api/auth/bootstrap-status` to prove startup validation. Run the PostgreSQL API test with concurrent uploads to prove the 507 boundary, idempotent retry, unique keys, and cleanup of over-quota/duplicate objects. Tear down the named Compose project and verify zero containers, volumes, and networks.
|
||||
- For each recording recipe, use project-unique tags for locally built Central and Agent images, then remove and verify those exact tags after Compose teardown. Retain shared PostgreSQL/MediaMTX base images. Follow `skills/compose-disposable-recipe/SKILL.md`; never use `image prune`.
|
||||
|
||||
Current product gaps are audio/event-trigger capture and validation against real cameras/codecs. Keep FEAT-02 open until these are addressed and validated.
|
||||
@@ -36,4 +36,5 @@ Official sources reviewed:
|
||||
2. Compose source build passed in isolated project `hmd-plate-20261105094933-31487`. It used a generated database/JWT credential set, unused `127.0.0.1` ports, unique network/image/project, and project-scoped volumes. `PlateOcr` was enabled only through a temporary Compose override. The `synthetic-plate.png` fixture returned `AB-123-CD` with Tesseract confidence `0.912` through the authenticated multipart API; `/api/events` page 1 contained the created event.
|
||||
3. The invalid JPEG signature returned HTTP 400. PostgreSQL inspection confirmed the plate observation and history event were persisted with no Person/Vehicle link and no event snapshot. The random OCR temp path was absent after processing.
|
||||
4. `down --volumes --remove-orphans` cleanup verified `containers=0 volumes=0 networks=0`. The first admin bootstrap also called the existing HaveIBeenPwned breach checker with a generated synthetic password; that code uses k-anonymity, so the Compose exercise was not fully offline. No real password, camera, image, or release secret was used.
|
||||
5. This acceptance covers one clean synthetic crop and API persistence only. It does not establish OCR accuracy in real scenes, video plate detection, face recognition, browser-driven upload behavior, camera hardware behavior, or event retention/privacy suitability.
|
||||
5. Give the source-built Central image a unique tag containing the Compose project name; remove and verify that exact tag after `down`. The historical acceptance image tags from this recipe have been removed. Retain the shared .NET/ASP.NET base images and never use broad image pruning.
|
||||
6. This acceptance covers one clean synthetic crop and API persistence only. It does not establish OCR accuracy in real scenes, video plate detection, face recognition, browser-driven upload behavior, camera hardware behavior, or event retention/privacy suitability.
|
||||
@@ -67,6 +67,8 @@ the Agent. Configure its assigned camera against the host loopback RTSP port. Do
|
||||
5. Logs and API errors contain no credentials, raw tokens, RTSP URLs, or ICE
|
||||
secrets. Verify configured ICE/TURN candidate behavior separately.
|
||||
6. Tear down only that Compose project with volumes/orphans, then verify its
|
||||
containers, volumes and network are gone.
|
||||
containers, volumes and network are gone. Remove and verify absence of the
|
||||
project-unique Central and Agent image tags built by this recipe. Keep the
|
||||
shared MediaMTX base image; do not run image-prune commands.
|
||||
|
||||
Record LAN browser and external TURN runs independently. Focused API/Web ticket/session tests (7/7) and the Agent relay test (1/1) pass. On 5 November 2026, disposable project `hmd-wrtc-75d1f49f` was built from this source with a synthetic H.264 RTSP source. Central bootstrap/site creation, Agent registration and camera assignment passed. Headless Chromium ran the actual `live-view.js` WHEP path and decoded a 640×360 frame (one video track); WHEP resource deletion returned 200 and Central session release 204. The MediaMTX auth callback accepted the valid read ticket and rejected altered action/path/protocol and a forged ticket (401); unknown camera access was denied. The API disable action stopped the scoped Agent publisher process from one to zero. Log scans found no admin/session/site credentials or RTSP source URL. The run exposed and fixed MediaMTX env interpolation and Docker ICE port mapping in the local recipe. The project was torn down with `down --volumes --remove-orphans`; project-scoped checks found zero containers, volumes and networks, and temporary secrets were deleted. Physical camera, LAN and external TURN are unvalidated; audio/PTZ remain out of scope, so keep FEAT-01 open.
|
||||
@@ -56,7 +56,7 @@ Ce fichier remplace les rapports de `docs/audits/` et constitue le suivi courant
|
||||
- [ ] **Métriques #14** Les endpoints Prometheus `/metrics` Web et Agent sont mappés. La PR #68 ajoute et valide `heimdall.signalr.connections_by_hub` sur les cinq hubs Web. La PR #122 ajoute `heimdall.ai.queue.dropped` et `heimdall.agent.disk.usage.percent`; la PR #123 fournit des règles Prometheus d’exemple pour les rejets, le backlog persistant et le disque (seuil disque à adapter); la PR #124 ajoute les âges observés des jobs en attente/en cours, les jobs échoués et la disponibilité du monitoring Hangfire; la PR #125 ajoute l’état agrégé de l’outbox notifications et des alertes sur les livraisons en échec, en retard ou au bail expiré; la PR #126 ajoute le signal de snapshot Central valide reçu. La jauge de viewers suit maintenant les réservations de sessions WebRTC, les arrêts explicites et les expirations; validation simulée locale le 5 novembre : suite ciblée Agent santé/métriques 32/32 (health check modèle absent, caméra sans flux, saturation CPU, backlog snapshots/inférence et disque); scrape HTTP Compose du 5 novembre sur l’image Central OCR déjà buildée depuis cette branche (hmd-metrics-scrape-1793874584) a répondu 200, contenu exposition Prometheus et métriques ASP.NET Core présentes; DSN Sentry vide; projet supprimé et vérifié 0/0/0. Ce n’est pas un scrape Prometheus déployé et ne mesure pas l’évolution réelle des métriques. Restent scraping et mesure sur déploiement.
|
||||
- [x] Ajouter `.agents/skills/secure-env-secrets/SKILL.md` : procédures pour lire/écrire les secrets fournis par l'utilisateur dans l'environnement local, avec stockage persistant optionnel hors dépôt, permissions utilisateur uniquement et sans exposer la valeur. Le skill ne configure pas les secrets des workflows distants.
|
||||
- [ ] Vérifier readiness et alertes pour modèle absent, file pleine, backlog, disque, jobs bloqués, perte de configuration et échec de livraison. Le contrôle stockage est aligné sur le fournisseur actif dans les réglages DB de l’IHM, avec probe d’écriture locale, probe du bucket S3 sélectionné et timeout borné ; les health checks IA convertissent aussi leurs timeouts internes en état dégradé tout en propageant l’annulation appelante. La PR #109 ajoute les tests de `/readyz` sain/stockage mal configuré (sans fuite de configuration), de `/health/live` avec IA optionnelle absente et de diagnostics Agent lorsque le modèle ou le flux de capture manque ; le run PR #327 a passé 383 tests Agent, 150 tests d’intégration PostgreSQL, 35 E2E sans test ignoré, les builds/scans serveur/Agent et `CI policy`. La PR #111, mergée, ajoute les diagnostics de saturation CPU et garantit que cette saturation reste `Unhealthy` même quand la capture est également périmée ; le run PR #335 a passé les tests, scans serveur/Agent et `CI policy`. La PR #112, mergée après les runs #370, ajoute les profondeurs des files snapshots et inférence ainsi que les snapshots abandonnés. La PR #113, mergée, ajoute le taux d’occupation disque au diagnostic santé Agent sans définir de seuil de dégradation. La PR #122 exporte snapshots rejetés et occupation disque; la PR #123 ajoute des règles Prometheus d’exemple pour pertes, backlog persistant et disque; la PR #124 exporte les âges Hangfire observés et ajoute les alertes de jobs anciens/échoués et de monitoring indisponible; la PR #125 ajoute les métriques agrégées de l’outbox et les alertes de livraison; la PR #126 exporte la réception d’un snapshot Central et ajoute une alerte opt-in pour les Agents attendus sur un site. Validation simulée locale Agent le 5 novembre : health checks et métriques ciblés 32/32 couvrent modèle absent, flux caméra manquant, saturation, backlog et disque. Le test ciblé HealthControllerTests PostgreSQL est repassé 5/5 le 5 novembre; l’échec réseau/stockage réel reste non validé; scrape manuel Compose de /metrics Central du 5 novembre : HTTP 200, format Prometheus et métriques ASP.NET Core visibles; image source-buildée précédente, DSN Sentry vide, teardown 0/0/0. Restent le scrape Prometheus déployé et les pannes/seuils réels. Le parcours Compose du 4 novembre a révélé que BusyBox `wget --spider` envoyait HEAD sur `/healthz` (405) alors que GET répond 200; Dockerfile et Compose utilisent maintenant `wget -O /dev/null` pour émettre GET. Skill : `skills/server-healthchecks/SKILL.md`; recette Compose source intégrée à l’acceptation finale.
|
||||
- [ ] Actualiser les guides après chaque changement d’infrastructure, routes/API et statut produit ; distinguer implémenté, validé, partiel et prévu. Cette passe documente le lecteur OCR local opt-in, ses limites et son câblage installateurs, et corrige les indications backup obsolètes sur mc. Vérifications statiques : bash -n scripts/install/backup, mappings YAML, sources installateurs et git diff --check passés. Le rebuild source Compose est resté bloqué dans BuildKit avant conteneurs; la recette avec l’image Central OCR déjà buildée a ensuite validé par Compose les valeurs effectives false puis true et le healthcheck; teardown confirmé 0/0/0. pwsh absent; Windows et installations distantes non testées. Voir skills/deployment-guide-acceptance/SKILL.md.
|
||||
- [ ] Actualiser les guides après chaque changement d’infrastructure, routes/API et statut produit ; distinguer implémenté, validé, partiel et prévu. Cette passe documente le lecteur OCR local opt-in, ses limites et son câblage installateurs, corrige les indications backup obsolètes sur mc, et impose maintenant aux skills de recette des tags d’image uniques supprimés après le teardown, sans image prune ni suppression des bases partagées. Onze anciens tags d’acceptance ont été retirés et vérifiés absents (hmd-plate-*, heimdall:local, heimdall-agent:gpu-local/webrtc-test, tags RBAC/users, hmdbk_a466d0ce-backup:latest et hmdack_8df77197-agent-ack-test:latest). Vérifications statiques : bash -n scripts/install/backup, mappings YAML, sources installateurs et git diff --check passés. Le rebuild source Compose est resté bloqué dans BuildKit avant conteneurs; la recette avec l’image Central OCR déjà buildée a ensuite validé par Compose les valeurs effectives false puis true et le healthcheck; teardown confirmé 0/0/0. pwsh absent; Windows et installations distantes non testées. Voir skills/deployment-guide-acceptance/SKILL.md.
|
||||
|
||||
## Corrections déjà livrées à préserver
|
||||
|
||||
|
||||
Reference in new issue
Block a user