Files
Heimdall/skills/parallel-development/SKILL.md
T
arnaud.dartois 7869800ea5 docs: guider la parallélisation avec Orca (#276)
## Résumé
Ajoute `skills/parallel-development/SKILL.md` avec une procédure de découpage, d’orchestration Orca et d’intégration propre à Heimdall. Relie les skills transverses et `AGENTS.md` à cette procédure.

Closes #275

## Validation
- `git diff --check` : réussi.
- Vérification des liens Markdown locaux dans les 7 fichiers modifiés : réussie.
- Pas de build ou recette Compose : changement de documentation uniquement, sans changement de comportement ou de déploiement.

Reviewed-on: #276
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-07 09:32:21 +01:00

5.3 KiB

name, description
name description
parallel-development Plan and coordinate parallel Heimdall implementation work with Orca workers while preserving architecture, issue tracking, and acceptance evidence.

Parallel development with Orca

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.

Find parallel work early

  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.

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.