Files
Heimdall/skills/deployment-guide-acceptance/SKILL.md
T
arnaud.dartois 32d68595d5
Heimdall Gitea / Detect CI scope (push) Successful in 5s
Heimdall Gitea / Build and tests (push) Skipped
Heimdall Gitea / Build and scan server image (push) Skipped
Heimdall Gitea / Build and scan agent image (push) Skipped
Heimdall Gitea / Build and scan NVIDIA Agent image (push) Skipped
Heimdall Gitea / Publish versioned installer release (push) Skipped
Heimdall Gitea / CI policy (push) Successful in 1s
docs: sync documentation index with current guides (#406)
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-13 12:36:04 +01:00

6.5 KiB

name, description
name description
deployment-guide-acceptance Keep Heimdall's Docker installation and backup guides aligned with the actual Compose assets and validate source-built installation flows in a disposable project.

Heimdall deployment guide acceptance

Read AGENTS.md, the linked Gitea issue, docs/docker-compose.md, and the relevant Compose and focused skills before changing deployment instructions. Follow the Gitea ticket workflow for status and acceptance evidence.

Project-specific documentation checks

  • Treat docs/implementation.md as a July 2026 historical MVP archive in its entirety. Do not use its old phase statuses, paths, commands, endpoint tables, or counts as current guidance; direct readers to the current focused docs and use Gitea issues for live status.
  • When changing document structure, section numbering, or a product status summarized in docs/specs.md, verify the entry points in docs/README.md: every section/document reference must resolve, and summary wording must preserve optional, partial, and externally unvalidated states.
  • Central production is PostgreSQL plus Heimdall Web. The development Compose builds Central from source; the interactive Linux/Windows installers create deployment files without cloning the repository.
  • Production Agent Compose is generated in Central for the selected site and pins the image digest. The repository's Agent Compose files are development or optional hardware overlays only.
  • Recording quota is configured through RECORDING_STORAGE_QUOTA_MAX_BYTES; absent an override, Central uses 1 TiB.
  • The Central image installs Tesseract plus English language data. PLATE_OCR_ENABLED is mapped to PlateOcr__Enabled by the development and production Compose files and both Linux/Windows installer templates. New installs default it to false; upgrades preserve an existing value and add false if absent. If documented, explain that OCR is an operator-uploaded crop processed locally, not automatic video detection or face recognition; mention temporary crop deletion and that OCR candidates do not establish identity.
  • Recording status must be traced across AgentRecordingService (primary RTSP stream, local MP4 segment spool, Central API upload), RecordingsController/Application storage, and the camera detail playback UI. Do not say recording is missing or that the Agent writes directly to S3; distinguish implemented code from real-camera/deployment validation.
  • Live relay source tracking uses AgentCameraConfig.EffectiveRtspUrl (configured substream, otherwise primary RTSP). After a source change, LiveCameraRelayService stops and disposes the old FFmpeg process before starting the new source; do not retain the former renewal-delay caveat after issue #355.
  • The current PWA baseline includes a manifest, bounded service worker, and static offline page. Web Push backend/client and offline business screens are not implemented; use docs/pwa.md for device and deployment validation status.
  • The scheduled backup service installs AWS CLI, Bash, and GNU coreutils. The backup scripts select AWS CLI in this image and use S3-compatible configuration; do not instruct operators to download the retired MinIO mc URL.
  • Optional Compose projects depend on the documented external core network and, where stated, the Central data volume. Do not describe an optional service as part of required startup.

Disposable installation acceptance

  1. Follow the local development installation commands in docs/docker-compose.md from the changed checkout. Create a unique project, isolated bridge, generated database/JWT credentials and unused loopback ports under a temporary directory. Do not copy production .env, use the default credentials unchanged, or use deployed volumes/networks.
  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. Install an EXIT cleanup trap before build/start. Tear down only the named project with down --volumes --remove-orphans; verify zero project containers, volumes, and networks. Remove temporary environment and secret files even if build or assertions fail.
  5. Record a unique tag for each locally built Central/helper image before build. After teardown, remove and verify absence of each exact tag. Keep shared upstream runtime/database images, preserve test exit status, report cleanup errors, and never use --rmi all or 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.

Latest local attempt

On 5 November 2026, Compose configuration and installer-source assertions passed, but the source build acceptance did not complete: BuildKit's docker-buildx client remained blocked for over eight minutes after its compiler child disappeared, with no project containers created. The command was interrupted; its cleanup trap confirmed zero project containers, volumes, and networks and removed the generated env. A follow-up Compose project hmd-ocr-env-safe-1793874420 reused the previously source-built Central OCR image (the current checkout rebuild was still blocked) to exercise the changed Compose wiring: default PlateOcr__Enabled=false and explicit true after recreate both reported healthy. Sentry__Dsn was explicitly empty. Cleanup verified zero containers, volumes, and networks. These are partial recipe results: the reused application image was not a uniquely built image for this recipe, and no exact-tag removal/absence check is recorded. Repeat the source build and probe with a fresh project tag before treating deployment-guide Compose acceptance as complete. An earlier attempt without the Sentry override emitted synthetic EF log events to the configured GlitchTip; no real credentials/data were used. The Compose environment mapping is verified; rebuilding this exact checkout and Windows installer execution remain unverified. pwsh was not installed, so the Windows installer was reviewed statically only.