Skip to content

Contributing

Most commits to RetroSpeedLab are written by agents, and they follow the same rules as humans. The rules live in AGENTS.md at the repository root; this is the short version.

Principles

  • Simple. KISS, DRY, YAGNI; the fewest lines that stay readable. No wrappers or abstractions without a second real use.
  • Explicit. No default parameters and no hidden defaults: a missing value raises. Fail fast, catch only expected exceptions.
  • Small. Classes and components under 100 lines, functions small with early returns. Organise by feature, never utils/ or helpers/.
  • Clean breaks. Remove superseded code instead of keeping aliases, fallbacks or old configuration shapes.
  • Libraries first. Mature open-source libraries over own code, and no freemium tools.
  • No internals. No IPs, host names, server paths, emails or account IDs in code or docs. Secrets and private infrastructure come from configuration the vault fills.
  • The brand is written RetroSpeedLab; only domains, package and repository names stay lowercase.

Python is 3.12, fully typed, with pathlib, loguru, pydantic, typer and httpx. The web code is Vue 3 with <script setup lang="ts"> in strict TypeScript: no any, no non-null assertions.

Kanso

Every change follows the Kanso workflow (.agents/skills/kanso/): discover what the change touches, specify changed behaviour as Gherkin acceptance scenarios and drive it test-first (red, green, refactor), reuse before writing, integrate in small steps and verify with every check.

Checks

Every commit passes all of them; Getting started lists the commands. Every commit leaves the repository working.

uv run pre-commit install (in WSL) adds the fast hooks that run on staged files at each commit: ruff, gitleaks, prettier, eslint and file hygiene, with files over 2 MB refused. pyright, the tests with coverage, vulture and knip run in CI, the gate every pull request and main must pass.

Commits

Conventional Commits whose subject says what is true after the change:

feat(lab)!: the Claude lab run starts every third day at 01:35 UTC instead of four times a day
refactor: one Bugsink client pages the API for the backend's alerts, its tech stack and the maintainer
fix(web): the site and the stream write the brand RetroSpeedLab and name no host

A ! marks a breaking change. Every change to a game's cartridge also bumps the game's version and its CHANGELOG.md (see Games).

Security

Please report vulnerabilities privately rather than in a public issue. Private vulnerability reporting will be enabled on the GitHub repository when it goes public.