Development workflow
Status: APPROVED HUMAN DECISION by the project owner on 2026-10-05 (record). This page is the reference for people and AI agents. Abbreviations are explained in the glossary.
Overview
GitLab drives the project. Spec Kit specifies an implementation. They are not two competing project management tools.
| Level | Where | Content |
|---|---|---|
| Release / Milestone | GitLab | What is delivered together |
| Ticket | GitLab Issue, Board | What is being built, why, acceptance criteria, state |
| Specification | specs/<spec>/ of the responsible repository | spec.md, plan.md, tasks.md |
| Detailed technical progress | specs/<spec>/tasks.md | [ ] / [x] checkboxes per task |
| Code | Commits, Merge Request | Implementation, tests |
There is no other progress system: no sprint in Spec Kit, no copy of the Spec Kit tasks in GitLab, no other project management tool.
Spec Kit per repository
Spec Kit is distributed: the specification of an implementation lives in
the repository that carries it out. The cross-cutting documentation lives in
hoggar-docs. There is no large central specification covering all of Hoggar,
and a cross-cutting specification does not automatically go into
hoggar-infra.
| Repository | Spec Kit |
|---|---|
hoggar-infra | Yes |
hoggar-web | Yes (initialised; no active spec for now) |
hoggar-ai | Not for now — keeps its ai-engineering-change workflow |
hoggar-docs | Not for now — central repository of the cross-cutting documentation |
hoggar-api, hoggar-app, hoggar-mobile (future, not created) | Yes, as soon as they are created, for the developments that require it |
When to use Spec Kit
A GitLab Issue can have no, one or several specs.
- Small fix: Issue → implementation → Merge Request, without a spec. The checks (gates), the task journal and the human validations still apply; in case of doubt about the size, ask.
- Complex change: one spec per repository concerned, for example:
GitLab Issue #142
├── hoggar-api → SPEC-005 — 005-feature-gpx-import
└── hoggar-web → SPEC-003 — 003-feature-gpx-import
Spec Kit steps
/speckit.specify → /speckit.clarify (if necessary) → /speckit.plan
→ /speckit.tasks → /speckit.analyze → /speckit.implement
The commands keep their official names (Claude Code: /speckit-specify;
Codex: $speckit-specify). speckit-taskstoissues is never used.
Main artefacts: spec.md, plan.md, tasks.md. The artefacts
research.md, data-model.md, contracts/, quickstart.md and checklists/
are created only when they are useful, never to fill a structure.
Naming and identifiers of specs
Folder: specs/NNN-type-description/.
| Type | Use |
|---|---|
feature | Feature |
bug | Defect fix |
security | Security |
infra | Infrastructure |
refactor | Restructuring without functional change |
migration | Migration (data, platform, version) |
foundation | Technical foundation |
NNN: sequential number specific to each repository; it is never reused.- Short identifier:
SPEC-NNN(e.g.SPEC-005). Between repositories, specify it:hoggar-api/SPEC-005. descriptionin English (e.g.005-feature-gpx-import); the content of the specs is in French.- GitLab Issue numbers and spec numbers are independent: never synchronise them artificially.
Historical specs kept as is (renaming not safe):
| Repository | Path | Type | Status |
|---|---|---|---|
hoggar-infra | specs/001-sprint0-foundation/ | foundation | HISTORICAL / SUPERSEDED (PD-017); number 001 never reused (PD-018) |
hoggar-infra | specs/002-ai-agent-isolation/ | security | Active draft; same name as its published branch |
Issue ↔ spec link (bidirectional)
- Each spec states in its header the corresponding GitLab Issue when it
exists:
**Issue GitLab** : Hoggar/hoggar-api#142. - The Issue lists its specs in its Spec Kit section (template
.gitlab/issue_templates/feature.md). - The Issue contains the functional acceptance criteria; the technical
tasks remain in
tasks.md.
GitLab Issue numbers are specific to each GitLab project. #142 designates
the Issue of the current project; for an Issue of another project, GitLab uses
the full reference Hoggar/hoggar-api#142 (native syntax, also valid in
Closes).
Progress
During the implementation, the agent or the person ticks the tasks in
tasks.md as the work proceeds:
- [x] T001 ...
- [x] T002 ...
- [ ] T003 ...
The state of the ticket is tracked in the GitLab Issue and its Board; the state of the release in the Milestone.
Commits
Messages in English, without a Conventional Commits scope:
<type>: <description in English> [#<issue>] [SPEC-<id>]
| Case | Example |
|---|---|
| Work linked to an Issue and to a spec | feat: add GPX parser [#142] [SPEC-005] |
| Work linked to an Issue, without a spec | fix: correct login button alignment [#221] |
Types: feat, fix, docs, test, refactor, ci, chore, security,
infra. The Issue identifier is mandatory for any work commit linked to a
ticket; [SPEC-…] only if the work belongs to a spec. No
feat(gpx): …. No Issue number is invented: without an Issue, the Issue is
created first.
Commits made before 2026-10-05 keep their original format; the Git history is never rewritten.
Branches (GitFlow)
Approved human decision by the project owner on 2026-10-06: GitFlow for the 4 repositories. Names in English, allowing the ticket to be found.
| Branch | Starts from | Merged into | Role |
|---|---|---|---|
master | — | — | Stable / production, protected. Only branch deployed by Coolify |
develop | master | — | Integration and default GitLab branch, protected. Never deployed to production |
feature/<issue>-<description> | develop | develop (MR) | Feature, e.g. feature/142-gpx-import |
bugfix/<issue>-<description> | develop | develop (MR) | Non-urgent defect, e.g. bugfix/183-invalid-gpx |
security/<issue>-<description> | develop | develop (MR) | Security, e.g. security/191-restrict-agent-access |
infra/<issue>-<description> | develop | develop (MR) | Infrastructure, CI, deployment, e.g. infra/87-backup-strategy |
refactor/<issue>-<description> | develop | develop (MR) | Restructuring without change of behaviour |
docs/<issue>-<description> | develop | develop (MR) | Documentation and AI rules, e.g. docs/12-development-workflow |
release/<version> | develop | master (MR), then tag vX.Y.Z and back into develop | Preparation of a version, e.g. release/0.1.0 |
hotfix/<issue>-<description> | master | master (MR), then merged back into develop (MR) | Urgent production fix |
Rules:
- nobody pushes directly to
masterordevelop: everything goes through a Merge Request; no agent merges an MR itself or merges locally to bypass it; - a Spec Kit spec never replaces the GitLab Issue or the branch;
- without access to the GitLab API to create an Issue or an MR, the agent stops and asks for the human action.
Spec Kit 1.0.13 no longer deduces the spec folder from the branch name
(.specify/feature.json), so the branch name may differ from the spec
folder. The branches created before GitFlow (002-ai-agent-isolation,
<issue>-<type>-<description>, docs/…, ai/…) are not renamed. The
main branch is obsolete: it must never be used as a source or a
target.
Merge Request
Template: .gitlab/merge_request_templates/Default.md. A work MR targets
develop; only the release/… and hotfix/… branches target master. The
merge is done by a human (HG-MERGE). The MR states:
Issue: #142
Spec: SPEC-005
Closes #142
as well as what was done and the tests performed. Closes #142 (or
Closes Hoggar/hoggar-api#142) closes the Issue on merge into the default
branch, develop — native GitLab feature, no specific mechanism.
Expected traceability
Release v0.1.0
└── GitLab Issue #142
├── hoggar-api SPEC-005 ─┐
└── hoggar-web SPEC-003 ─┴─ tasks.md
└── commits [#142] [SPEC-xxx]
└── Merge Request(s) → develop
└── release/0.1.0 → MR → master
└── tag v0.1.0 → deployment
When opening the Issue, one must understand: what is being built, why, the repositories concerned, the specs concerned, where to follow the technical progress and the planned release.
Rules for AI agents
The agents apply this page; the detailed rules for agents are in
hoggar-ai (policies/git.md, spec-kit/conventions/) and in the
CLAUDE.md / AGENTS.md of each repository. Pending decisions remain
pending: this workflow approves none of them.
Language
| Content | Language |
|---|---|
spec.md, plan.md, tasks.md, checklists, Hoggar documentation | French |
| Code, branch names, commit messages | English |
| Commands, tools, file names imposed by Spec Kit | Official names unchanged |
French is the canonical language; the portal also publishes an English translation and an Arabic translation (see Documentation).