Files
Heimdall/skills/gitea-ticket-workflow/SKILL.md
T
arnaud.dartois bc7ddccfe3
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 2s
docs: document Infisical secret workflows (#322)
Closes #321
Closes #323

## Résumé
- Ajoute un skill projet pour utiliser le MCP Infisical sans divulguer les valeurs et relie les workflows concernés.
- Définit une évaluation automatique des releases et du SemVer, sans demander à l’utilisateur si une release est souhaitée ou quel numéro choisir.
- Les docs/skills seules ne déclenchent pas de release.

## Évaluation de release
Aucune release pour cette PR : elle ne contient que de la documentation et des skills. La version stable reste `1.0.0`; aucun tag ne sera créé.

## Validation
- `git diff origin/main...HEAD --check` : réussi.
- Inventaire Infisical limité aux noms de clés; aucune valeur secrète dans le diff.
- Les checks Gitea de la première révision passaient; les nouveaux checks sont en cours après la mise à jour.
- Tests applicatifs non exécutés : changement documentaire uniquement.

Reviewed-on: #322
Co-authored-by: Arnaud Dartois <admin@tordais.cc>
2026-11-10 16:29:15 +01:00

11 KiB
Raw Blame History

name, description
name description
gitea-ticket-workflow Create, maintain, link, and close Heimdall project tickets in Gitea as the sole work tracking system.

Gitea ticket workflow

For credentials used while investigating or validating tickets, follow Infisical secrets. Never put secret values in issue descriptions or comments; use metadata-only existence checks when documenting prerequisites.

When a change is delivered through a PR, include its automatic release assessment using pull request release assessment; do not ask the user to choose whether or which version to release.

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.

For implementation work that has independent tasks, use parallel development with Orca. Keep Gitea as the work-status source: create linked issues for independently deliverable outcomes, while Orca Runs/Tasks coordinate the execution and dependencies.

Before implementation

  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.

Ticket labels

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.

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.