Compare commits
1
Commits
1.0.8
...
f5029a4424
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5029a4424 |
No files matched your search
@@ -2,13 +2,14 @@
|
||||
name: "🐛 Bug"
|
||||
about: "Comportement incorrect, régression ou risque fonctionnel détecté"
|
||||
title: "BUG: "
|
||||
labels: ["bug"]
|
||||
labels: ["type:bug"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Bug — à remplir avant de commencer
|
||||
> Si le bug est un écart par rapport à la spec, citer `docs/MASTER_SPECIFICATION.md`.
|
||||
> Avant de commencer, ajouter les labels `priority:P0`…`priority:P3` et `area:*` adaptés. Voir `skills/gitea-ticket-workflow/SKILL.md`.
|
||||
|
||||
- type: textarea
|
||||
id: contexte
|
||||
@@ -22,7 +23,7 @@ body:
|
||||
id: observe
|
||||
attributes:
|
||||
label: "🐞 Comportement observé"
|
||||
description: "Ce qui se passe réellement (avec logs/erreurs si dispo)"
|
||||
description: "Ce qui se passe réellement (avec logs/erreurs expurgés de toute donnée sensible)"
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -38,7 +39,7 @@ body:
|
||||
id: repro
|
||||
attributes:
|
||||
label: "🔁 Reproduction"
|
||||
description: "Étapes pour reproduire + environnement (dev/prod, docker, env vars)"
|
||||
description: "Étapes pour reproduire + environnement (dev/prod, Docker, noms de variables sans leurs valeurs)"
|
||||
placeholder: "1. …\n2. …\n3. …"
|
||||
|
||||
- type: input
|
||||
@@ -69,5 +70,4 @@ body:
|
||||
options:
|
||||
- label: "Bug reproduit avant fix (test qui échoue)"
|
||||
- label: "Fix implémenté + tests verts (`make test`)"
|
||||
- label: "Statut du ticket mis à jour (via skill forgejo-issues)"
|
||||
- label: "Carte kanban Hermes mise à jour (lien vers l'issue)"
|
||||
- label: "Issue et preuves mis à jour dans Gitea selon le workflow commun"
|
||||
@@ -2,12 +2,13 @@
|
||||
name: "🔧 Maintenance / Chore"
|
||||
about: "Tâche de maintenance, mise à jour de dépendance, CI, outillage"
|
||||
title: "CHORE: "
|
||||
labels: ["chore"]
|
||||
labels: ["type:maintenance"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Maintenance / Chore
|
||||
Avant de commencer, ajouter les labels `priority:P0`…`priority:P3` et `area:*` adaptés. Voir `skills/gitea-ticket-workflow/SKILL.md`.
|
||||
|
||||
- type: textarea
|
||||
id: contexte
|
||||
@@ -44,4 +45,4 @@ body:
|
||||
label: "✅ Definition of Done"
|
||||
options:
|
||||
- label: "Tâche réalisée + vérifiée"
|
||||
- label: "Statut du ticket mis à jour (via skill forgejo-issues)"
|
||||
- label: "Issue et preuves mis à jour dans Gitea selon le workflow commun"
|
||||
@@ -2,13 +2,14 @@
|
||||
name: "✨ Feature"
|
||||
about: "Nouvelle fonctionnalité ou implémentation manquante par rapport à la spécification"
|
||||
title: "FEAT: "
|
||||
labels: ["feature"]
|
||||
labels: ["type:feature"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Feature — à remplir avant de commencer
|
||||
> Source de vérité : `docs/MASTER_SPECIFICATION.md` (v2.0). Citer les numéros de partie/phase/étape.
|
||||
> Avant de commencer, ajouter les labels `priority:P0`…`priority:P3` et `area:*` adaptés. Voir `skills/gitea-ticket-workflow/SKILL.md`.
|
||||
|
||||
- type: textarea
|
||||
id: contexte
|
||||
@@ -75,5 +76,4 @@ body:
|
||||
- label: "Code implémenté + tests verts (`make test`)"
|
||||
- label: "Migration EF ajoutée si le schéma change"
|
||||
- label: "Documentation/readme mis à jour si pertinent"
|
||||
- label: "Statut du ticket mis à jour (via skill forgejo-issues)"
|
||||
- label: "Carte kanban Hermes mise à jour (lien vers l'issue)"
|
||||
- label: "Issue et preuves mis à jour dans Gitea selon le workflow commun"
|
||||
@@ -2,12 +2,13 @@
|
||||
name: "🧹 Dette technique"
|
||||
about: "Dette technique, obsolescence, drift documentation, amélioration de code"
|
||||
title: "TECH: "
|
||||
labels: ["tech-debt"]
|
||||
labels: ["type:maintenance"]
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
## Dette technique — à remplir avant de commencer
|
||||
Ajouter les labels `priority:P0`…`priority:P3` et `area:*` adaptés. Voir `skills/gitea-ticket-workflow/SKILL.md`.
|
||||
|
||||
- type: textarea
|
||||
id: contexte
|
||||
@@ -53,5 +54,4 @@ body:
|
||||
label: "✅ Definition of Done"
|
||||
options:
|
||||
- label: "Correctif appliqué + vérifié"
|
||||
- label: "Statut du ticket mis à jour (via skill forgejo-issues)"
|
||||
- label: "Carte kanban Hermes mise à jour (lien vers l'issue)"
|
||||
- label: "Issue et preuves mis à jour dans Gitea selon le workflow commun"
|
||||
@@ -1,25 +1,31 @@
|
||||
## Problème et résultat
|
||||
## Résultat et périmètre
|
||||
|
||||
<!-- Décrire le déclencheur, le comportement corrigé et le périmètre. -->
|
||||
<!-- Décrire le besoin, le résultat et les critères de l'issue couverts par cette PR. -->
|
||||
|
||||
Refs #
|
||||
|
||||
## Vérification
|
||||
|
||||
<!-- Issue Gitea liée, liens des runs Gitea, suites exécutées et résultats observés. -->
|
||||
<!-- Commandes, preuves observées, limites et SHA du commit vérifié. Pour un diff Markdown-only, noter les contrôles de diff/liens; ne pas lancer de build ou de stack applicative sans raison. -->
|
||||
|
||||
- [ ] Build and tests : compilation, PostgreSQL, Chromium, archives et images
|
||||
- [ ] Contrôles NuGet et images sans HIGH/CRITICAL
|
||||
- [ ] Limites et tests non exécutés explicitement documentés
|
||||
- [ ] Aucun secret dans les logs/artefacts
|
||||
- [ ] Issue Gitea liée et critères satisfaits/restants précisés
|
||||
- [ ] Contrôles pertinents exécutés; commandes et résultats indiqués
|
||||
- [ ] Recette Compose indépendante indiquée lorsqu'elle est requise, avec preuves de nettoyage
|
||||
- [ ] Limites et validations externes non réalisées explicitement documentées
|
||||
- [ ] Aucun secret dans le diff, les logs ou les artefacts
|
||||
|
||||
## Livraison
|
||||
## Évaluation de release
|
||||
|
||||
<!-- Voir docs/gitea-builds.md. Pas de merge/déploiement implicite. -->
|
||||
<!-- Suivre skills/pr-release-versioning/SKILL.md et /home/nonobis/skills/skills/release-assessment/SKILL.md. -->
|
||||
|
||||
- [ ] Traçabilité commit → résultats → SHA256 des archives → digests images
|
||||
- [ ] Revue des changements de contrats/migrations/configuration
|
||||
- [ ] Si la PR change un graphe d’image : seules les images affectées ont été construites/scannées; publication Docker Hub vérifiée après merge
|
||||
- [ ] Si elle change la livraison : le workflow de tag versionné et la release Gitea versionnée sont documentés et acceptés
|
||||
Release: no — raison
|
||||
|
||||
SonarQube, matériel et autres contrôles externes ne sont considérés validés que si une preuve réelle est jointe. Une protection de branche doit exiger le contexte Gitea constaté sur le run avant de compter sur le blocage d’un merge.
|
||||
## Livraison Heimdall
|
||||
|
||||
<!-- Voir docs/gitea-builds.md si la PR touche CI, publication ou assets de release. -->
|
||||
|
||||
- [ ] Compatibilité contrats/migrations/configuration revue si concernée
|
||||
- [ ] Si le graphe d'image change : images affectées construites/scannées; publication Docker Hub observée après merge
|
||||
- [ ] Si les assets changent : noms, SHA-256/signature et format de release documentés; aucun claim externe sans run réel
|
||||
|
||||
SonarQube, runner, matériel, registre, site et stockage distant ne sont considérés validés que si une preuve réelle est jointe. Aucun merge ou déploiement n'est implicite.
|
||||
@@ -1,18 +1,29 @@
|
||||
# Heimdall contributor rules
|
||||
# Règles Heimdall
|
||||
|
||||
- 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, 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.
|
||||
- Use Gitea project issues as the sole backlog and work-status source. Before changing code, find or create the focused issue, keep its acceptance evidence current, and link the issue from the PR (`Closes #N` only when all criteria are complete; otherwise `Refs #N`). Follow [skills/gitea-ticket-workflow/SKILL.md](skills/gitea-ticket-workflow/SKILL.md). Do not create or maintain a `todo.md` backlog.
|
||||
- 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.
|
||||
- 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 `DbContext` across 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]`. Keep `runner-aaja` outside 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.
|
||||
Les pratiques génériques sont définies dans les skills communs sous `/home/nonobis/skills/skills/`. Les appliquer sans les recopier ici :
|
||||
|
||||
See [skills/heimdall-dotnet/SKILL.md](skills/heimdall-dotnet/SKILL.md) for project-specific implementation guidance.
|
||||
For Penpot design work, follow [skills/penpot-design-sync/SKILL.md](skills/penpot-design-sync/SKILL.md): always open Penpot and establish the authenticated session through the Orca browser, and keep the connected design synchronized with relevant shipped UI changes.
|
||||
When work can be split safely, follow [skills/parallel-development/SKILL.md](skills/parallel-development/SKILL.md) to dispatch independent investigations and implementation through Orca, then integrate and validate the combined change once.
|
||||
For database access, also follow [skills/ef-core-persistence/SKILL.md](skills/ef-core-persistence/SKILL.md); the CI persistence policy checks production source for direct database commands and requires documented provider-specific exceptions.
|
||||
For behavior changes, use [skills/compose-disposable-recipe/SKILL.md](skills/compose-disposable-recipe/SKILL.md); account bootstrap changes also use [skills/first-admin-bootstrap/SKILL.md](skills/first-admin-bootstrap/SKILL.md).
|
||||
For Central installer, Compose, or server image update changes, also use [skills/central-auto-updates/SKILL.md](skills/central-auto-updates/SKILL.md).
|
||||
- cycle Gitea unique : [gitea-delivery-workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md), avec l'authentification, les labels et champs Heimdall précisés dans [gitea-ticket-workflow](skills/gitea-ticket-workflow/SKILL.md) ;
|
||||
- pratiques .NET/EF Core : [dotnet-engineering](/home/nonobis/skills/skills/dotnet-engineering/SKILL.md) ; profil réel des projets Heimdall dans [heimdall-dotnet](skills/heimdall-dotnet/SKILL.md) ;
|
||||
- CI, runners, conteneurs et publication : [devops-engineering](/home/nonobis/skills/skills/devops-engineering/SKILL.md) ; profil CI et release Heimdall dans les skills locales correspondantes ;
|
||||
- coordination Orca : [orca-parallel-work](/home/nonobis/skills/skills/orca-parallel-work/SKILL.md) ; frontières et critères Heimdall dans [parallel-development](skills/parallel-development/SKILL.md) ;
|
||||
- environnements jetables : [disposable-test-environment](/home/nonobis/skills/skills/disposable-test-environment/SKILL.md), complété par la recette exacte [Compose Heimdall](skills/compose-disposable-recipe/SKILL.md) ;
|
||||
- identité, Infisical et MCP : [secure-identity-lifecycle](/home/nonobis/skills/skills/secure-identity-lifecycle/SKILL.md), [infisical-cli](/home/nonobis/skills/skills/infisical-cli/SKILL.md) et [mcp-configuration](/home/nonobis/skills/skills/mcp-configuration/SKILL.md), complétés par les profils locaux sans inventaire de secrets.
|
||||
|
||||
## Contraintes Heimdall
|
||||
|
||||
- Pour toute fonctionnalité, correction, opération ou documentation significative, créer ou mettre à jour une skill ciblée sous `skills/` dans la même PR. Elle décrit le contexte et l'acceptation propres à Heimdall.
|
||||
- Les issues Gitea sont l'unique backlog. Avant une modification, chercher ou créer l'issue et tenir ses critères et preuves à jour. Lier la PR avec `Closes #N` seulement si tous les critères sont remplis; sinon utiliser `Refs #N`. Ne pas maintenir de `todo.md`.
|
||||
- L'architecture réelle est portée par `Heimdall.Domain` et `Heimdall.Domain.Primitives`, `Heimdall.Application`, `Heimdall.Infrastructure`, `Heimdall.Web` et `Heimdall.Agent`; `Heimdall.Contracts` et `Heimdall.Mdns` sont des projets séparés. Domain reste indépendant; Application porte cas d'usage et ports; Infrastructure porte adaptateurs/persistance; Web compose HTTP/UI; Agent porte caméra et runtime.
|
||||
- Cibler le SDK défini dans `global.json` (actuellement 10.0.100) et les projets .NET 10+. Préserver les fournisseurs Central PostgreSQL et Agent SQLite ainsi que leur compatibilité de schéma respective.
|
||||
- Central utilise EF Core en production. La règle CI `scripts/ci/check-efcore-usage.py` interdit les commandes ADO.NET/fournisseur directes en production; maintenir sa liste d'exceptions étroite, motivée et testée. Toute évolution de schéma Central a une migration EF Core révisée. Conserver la procédure d'identité de migration et de vérification/checksum définie dans les skills spécialisées.
|
||||
- Pour les changements de comportement ou de déploiement, exécuter la recette Compose jetable construite depuis le code modifié. Générer secrets, ports, volumes, réseaux, nom de projet et tags locaux uniques; installer le trap avant build/start; supprimer uniquement les ressources de ce projet et vérifier leur absence. Garder les images upstream partagées et ne jamais lancer de prune global.
|
||||
- Les jobs CI utilisent seulement les labels `[ubuntu-latest, build-agent]`; garder `runner-aaja` hors de ces labels. Aucun secret de publication dans les jobs PR.
|
||||
- Les changements de publication ou déploiement documentent les secrets requis par nom et prouvent localement le script concerné. Ne pas affirmer qu'un runner, registre, appareil ou stockage distant a été validé sans exécution réelle.
|
||||
- Les contrôles d'accès site/caméra restent appliqués aux frontières API et Application. Ne jamais journaliser credentials, URL RTSP, embeddings ou tokens bruts.
|
||||
|
||||
## Skills de contexte et d'acceptation
|
||||
|
||||
- Penpot : [penpot-design-sync](skills/penpot-design-sync/SKILL.md) ; ouvrir Penpot via le navigateur Orca et maintenir le design connecté aligné aux changements UI livrés.
|
||||
- Bootstrap administrateur : [first-admin-bootstrap](skills/first-admin-bootstrap/SKILL.md).
|
||||
- Central installer, Compose et images serveur : [central-auto-updates](skills/central-auto-updates/SKILL.md).
|
||||
- Persistance EF Core et migration de démarrage : [ef-core-persistence](skills/ef-core-persistence/SKILL.md) et [database-migration-startup](skills/database-migration-startup/SKILL.md).
|
||||
@@ -5,13 +5,11 @@ description: Build and acceptance-test Heimdall changes in a disposable Docker C
|
||||
|
||||
# Disposable Compose acceptance
|
||||
|
||||
Follow the shared [disposable test environment skill](/home/nonobis/skills/skills/disposable-test-environment/SKILL.md) for general isolation and cleanup policy. This skill specifies the additional exact Compose contract for Heimdall and remains mandatory for behavior, deployment, and operational changes.
|
||||
|
||||
Follow [Infisical secrets](../infisical-secrets/SKILL.md) when the surrounding task also needs real credentials. Acceptance projects must always use generated synthetic values and must never retrieve deployment secrets from Infisical.
|
||||
|
||||
Use this skill for every Heimdall behavior, deployment, or operational change. Read the relevant project skill too; for first administrator setup, use `first-admin-bootstrap`.
|
||||
|
||||
When implementation or acceptance preparation has independent branches, use [parallel development with Orca](../parallel-development/SKILL.md) to assign bounded work. Keep the final Compose run, cleanup verification, and acceptance evidence under one coordinator so the combined change is validated as a whole.
|
||||
|
||||
Track the change and its acceptance evidence in a Gitea issue; follow [the Gitea ticket workflow](../gitea-ticket-workflow/SKILL.md). Put the project name, exact local image tags and cleanup verification in the issue or linked PR, and close the ticket only after the recipe and other required gates pass.
|
||||
Read the relevant product acceptance skill too; for first administrator setup, use `first-admin-bootstrap`.
|
||||
|
||||
## Safety and isolation
|
||||
|
||||
|
||||
@@ -1,29 +1,28 @@
|
||||
---
|
||||
name: ef-core-persistence
|
||||
description: Implement or review database persistence in Heimdall with Entity Framework Core, including SQLite Agent stores and PostgreSQL behavior.
|
||||
description: Preserve Heimdall's PostgreSQL Central and SQLite Agent persistence profiles, migration compatibility, and local CI policy.
|
||||
---
|
||||
|
||||
# Heimdall EF Core persistence
|
||||
# Heimdall persistence profile
|
||||
|
||||
Use this skill whenever changing how application or Agent data is read or written.
|
||||
Apply the shared [dotnet-engineering skill](/home/nonobis/skills/skills/dotnet-engineering/SKILL.md) for EF Core design, query specifications, lifecycle, raw SQL exceptions, and relational verification. Apply the shared [Gitea delivery workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md) for issue evidence and release/PR lifecycle. This file contains only provider and repository-specific requirements.
|
||||
|
||||
For work spanning multiple persistence concerns, use [parallel development with Orca](../parallel-development/SKILL.md). Keep each `DbContext` operation isolated; assign migration/model ownership clearly and serialize edits that touch the same entity configuration or migration chain.
|
||||
## Providers and ownership
|
||||
|
||||
- Use EF Core LINQ and entity configurations for CRUD. Prefer projections, bounded result sets, asynchronous APIs, and `CancellationToken`; use `AsNoTracking` for read-only entity queries.
|
||||
- Create a short-lived `DbContext` per operation. Hosted services and concurrent workers should use `IDbContextFactory<TContext>` and dispose each context; never share a context across parallel work.
|
||||
- Evolve schemas through reviewed EF Core migrations. Preserve deployed data and test upgrades from every supported on-disk schema, including Agent-local SQLite outboxes.
|
||||
- Verify PostgreSQL translation, transaction boundaries, concurrency and deletion semantics against PostgreSQL integration tests when those behaviors matter. Do not use EF InMemory as proof of relational behavior.
|
||||
- Do not issue CRUD through ADO.NET or hand-written SQL. Raw SQL through EF is an exception for database-specific capabilities that LINQ cannot express or for measured performance needs. Keep it parameterized, add an adjacent `EF Core exception:` comment with the reason, and add a test for its behavior.
|
||||
- Migrations, test database setup, PostgreSQL maintenance/partition DDL, and locks with no portable EF equivalent are valid exceptions. Keep provider-specific code in Infrastructure or a dedicated adapter; do not spread it into use cases.
|
||||
- When adding an approved raw EF operation, add its exact source path and a short capability rationale to `scripts/ci/check-efcore-usage.py`'s `EF_CORE_EXCEPTIONS` allowlist, keep an adjacent `EF Core exception:` comment, and cover the behavior with a relational test. The scanner intentionally ignores comments when locating a call; a comment alone does not allowlist a new production source.
|
||||
- Never enable sensitive-data logging in production. Do not log connection strings or persisted secret values.
|
||||
- Central persistence uses EF Core with PostgreSQL and lives in `Heimdall.Infrastructure`.
|
||||
- Agent local durable data and camera discovery use SQLite. Keep their schema lifetimes and upgrade paths distinct from Central's PostgreSQL migrations.
|
||||
|
||||
Before editing, inspect this repository's `AGENTS.md`, the linked Gitea issue, model configuration, latest migration, and callers. After editing, run the relevant suite and CI persistence policy check, then update the issue with evidence and remaining deployment checks.
|
||||
## Schema evolution
|
||||
|
||||
## Microsoft references
|
||||
- Central's EF Core migration chain and model snapshot live under `src/Heimdall.Infrastructure/Migrations/`. Validate schema compatibility against PostgreSQL.
|
||||
- Agent outbox and camera-discovery SQLite stores have separate local schema histories; retain existing on-disk data when upgrading those schemas.
|
||||
- Moving Identity model classes without changing existing tables requires the explicit empty migration and snapshot update described in [Heimdall identity](../heimdall-identity/SKILL.md); verify PostgreSQL compatibility before delivery.
|
||||
- Startup migration retries and fail-closed health behavior are defined by [database migration startup](../database-migration-startup/SKILL.md).
|
||||
|
||||
- [EF Core efficient querying](https://learn.microsoft.com/en-us/ef/core/performance/efficient-querying)
|
||||
- [EF Core tracking and no-tracking](https://learn.microsoft.com/en-us/ef/core/querying/tracking)
|
||||
- [EF Core raw SQL queries](https://learn.microsoft.com/en-us/ef/core/querying/sql-queries)
|
||||
- [EF Core migrations](https://learn.microsoft.com/en-us/ef/core/managing-schemas/migrations/)
|
||||
- [SQLite provider for EF Core](https://learn.microsoft.com/en-us/ef/core/providers/sqlite/)
|
||||
## Repository enforcement and exceptions
|
||||
|
||||
- `scripts/ci/check-efcore-usage.py` enforces the production persistence boundary. Production reads/writes use EF Core; direct ADO.NET/provider commands are prohibited. The allowlist is limited to documented provider capabilities with no portable EF equivalent and to migration/test setup cases explicitly accepted by the repository policy.
|
||||
- For a new allowlisted production exception, document the exact source path and capability in `EF_CORE_EXCEPTIONS`, put an adjacent `EF Core exception:` rationale in source, and add the relational behavior test required by the shared skill and CI policy.
|
||||
- Keep provider-specific EF operations in Infrastructure or a dedicated adapter. Do not move PostgreSQL or SQLite implementation details into Domain or Application.
|
||||
|
||||
Use the focused [database migration startup acceptance](../database-migration-startup/SKILL.md) for startup behavior and the relevant product/Compose recipe for behavior changes. Report which provider and existing schema were exercised; a PostgreSQL result does not establish SQLite compatibility, or vice versa.
|
||||
@@ -1,97 +1,33 @@
|
||||
---
|
||||
name: gitea-ticket-workflow
|
||||
description: Create, maintain, link, and close Heimdall project tickets in Gitea as the sole work tracking system.
|
||||
description: Preserve Heimdall's Gitea labels and issue-template fields within the shared Gitea delivery lifecycle.
|
||||
---
|
||||
|
||||
# Gitea ticket workflow
|
||||
# Heimdall Gitea profile
|
||||
|
||||
For credentials used while investigating or validating tickets, follow [Infisical secrets](../infisical-secrets/SKILL.md). Never put secret values in issue descriptions or comments; use metadata-only existence checks when documenting prerequisites.
|
||||
Follow the shared [Gitea delivery workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md) for intake, deduplication, issue evidence, PR linking, release and closure. Follow shared [backlog maintenance](/home/nonobis/skills/skills/backlog-maintenance/SKILL.md), [Gitea authentication](/home/nonobis/skills/skills/gitea-auth/SKILL.md), and [work intake](/home/nonobis/skills/skills/work-intake/SKILL.md) where applicable. Gitea project issues remain Heimdall's only durable backlog; do not add a Markdown backlog.
|
||||
|
||||
When a change is delivered through a PR, include its automatic release assessment using [pull request release assessment](../pr-release-versioning/SKILL.md); do not ask the user to choose whether or which version to release.
|
||||
## Repository labels
|
||||
|
||||
Gitea issues are the source of truth for planned work, acceptance evidence, operational follow-up, and completion. Do not use a repository markdown checklist as a parallel backlog.
|
||||
Use the shared workflow's type/priority/domain and conditional validation label rules with Heimdall's existing label vocabulary. As of 2026-11-16, the repository labels are:
|
||||
|
||||
For implementation work that has independent tasks, use [parallel development with Orca](../parallel-development/SKILL.md). Keep Gitea as the work-status source: create linked issues for independently deliverable outcomes, while Orca Runs/Tasks coordinate the execution and dependencies.
|
||||
| Group | Existing labels |
|
||||
|---|---|
|
||||
| Type | `type:feature`, `type:bug`, `type:maintenance`, `type:docs`, `type:security` |
|
||||
| Priority | `priority:P0`, `priority:P1`, `priority:P2`, `priority:P3` |
|
||||
| Domain | `area:ci`, `area:release`, `area:install`, `area:agent`, `area:camera`, `area:analysis`, `area:storage`, `area:notifications`, `area:auth`, `area:ui`, `area:monitoring`, `area:docs` |
|
||||
| Validation | `validation:field`, `validation:deployment`, `validation:hardware`, `validation:backup-restore` |
|
||||
| Temporary marker | `blocked`, `needs-design`, `needs-decision` |
|
||||
|
||||
## Before implementation
|
||||
The Gitea issue templates provide the project-specific fields below. Template frontmatter sets the type label only; add the priority and domain labels when creating the issue. Keep the template fields and this label vocabulary aligned with the labels actually present in Gitea.
|
||||
|
||||
1. Read `AGENTS.md` and the focused skill(s) for the affected area.
|
||||
2. Identify the repository from `git remote get-url origin`; use the configured Gitea API/CLI credentials without printing them. Never put tokens in URLs, command output, issue text, or PR descriptions.
|
||||
3. Search open and closed issues for the topic, identifiers, PRs, and acceptance gaps. Reuse the matching issue: reopen it when required work remains, or add a clearly scoped follow-up issue when the old issue is closed and represents a completed unit.
|
||||
4. Create one issue per independently deliverable behavior or operational validation. An issue must include:
|
||||
- a concise, outcome-oriented title and relevant component/priority labels;
|
||||
- a plain-language summary explaining the user/operator impact and why the work matters;
|
||||
- a short current-state section separating implemented behavior, local evidence, CI evidence, and real deployment/hardware evidence;
|
||||
- an analysis of the actual gap: what fails or is missing, what evidence proves it, likely causes where known, and what remains uncertain;
|
||||
- scope and explicit out-of-scope items, dependencies, risks, assumptions, and the expected owner/environment for external checks;
|
||||
- numbered implementation/validation steps in dependency order, including safe test data, observable outcomes, and cleanup;
|
||||
- independently checkable acceptance criteria, with no generic placeholder criteria;
|
||||
- relevant files, prior issue/PR/run links, and the focused skill.
|
||||
5. Apply the ticket labels described in **Ticket labels** below before handing the issue to implementation. Labels are metadata for filtering and triage; they do not replace the title, scope, or acceptance criteria.
|
||||
6. For UI/product work, decide whether a mockup materially clarifies the acceptance criteria. If needed, attach a mockup or link to a Penpot/Figma artifact; state the viewport, states, responsive breakpoints, and interactions it must cover. Do not block infrastructure work on an unnecessary mockup.
|
||||
7. Confirm the created/updated issue through the API and record its canonical URL/number in the branch/PR context.
|
||||
## Issue-template fields
|
||||
|
||||
## Ticket labels
|
||||
- **Bug** (`.gitea/ISSUE_TEMPLATE/bug.md`): context, observed behavior, expected behavior, reproduction, specification reference, impact, proposed fix, and definition of done.
|
||||
- **Feature** (`.gitea/ISSUE_TEMPLATE/feature.md`): context, specification reference, expected behavior, current state, proposed decomposition, measurable acceptance criteria, likely files, and definition of done.
|
||||
- **Maintenance** (`.gitea/ISSUE_TEMPLATE/chore.md`): context, task, deliverables, verification, and definition of done.
|
||||
- **Technical debt** (`.gitea/ISSUE_TEMPLATE/tech-debt.md`): context, debt description, impact, proposed correction, specification reference, and definition of done.
|
||||
|
||||
Every issue should have, at minimum, one **type** label, one **priority** label, and one **domain** label. Add a **validation** label when the ticket is mainly about an acceptance/deployment check. Apply existing repository labels through the Gitea issue API or UI; if a required label is missing, create it once with a clear description and reuse it rather than inventing synonyms.
|
||||
For all types, include the shared workflow's current evidence, gap, scope/exclusions, dependencies, ordered validation/cleanup, acceptance owner, and links in the relevant fields. UI acceptance that depends on layout or interactions follows the shared mockup guidance; use Penpot when the issue requires a Heimdall UI design artifact.
|
||||
|
||||
Use this vocabulary consistently:
|
||||
|
||||
| Group | Labels | Use |
|
||||
|---|---|---|
|
||||
| Type | `type:feature`, `type:bug`, `type:maintenance`, `type:docs`, `type:security` | Main nature of the work; select one. |
|
||||
| Priority | `priority:P0`, `priority:P1`, `priority:P2`, `priority:P3` | `P0` blocks release/security or causes an active outage; `P1` is important for the current release or core journey; `P2` is normal planned work; `P3` is low urgency. Select one and state why in the issue if not obvious. |
|
||||
| Domain | `area:ci`, `area:release`, `area:install`, `area:agent`, `area:camera`, `area:analysis`, `area:storage`, `area:notifications`, `area:auth`, `area:ui`, `area:monitoring`, `area:docs` | Main owning subsystem; use multiple only when work genuinely crosses boundaries. |
|
||||
| Validation | `validation:field`, `validation:deployment`, `validation:hardware`, `validation:backup-restore` | Add when closure depends on the corresponding real environment or external evidence. Do not apply to ordinary code-only acceptance. |
|
||||
| State marker | `blocked`, `needs-design`, `needs-decision` | Add only while the named condition is true; remove it when resolved. Explain the blocker/decision in the issue body. |
|
||||
|
||||
Before creating a label, search all repository labels and use an existing equivalent. Keep labels lowercase except the conventional priority spelling above. Do not create status labels such as `open`, `closed`, `in progress`, or `done`; Gitea issue state and assignee/project workflow own those concepts. Do not use labels to encode dynamic details such as a PR number, release version, user, camera, or site.
|
||||
|
||||
On backlog review, correct missing or stale labels when the scope changes. When splitting an issue, label each child for its own type, priority, domain, and validation requirement; do not blindly copy every parent label. A label change alone does not satisfy acceptance criteria or close the ticket.
|
||||
|
||||
## During implementation
|
||||
|
||||
- Keep the issue current with material discoveries, decisions, blockers, and validation evidence. Do not duplicate long-lived status in a local markdown backlog.
|
||||
- Reference the issue in branch and commit context where useful. Every PR body must link the issue with `Closes #N` when merge should close it, or `Refs #N` when the issue tracks work that remains after this PR.
|
||||
- A PR touching a subset of a larger ticket must say exactly which acceptance criteria it satisfies and which remain open. Split follow-up tickets when the remaining work is independently actionable.
|
||||
- Keep project-specific implementation and acceptance procedures in `skills/`; link the relevant skill from the issue and PR.
|
||||
- For external validation, create/update a focused ticket with owner, prerequisites, safe test data, procedure, expected evidence, and cleanup. Never mark an external integration validated based on mocks or configuration presence.
|
||||
|
||||
## Mockups and attachments
|
||||
|
||||
- Attach a mockup when layout, hierarchy, responsive behavior, or interaction flow is a substantial part of acceptance. Prefer an existing project design artifact; otherwise create a focused Penpot/Figma frame and attach/link it from the issue.
|
||||
- The issue describes what the mockup demonstrates and its status (proposed/approved/superseded). Keep source design links and exported images free of secrets or real customer data.
|
||||
- API, persistence, CI, and maintenance tickets generally need no mockup; state that only when ambiguity might otherwise cause delay.
|
||||
|
||||
## Human-readable issue layout
|
||||
|
||||
Use this order and keep each section focused:
|
||||
|
||||
1. **Résumé** — one or two sentences describing the intended result.
|
||||
2. **Pourquoi** — user/operator impact and the reason for prioritizing the work.
|
||||
3. **État actuel et preuves** — what is already implemented and exactly what tests/runs prove; distinguish synthetic/local/CI/production evidence.
|
||||
4. **Écart à résoudre** — the remaining failure or uncertainty in concrete terms; avoid starting with a fragment copied from a longer checklist sentence.
|
||||
5. **Analyse** — known cause, constraints, failure modes, security/data impact, assumptions, and unanswered decisions.
|
||||
6. **Plan de travail** — ordered steps with dependencies and observable outputs. Split independent work into linked child issues instead of making one ticket cover unrelated deliverables.
|
||||
7. **Critères d’acceptation** — concise checkboxes with measurable outcomes and evidence required.
|
||||
8. **Hors périmètre / dépendances** — identify related capabilities that must not be mistaken as delivered, required owners/access/hardware, and blockers.
|
||||
9. **Maquette** — attach/link only where UI design materially affects acceptance; otherwise say `Aucune maquette requise : ...` with a short reason.
|
||||
10. **Liens** — PRs, runs, skills, related issues and design artifacts.
|
||||
|
||||
Render long historical logs as a clearly separated `<details><summary>Historique détaillé</summary>` appendix. Lead with the latest state and the exact open work; do not make readers infer the task from a 1,000-word pasted paragraph. Use short paragraphs, bullets, and headings; expand acronyms on first use when the audience may not know them.
|
||||
|
||||
## Pull requests and closure
|
||||
|
||||
- Before opening/updating a PR, verify the issue number, link, acceptance criteria, focused skill, and test/acceptance evidence are present.
|
||||
- Keep `.gitea/PULL_REQUEST_TEMPLATE.md` aligned with this workflow: request the linked Gitea issue and observed CI/acceptance evidence; never direct contributors to update a markdown backlog.
|
||||
- Use `Closes #N` only when the PR completes every criterion owned by that issue. For partial work use `Refs #N` and leave the issue open with unchecked criteria and evidence updated.
|
||||
- Gitea closes a `Closes #N` issue when the PR merges. After merge, verify the issue state changed; if not, close it manually only after checking all criteria and posting the merge/CI/acceptance evidence.
|
||||
- Do not close tickets merely because code was merged when required acceptance (including the disposable Compose recipe, CI gate, external deployment, camera, storage, or release run) remains outstanding. Create a separate validation issue if code delivery and external validation have different owners or timelines.
|
||||
- On completion, leave a concise final issue comment linking merged PR/commit, successful checks and acceptance record, plus explicit limits. Keep the ticket searchable; don't erase the completion trace.
|
||||
|
||||
## Backlog maintenance
|
||||
|
||||
- Review open issues before planning work; deduplicate, label, prioritize, split oversized work, and refresh stale acceptance criteria.
|
||||
- For discovered follow-up work during a PR, create/link a ticket before treating it as deferred. Avoid checklist fragments in commits, skills, or docs that become a second backlog.
|
||||
- Repository skills contain durable workflows, not per-task status. Update the relevant skill in the same PR when implementation or acceptance procedure changes.
|
||||
- When migrating a legacy backlog, carry each actionable incomplete item to an open issue; carry completed entries to closed issue history or a closed migration/traceability issue with original PR/run references. Verify issue counts, titles, states, and links before deleting the file.
|
||||
The [.gitea pull request template](../../.gitea/PULL_REQUEST_TEMPLATE.md) must request issue linkage, observed evidence and limits, and the Heimdall release assessment. Use `Closes #N` only when every issue criterion is complete; otherwise use `Refs #N`.
|
||||
@@ -1,20 +1,32 @@
|
||||
---
|
||||
name: heimdall-dotnet
|
||||
description: Implement or review Heimdall .NET 10 application, EF Core persistence, and agent changes while preserving its clean architecture and audit backlog.
|
||||
description: Apply Heimdall's actual .NET project boundaries, provider profile, and local acceptance expectations.
|
||||
---
|
||||
|
||||
# Heimdall .NET work
|
||||
# Heimdall .NET profile
|
||||
|
||||
Read `AGENTS.md`, the relevant Gitea issue, and [the Gitea ticket workflow](../gitea-ticket-workflow/SKILL.md) first. Trace a feature through `Domain` → `Application` → `Infrastructure` → `Web` or `Agent` before editing; update only the layers that own the behavior.
|
||||
Use the shared [dotnet-engineering skill](/home/nonobis/skills/skills/dotnet-engineering/SKILL.md) for general C#, architecture, EF Core, validation, and testing practices, and the shared [Gitea delivery workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md) for issue-to-delivery lifecycle. This file records Heimdall's concrete topology and compatibility constraints only.
|
||||
|
||||
For multi-layer work, use [parallel development with Orca](../parallel-development/SKILL.md) to dispatch non-overlapping layer tasks early, sequence shared contract decisions, and integrate the result before running combined verification.
|
||||
## Actual project boundaries
|
||||
|
||||
For persistence changes, inspect the entity configuration and latest migration, then verify PostgreSQL translation and transactions with focused integration tests. Keep migrations compatible with existing rows, record the data backfill or rollback requirement, and avoid client-side filtering on access-controlled queries.
|
||||
- `Heimdall.Domain` and `Heimdall.Domain.Primitives` contain domain policy and primitives. Domain does not depend on infrastructure or ASP.NET Core Identity.
|
||||
- `Heimdall.Application` owns use cases, application contracts, and ports such as `IIdentityAccountService` and `IApplicationDbContext`.
|
||||
- `Heimdall.Infrastructure` implements persistence, ASP.NET Core Identity adapters, and external-service adapters.
|
||||
- `Heimdall.Web` composes the HTTP/UI host; `Heimdall.Agent` owns camera/runtime behavior and its local persistence.
|
||||
- `Heimdall.Contracts` contains shared transport contracts; `Heimdall.Mdns` is a separate discovery component. Do not collapse these projects into a generic five-project diagram.
|
||||
|
||||
For detailed database access rules and the allowlist for unavoidable provider-specific SQL, follow [the EF Core persistence skill](../ef-core-persistence/SKILL.md).
|
||||
Before changing a cross-layer behavior, trace the actual caller and implementation through the projects above. Keep ASP.NET Identity types in Infrastructure and user references in domain records keyed by `Guid UserId`, with EF relationships configured by Infrastructure.
|
||||
|
||||
When updating the domain model summary in `docs/specs.md`, verify entity and property names against `Domain/Entities` and `Domain/Enums`. The site registration token is persisted only as `RegistrationTokenHash` plus its expiry; never describe a stored plaintext token. Distinguish the `CameraEvent` type from conceptual event wording, and `Person` from its related `KnownFace` embeddings.
|
||||
## Persistence and compatibility
|
||||
|
||||
For application commands, validate at the boundary, enforce site/camera scope in the use case, and make external side effects retry-safe. For agent work, account for disconnected operation, bounded queues, cancellation, and resource disposal.
|
||||
- Central production persistence is PostgreSQL through EF Core in Infrastructure. Agent-local durable state and the camera-discovery database use SQLite. Preserve both provider behaviors when changing shared models or persistence contracts.
|
||||
- Add reviewed EF Core migrations for Central schema changes; never rewrite an applied migration. Preserve deployed data and validate upgrade behavior against the supported PostgreSQL schema. Identity model moves that retain the schema require the project's explicit empty migration and updated model snapshot.
|
||||
- Agent SQLite schemas have their own compatibility and migration path. Preserve existing local outbox data and validate upgrade behavior from supported on-disk versions.
|
||||
- Keep migration/checksum and release asset integrity procedures in their focused skills: [database migration startup](../database-migration-startup/SKILL.md), [installer checksum acceptance](../installer-checksum-acceptance/SKILL.md), and [release automation](../release-automation/SKILL.md).
|
||||
- Authorization for site/camera resources is enforced at API and application boundaries. Validate scope against the actual resource-access services; UI visibility is not authorization.
|
||||
|
||||
After the change, run the smallest meaningful test suite plus the build when public contracts change. Update the issue with what passed and what still requires a deployed runner, camera, network, or object store. Link it from the PR and close it only when all acceptance criteria are verified.
|
||||
## Product documentation
|
||||
|
||||
When updating `docs/specs.md`, check entity/property names against `src/Heimdall.Domain/Entities` and `src/Heimdall.Domain/Enums`. A site registration token is stored only as `RegistrationTokenHash` plus expiry. Distinguish the `CameraEvent` type from conceptual event wording, and `Person` from its related `KnownFace` embeddings.
|
||||
|
||||
For identity behavior and its product acceptance paths, follow [Heimdall identity](../heimdall-identity/SKILL.md). For any behavior/deployment change, use the exact [disposable Compose recipe](../compose-disposable-recipe/SKILL.md) and any additional focused acceptance skill. Record local, CI, Compose, and real deployment/hardware evidence separately in the Gitea issue.
|
||||
@@ -5,7 +5,7 @@ description: Implement and review Heimdall account, password, session, email con
|
||||
|
||||
# Heimdall Identity workflow
|
||||
|
||||
Read `AGENTS.md`, the focused Gitea issue and [the Gitea ticket workflow](../gitea-ticket-workflow/SKILL.md), and the Identity wiring in `Infrastructure/DependencyInjection.cs` and `Web/Program.cs` before changing authentication.
|
||||
Apply the shared [secure identity lifecycle skill](/home/nonobis/skills/skills/secure-identity-lifecycle/SKILL.md), [dotnet engineering skill](/home/nonobis/skills/skills/dotnet-engineering/SKILL.md), and [Gitea delivery workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md) for common identity security, .NET, and delivery rules. This skill records Heimdall's actual Identity model, composition, and product acceptance. Inspect the Identity wiring in `src/Heimdall.Infrastructure/DependencyInjection.cs` and `src/Heimdall.Web/Program.cs` before changing authentication.
|
||||
|
||||
When maintaining `docs/auth-roles.md` or identity summaries in `docs/specs.md`, verify their role names and default permission summaries against `Infrastructure/Security/AppPermissions.cs` and `Domain/Enums/UserRole.cs`. Heimdall has `Admin`, `Supervisor`, and `Viewer`; site/camera access is separately enforced through resource-access services, not represented by a generic `User` role. Keep the authentication summary in `docs/README.md` aligned with that guide and model.
|
||||
|
||||
@@ -13,7 +13,6 @@ Verify identity model examples against `Infrastructure/Identity/IdentityAppUser.
|
||||
|
||||
Before documenting UI/API authorization examples in `docs/auth-roles.md`, verify referenced pages, methods, policies, and routes against `Components/Routes.razor`, the page components, controllers, and `ResourceAccess`. Do not preserve generic authorization snippets that reference services or callbacks absent from the application; distinguish page authentication from API resource filtering.
|
||||
|
||||
- Identity owns password hashing, normalized account lookup, role membership, lockout, authenticator tokens, and email/password tokens. Do not duplicate password or token cryptography in Heimdall.
|
||||
- Keep ASP.NET Core Identity packages and types inside Infrastructure. Domain must not reference Identity; Application uses `IIdentityAccountService` and `IdentityAccount` only. Put Identity EF entities (`IdentityAppUser`, `IdentityAppRole`) and `UserManager`/`RoleManager` adapters in Infrastructure. Keep user-related Domain relationships keyed by `Guid UserId`; configure their foreign keys to the Infrastructure user entity.
|
||||
- When creating an Identity user, copy the generated `SecurityStamp` back into the application account before building the first session/JWT. Cover bootstrap and regular user creation with a relational session validation test.
|
||||
- Moving Identity model classes without changing tables should produce an explicit empty EF migration and a snapshot containing the Infrastructure entity types. Verify migration compatibility against PostgreSQL before release.
|
||||
|
||||
@@ -1,30 +1,10 @@
|
||||
---
|
||||
name: infisical-secrets
|
||||
description: Retrieve and maintain Heimdall project credentials in the connected Infisical instance while keeping secret values out of repository files, transcripts, and logs.
|
||||
description: Route Heimdall secret access through shared Infisical guidance without retaining a credential inventory in the repository.
|
||||
---
|
||||
|
||||
# Heimdall secrets in Infisical
|
||||
# Heimdall Infisical profile
|
||||
|
||||
Use this workflow whenever a Heimdall skill needs a real credential, and link this skill from any skill that adds or changes a credential workflow. The connected MCP server is the supported interface to Infisical.
|
||||
Follow the shared [Infisical CLI skill](/home/nonobis/skills/skills/infisical-cli/SKILL.md) for selecting project/environment/path, retrieving only named secrets, safe process handoff, and metadata-only verification. This file contains no credential values or inventory of secret names.
|
||||
|
||||
## Vault and scope
|
||||
|
||||
- Select project **Orca** (`orca-cc2-m`) explicitly; its project ID is `96fb3628-2ee3-45b5-b6a8-66a0212a5b46`. Use `dev`, `staging`, or `prod` only when the task names that environment. Never silently fall back from one environment to another.
|
||||
- Use the MCP tools `list-projects`, `list-secrets`, `get-secret`, and `create-secret`. They are allowlisted in the local MCP configuration. Never use `create-secret` as an implicit overwrite operation: check the key first and explain/ask before replacing an existing value.
|
||||
- `list-secrets` returns secret values as well as names. Treat its full response as sensitive even when only checking availability. Do not print, quote, summarize, or copy values into tool output, chat, shell history, command arguments, files in the repository, issue/PR text, or logs.
|
||||
- Prefer retrieving only the needed key with `get-secret`. Pass the value directly to the one process that needs it using a protected stdin/temporary file outside the repository with mode `0600`, then remove that exact file. Never interpolate it into a command string or a checked-in Compose file.
|
||||
- Use metadata-only checks to report which keys exist. Never test access by dumping a value. If a diagnostic accidentally emits a value, stop, do not repeat it, and tell the user that the credential should be rotated. Do not rotate it unless the user explicitly asks.
|
||||
|
||||
## Using secrets in skill workflows
|
||||
|
||||
- Distinguish real deployment credentials from disposable acceptance credentials. Compose acceptance recipes must generate unique synthetic credentials and must not fetch production or staging values from Infisical.
|
||||
- For local manual integration work, fetch only the named development key needed by that skill. For a deployment task, use the explicitly requested environment and target. Never place fetched values in `.env.example`, tracked configuration, source, fixtures, or documentation.
|
||||
- CI secrets remain in the CI secret store unless a task explicitly migrates the CI workflow. Infisical presence alone does not configure Gitea Actions or prove a runner can access the vault.
|
||||
- When a workflow needs a credential not present in the selected environment, report its exact key name and purpose; do not substitute a similarly named credential or a different environment.
|
||||
- When asked to persist a newly provided credential, use `create-secret` in the selected project/environment/path. First verify the key is absent, then create it, then verify presence by listing metadata only. Do not echo the supplied value.
|
||||
|
||||
## Current inventory verified 2026-11-10
|
||||
|
||||
The `dev` root currently contains `GITEA_ORCA_TOKEN`, `HEIMDALL_LOGIN`, `HEIMDALL_PASSWORD`, `HEIMDALL_PRIVATE_KEY_B64`, `HEIMDALL_URL`, `PENPOT_LOGIN`, `PENPOT_PASSWORD`, and `PENPOT_URL`. The `staging` and `prod` roots were empty at verification time. Treat this inventory as a dated snapshot; check metadata again before relying on it.
|
||||
|
||||
The development inventory does not include Heimdall deployment/database/JWT, RustFS, Agent site-token, Coturn, Redis, Sentry, Docker Hub, or release-signing credentials. Some are generated for disposable acceptance, some are optional, and CI publication credentials belong in Gitea Actions. Do not add real values simply to make the inventory look complete; report only keys required by the active task.
|
||||
Heimdall's disposable Compose acceptance uses generated synthetic credentials; do not retrieve deployment credentials for those recipes. CI publication credentials remain in the configured Gitea Actions secret store. Infisical configuration or vault changes are outside the scope of this repository skill.
|
||||
@@ -1,17 +1,10 @@
|
||||
---
|
||||
name: mcp-global-configuration
|
||||
description: Keep Heimdall developer MCP integrations available across projects without storing machine credentials in the repository.
|
||||
description: Keep Heimdall developer MCP integrations in the user-level agent configuration.
|
||||
---
|
||||
|
||||
# Heimdall developer MCP configuration
|
||||
# Heimdall MCP profile
|
||||
|
||||
MCP integrations used while maintaining Heimdall belong in the developer's global Codex configuration, not in a repository `.mcp.json`. This keeps each project checkout free of personal service tokens and makes the integrations available in other projects.
|
||||
Follow the shared [MCP configuration skill](/home/nonobis/skills/skills/mcp-configuration/SKILL.md) for provider formats, configuration scope, validation, and credential handling.
|
||||
|
||||
## Configuration workflow
|
||||
|
||||
1. Before changing MCP setup, read this skill and the linked Gitea issue.
|
||||
2. Configure the intended servers in `~/.codex/config.toml`. Keep authentication values in user-level configuration or environment variables; never copy them into tracked files, examples, logs, or acceptance output.
|
||||
3. Remove any repository `.mcp.json` that duplicates global server configuration and contains credentials.
|
||||
4. Validate that the global TOML parses and run `codex mcp list`. Check that each expected server appears once and is enabled.
|
||||
5. For a server needed by the task, make a harmless read-only request (for example, list accessible GlitchTip organizations) to confirm authentication. Do not claim remote access from config presence alone.
|
||||
6. Update the corresponding Gitea issue with the local verification and any limits. Do not add an application Compose acceptance recipe for a developer-only MCP configuration change.
|
||||
Heimdall developer MCP integrations belong in the user's global Codex configuration, not in a repository `.mcp.json`. This repository skill documents that scope only; it does not store server credentials or authorize changes to local/global MCP configuration during a repository documentation task.
|
||||
@@ -1,45 +1,14 @@
|
||||
---
|
||||
name: parallel-development
|
||||
description: Plan and coordinate parallel Heimdall implementation work with Orca workers while preserving architecture, issue tracking, and acceptance evidence.
|
||||
description: Apply Orca's shared coordination workflow with Heimdall's project boundaries and acceptance gates.
|
||||
---
|
||||
|
||||
# Parallel development with Orca
|
||||
# Heimdall parallel work profile
|
||||
|
||||
Use this workflow for a Heimdall change that can be split into independent investigations or implementation tasks. Read `AGENTS.md`, the focused Gitea issue, the relevant domain skills, and the installed Orca `orchestration` guide first. The Orca CLI guide is also required when creating or managing worktrees. The version-matched instructions come from `orca-ide skills get orchestration` and `orca-ide skills get orca-cli`; follow the resolved executable specified by those guides.
|
||||
Use the shared [Orca parallel work skill](/home/nonobis/skills/skills/orca-parallel-work/SKILL.md) for Runs, Tasks, dependencies, worker assignment, and integration ownership. Use the shared [Gitea delivery workflow](/home/nonobis/skills/skills/gitea-delivery-workflow/SKILL.md) for durable issue tracking. This file supplies only Heimdall-specific boundaries.
|
||||
|
||||
## Find parallel work early
|
||||
Map work to the real projects: `Heimdall.Domain` and `Heimdall.Domain.Primitives`; `Heimdall.Application`; `Heimdall.Infrastructure`; `Heimdall.Web`; `Heimdall.Agent`; and, when applicable, `Heimdall.Contracts` or `Heimdall.Mdns`. Keep Domain independent, use cases/ports in Application, adapters and EF Core in Infrastructure, HTTP/UI composition in Web, and camera/runtime behavior in Agent.
|
||||
|
||||
1. Map the requested outcome to the Heimdall boundaries: `Domain`, `Application`, `Infrastructure`, `Web`, and `Agent`. Also identify tests, migrations, documentation, and disposable acceptance work.
|
||||
2. List concrete work packages with a single owner, bounded files or components, required inputs, and an observable deliverable. Mark each dependency explicitly.
|
||||
3. Start every ready, independent investigation or implementation promptly. Keep sequential work (shared contract decisions, migration ordering, integration, final acceptance, ticket update, and PR) with the coordinator unless it is itself safely isolated.
|
||||
4. Split independent, user-visible deliverables into linked Gitea issues before dispatch, following `gitea-ticket-workflow`. Keep one issue for coordinated subtasks that do not ship independently.
|
||||
When persistence work is split, keep Central PostgreSQL model/migration ownership separate from Agent SQLite schema work. See [Heimdall persistence](../ef-core-persistence/SKILL.md) for provider boundaries.
|
||||
|
||||
Choose the Orca coordination shape that matches the dependency graph:
|
||||
|
||||
- For a small set of independent tasks with clear, separate outputs, use the version-matched `worker-start --spec` workflow. Give workers precise scope and tell them to report evidence and blockers.
|
||||
- For dependent tasks or several waves of work, create an Orca Run and Tasks with explicit dependencies, then start all Tasks reported ready. Recheck readiness after each worker report and start newly unblocked work without waiting for unrelated branches.
|
||||
- Use a shared current worktree only when workers cannot conflict in files. If edits overlap or cannot be partitioned confidently, assign separate Orca worktrees and integrate their changes deliberately. Do not start concurrent workers that edit the same files.
|
||||
- Do not parallelize a decision that needs one owner, duplicate the same task across workers, or turn a straightforward isolated change into coordination overhead.
|
||||
|
||||
## Heimdall task contracts
|
||||
|
||||
Every worker brief must include the user outcome, issue number, exact component/file ownership, architectural constraints, dependencies, acceptance evidence, and what to return. Ask for a concise report with files changed, commands/evidence, remaining risks, and any files or decisions needed from the coordinator. Do not provide credentials, production data, RTSP URLs, raw tokens, or real customer information in a worker prompt.
|
||||
|
||||
Workers must preserve these boundaries:
|
||||
|
||||
- Domain stays independent of infrastructure; use cases and interfaces belong in Application; adapters and EF Core persistence belong in Infrastructure; HTTP/UI composition belongs in Web; camera/runtime behavior belongs in Agent.
|
||||
- EF Core and PostgreSQL requirements remain in force. Do not share a `DbContext` across concurrent work. Schema changes include reviewed migrations and relational verification.
|
||||
- Each worker edits only its assigned scope. When shared contracts must change, have one owner define the contract first, then unblock dependent tasks in the Orca DAG.
|
||||
- Each independent implementation still follows its focused skill and records results against the Gitea issue. Delegation does not waive authorization, security, CI runner, secret, or review rules.
|
||||
|
||||
## Integrate and validate once
|
||||
|
||||
1. Coordinate through Orca messages and worker reports, not by polling or steering worker terminals. Follow the version-matched guide's wake, recovery, and completion rules; do not treat silence as proof of completion.
|
||||
2. Review each returned diff against its assigned scope and the issue criteria. Resolve overlapping changes in the coordinator's integration step; do not accept a report as proof without inspecting the relevant change/evidence.
|
||||
3. Run shared builds, tests, persistence checks, and disposable Compose acceptance after integrating dependent changes. Avoid making every worker rerun the same full suite; ask each worker for focused evidence, then run the smallest combined checks once at integration.
|
||||
4. Keep required project-specific acceptance intact. Behavior and deployment changes still use `compose-disposable-recipe`; account bootstrap and Central update changes use their additional focused recipes. Never claim external runner, registry, camera, or storage evidence from a worker's local mock.
|
||||
5. Update the issue with completed criteria and actual evidence, create/update the PR with `Closes #N` only when every criterion is complete (otherwise `Refs #N`), and record unresolved external validation separately.
|
||||
|
||||
## Completion record
|
||||
|
||||
The issue or PR should make the coordination auditable without duplicating a long-lived backlog: note the Orca work packages at a high level, which were integrated, the combined checks actually run, and any tasks or acceptance gates still open. Close or settle worker Tasks only when their evidence is received; a reported failure remains open work.
|
||||
Every behavior or deployment change still uses the exact [disposable Compose recipe](../compose-disposable-recipe/SKILL.md). Add [first-admin bootstrap](../first-admin-bootstrap/SKILL.md), [Central auto-update](../central-auto-updates/SKILL.md), or other focused acceptance workflows where the changed behavior requires them.
|
||||
@@ -1,32 +1,14 @@
|
||||
---
|
||||
name: pr-release-versioning
|
||||
description: Assess whether a Heimdall pull request needs a published release and select its SemVer increment from the change impact without asking the user.
|
||||
description: Apply Heimdall's version source and release impact policy when preparing a pull request.
|
||||
---
|
||||
|
||||
# Pull request release assessment
|
||||
# Heimdall release profile
|
||||
|
||||
Apply this assessment while preparing every Heimdall PR. Do not ask the user whether to release or which version to use. Record the decision, rationale, and proposed version in the PR description; update it if the diff changes.
|
||||
Use the shared [release assessment skill](/home/nonobis/skills/skills/release-assessment/SKILL.md) for the assessment expected in every PR. This profile defines Heimdall's SemVer source and impact mapping.
|
||||
|
||||
## Decide whether a release is needed
|
||||
|
||||
- **No release** for documentation, skills, tests, CI-only changes, refactors with no externally observable change, or internal tooling changes. State `Release: no` and keep the current version unchanged.
|
||||
- **Release required** when the PR changes behavior shipped to Heimdall users or operators, published images/installers/Agent assets, compatibility contracts, or security fixes that users need to receive.
|
||||
- Do not create a release tag for a PR. A release tag points to a commit on `main`; assess the merged change after required checks pass and then follow the tag workflow in `release-automation`.
|
||||
|
||||
## Select the version automatically
|
||||
|
||||
Use the latest stable SemVer tag reachable from the integration branch (`MAJOR.MINOR.PATCH`); ignore prerelease tags when selecting the stable base. For multiple merged, unreleased changes, assess all changes since that tag together and use the highest required increment.
|
||||
|
||||
- **MAJOR** for a breaking API, configuration, data, or install/upgrade compatibility change.
|
||||
- **MINOR** for a backward-compatible user-facing capability or operator feature.
|
||||
- **PATCH** for backward-compatible bug fixes, security fixes, performance fixes, and shipped compatibility corrections.
|
||||
- No release-worthy changes means no tag and no version increment.
|
||||
|
||||
Increment only the selected component and reset lower components to zero. For example, from `1.4.7`: breaking becomes `2.0.0`, a compatible feature becomes `1.5.0`, and a fix becomes `1.4.8`. If no stable tag exists, use `1.0.0` as the base only when the repository's first-release policy confirms that baseline; otherwise report the missing baseline instead of inventing one.
|
||||
|
||||
## PR and post-merge steps
|
||||
|
||||
- Put a short `Release assessment` section in every PR: `no release (reason)` or `release required; proposed version X.Y.Z (reason)`.
|
||||
- For no-release PRs, do not create or push a tag. Keep the version unchanged.
|
||||
- For a release-required PR, determine the exact next version from the current `main` tags after merge, verify it is unused, and create an annotated tag on the merged `main` commit only after required CI succeeds. If another merge changes the base before tagging, recalculate from the latest stable tag and all unreleased changes.
|
||||
- Never overwrite or move an existing tag. If the change is prerelease-only or an emergency exception, explain the project-specific suffix/tag choice in the PR without asking the user to choose it.
|
||||
- Documentation, skills, tests, CI-only changes, and internal refactors without externally observable impact have `Release: no`; do not change the version or create a tag for them.
|
||||
- A breaking user-facing API, configuration, data, or install/upgrade contract requires a major increment. A backward-compatible user/operator capability requires a minor increment. A backward-compatible shipped fix or security fix requires a patch increment.
|
||||
- Use the latest stable SemVer tag reachable from `main` as the base and account for all unreleased changes since that tag. Ignore prerelease tags when selecting the stable base. If no stable tag exists, use `1.0.0` only if the repository's first-release policy confirms it; otherwise report the missing baseline.
|
||||
- The PR body records either `Release: no — <reason>` or `Release: required — proposed <version> (<reason>)`. Recalculate if the PR diff or `main` changes.
|
||||
- Never tag before the merged commit is on `main` and required checks succeed. Follow [release automation](../release-automation/SKILL.md) for the signed Heimdall assets and image digest workflow. Never move or overwrite an existing release tag.
|
||||
@@ -5,7 +5,7 @@ description: Build and validate changed Heimdall images on pushes, then publish
|
||||
|
||||
# Heimdall build and release workflow
|
||||
|
||||
For every PR, follow [pull request release assessment](../pr-release-versioning/SKILL.md). Determine and record whether a release is needed and the proposed SemVer from the change impact; do not ask the user to decide. Documentation and skills-only changes do not create a release or change the version. Only tag a release after the merged commit is on `main` and required checks pass.
|
||||
Apply the shared [DevOps engineering skill](/home/nonobis/skills/skills/devops-engineering/SKILL.md) for CI, runner, publication-secret, and deployment security. For PR impact assessment, follow [shared release assessment](/home/nonobis/skills/skills/release-assessment/SKILL.md) together with the [Heimdall SemVer profile](../pr-release-versioning/SKILL.md). Documentation and skills-only changes do not create a release or change the version. Only tag a release after the merged commit is on `main` and required checks pass.
|
||||
|
||||
For any local release investigation that needs credentials, follow [Infisical secrets](../infisical-secrets/SKILL.md). Keep publication credentials in Gitea Actions as specified below; do not assume that a key in Infisical is available to CI.
|
||||
|
||||
|
||||
Reference in new issue
Block a user