Heimdall Gitea / Detect CI scope (pull_request) Successful in 4s
Heimdall Gitea / Build and tests (pull_request) Successful in 14m48s
Heimdall Gitea / Publish versioned release (pull_request) Skipped
Heimdall Gitea / Build and scan server image (pull_request) Successful in 4m24s
Heimdall Gitea / Build and scan agent image (pull_request) Successful in 9m12s
Heimdall Gitea / Publish Docker Hub latest tags (pull_request) Skipped
Heimdall Gitea / CI policy (pull_request) Successful in 4s
2.0 KiB
2.0 KiB
Heimdall contributor rules
- Read
todo.mdbefore 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
Domainindependent of infrastructure. Put use cases and interfaces inApplication, adapters and EF Core persistence inInfrastructure, HTTP/UI composition inWeb, and camera/runtime behavior inAgent. - Target the SDK pinned by
global.jsonand .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. - Use EF Core for production database reads and writes. Do not use direct ADO.NET or provider commands in production code; provider-specific EF SQL is allowed only for capabilities LINQ cannot express, with a nearby rationale and a test. The CI persistence policy enforces this boundary. Preserve PostgreSQL behavior, add migrations for schema changes, and verify translation, concurrency, and deletion semantics with relational tests. Never reuse a
DbContextacross concurrent operations. - Keep tenant/site and camera authorization checks at API and application boundaries. Do not log credentials, RTSP URLs, embeddings, or raw tokens.
- CI jobs run only on
[ubuntu-latest, build-agent]. Keeprunner-aajaoutside that label. Never use release credentials in pull request jobs. - A PR touching deployment or publication must document required secrets and prove the relevant script locally. Do not claim a runner, registry, camera, or object store was validated without a real run.
See skills/heimdall-dotnet/SKILL.md for project-specific implementation guidance. For database access, also follow skills/ef-core-persistence/SKILL.md; the CI persistence policy checks production source for direct database commands and requires documented provider-specific exceptions.