From 3712a94ee27213e16fc22b4833d9dc173e8c7fde Mon Sep 17 00:00:00 2001 From: Xenolphthalein <21215869+Xenolphthalein@users.noreply.github.com> Date: Thu, 3 Dec 2026 12:44:16 +0100 Subject: [PATCH] docs: AGENTS.md as the agents' guide, with CLAUDE.md a link to it For overpressure#124. --- AGENTS.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ CLAUDE.md | 1 + 2 files changed, 48 insertions(+) create mode 100644 AGENTS.md create mode 120000 CLAUDE.md diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..4a87eb7 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,47 @@ +# AGENTS.md + +**overpressure/repository** builds [packages.overpressure.org](https://packages.overpressure.org): signed apt and +dnf repositories of [overpressure](https://github.com/overpressure/overpressure)'s app, with a stable and a beta +channel, made from the .deb and .rpm each release carries and deployed to GitHub Pages by the Pages workflow. How it +works: [README.md](README.md). + +The project's rules for issues, documents, code and changes: +[conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md). + +## Setup and commands + +Python 3.12 or newer through [uv](https://docs.astral.sh/uv/); building and the repository tests need Debian or +Ubuntu with `apt-utils dpkg-dev createrepo-c rpm gnupg` ([building it](README.md#building-it)): + +```sh +uv run python -m pkgrepo plan # which releases the channels take now +uv run python -m pkgrepo build --test-key # the site in _site/, signed with a key made for it +uv run python -m unittest # the tests; the repository tests need the tools above +uv run ruff format --check . && uv run ruff check . && uv run ty check +python OVERPRESSURE/scripts/check-docs.py --repo . # links, AGENTS.md; OVERPRESSURE: a checkout of it +python OVERPRESSURE/scripts/check-private.py --repo . --history # nothing private in any commit +``` + +## Layout + +- `pkgrepo/`: `build.py` (the plan, the apt suites, the dnf folders, signing). `tests/`: unittest, with stand-in + packages and a key made for the run. +- `page/`: the site's page (text, colours, Inter, the logo copied from + [overpressure/brand](https://github.com/overpressure/brand)). `keys/overpressure.asc`: the public key. +- `.github/workflows/pages.yml`: tests on a pull request; build and deploy on `main` and hourly when a channel moved. + `_site/`: the build's output, ignored. + +## Hard rules + +- **The signing key's secret half never leaves its secret** (`PACKAGES_SIGNING_KEY` in the `packages` + environment, which only `main` deploys). Never print, commit or ask for it; local builds use `--test-key`. +- **A new key** changes `keys/overpressure.asc` and the secret in the same change, and overpressure's release notes + say so ([a new key](README.md#a-new-key)): every owner has to fetch it once. +- **The channels are the app's:** `stable` never takes a beta; each channel holds one version. + +## Changes + +A branch and a pull request against `main`, titled as a conventional commit; merged by rebase or squash once `ci` +(tests, lint, links, private data) passes and the code owners approved +([conventions](https://github.com/overpressure/overpressure/blob/main/docs/develop/conventions.md#changes)). A +merge deploys at once; every hour the workflow rebuilds when a channel moved to another release. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..47dc3e3 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +AGENTS.md \ No newline at end of file