Skip to content

Development Workflow

Luis edited this page Dec 5, 2026 · 6 revisions

Development Workflow

Full rules: AGENTS.md and CONTRIBUTING.md. This page summarizes them.

The issue is the spec

Each GitHub issue holds context, scope and acceptance criteria. If the spec changes, the issue is edited. Up to three features in flight, in different packages, each with its own loop (ADR 0006).

Agent loop

Mandatory for every model-assisted change, enforced by make budget (ADR 0002, 0004, 0005).

flowchart LR
  dev["developer<br/>implements the issue"] --> test["tester<br/>checks every acceptance criterion"]
  test --> aud["auditor<br/>re-rates findings, checks architecture.md,<br/>posts decision"]
  aud -- "Critical/High (max 3 cycles)" --> dev
  pen["pentester (independent)<br/>once per version and on external PRs"] -.-> aud
Loading
  • Per PR: developer → tester → auditor, with shared context (issue, diff, test output, earlier verdicts).
  • Pentester: no shared context. Runs once per version over the whole version diff before tagging, and on every PR from an external contributor (not a maintainer in CODEOWNERS). The maintainer-only security-sensitive label marks what the release pentest covers first.
  • Auditor: re-rates each finding by real impact and checks the PR against docs/architecture.md (layers, contracts, principles §8, fitness functions §9). Before each release it also runs the per-version architecture review and updates the Architecture diagrams.
  • Blocking: a confirmed Critical or High blocks the merge; after 3 cycles, escalate to the maintainer. Medium, Low and Info become follow-up issues on the Roadmap.
  • Docs-only PRs (only *.md or docs/, no policy files) run only the auditor.
  • Changing the loop needs an ADR and maintainer approval.

Branches, commits and PRs

  • Branch feat/<issue>-<slug>; PR body Closes #N; labels from the issue plus a release-note label.
  • Conventional Commits titles, Signed-off-by on every commit (git commit -s, DCO). Every commit on main must also be signed with SSH or GPG and show as verified on GitHub (ADR 0026, #49, #313): set commit.gpgsign true (with gpg.format ssh and user.signingkey for SSH) and add the key to your GitHub account as a signing key. A pull request with an unsigned commit cannot merge; re-sign your branch and push it again.
  • Squash merge only, when checks are green, the tester passes and the auditor allows it.
  • After each merge, AGENTS.md Current state is updated.

Local checks

make check                        # fmt, vet, budget and tests; run before every PR
make budget                       # dependency allowlist, caps, file length, workflow pinning
make test PKG=./internal/<pkg>    # one package
make protections                  # fixed-protection tests (required CI job `protections`)

CI also runs golangci-lint, govulncheck and gitleaks.

Releasing

How a release runs and how to rotate the package App key: Release.

Clone this wiki locally