Files
Andrew S Erwin f603bcd2d2
release gate / check (push) Failing after 5m49s
Add project OpenCode agent + skills; note core compose topology
- .opencode/agents/superbrain.md: primary project engineer agent
- .opencode/agents/invariant-reviewer.md: read-only diff reviewer subagent
- .opencode/skills/: db-migration, add-endpoint, web-invariants, verify, release
- RUNNING.md: warn that the repo docker-compose.yml is local dev/test only and
  must never be run on a core (cores use the federated render + shared postgresql)
2026-11-30 10:00:14 -06:00

55 lines
2.8 KiB
Markdown

---
name: Release
description: Cut a Superbrain release — lockstep version bump across service/installer/mcp files, CHANGELOG entry, tag (no v prefix), and the separate Docker Hub publish process. Use when asked to bump the version or prepare a release.
---
# Release workflow
Versions correspond to git tags AND the published image set
(`federatedcomputer/superbrain-{app,web,migrate}` on Docker Hub). The
`superbrain-mcp` Python package and the federated suite files move in lockstep.
Superbrain is pre-beta: the line is `0.x`, semver **without a `v` prefix**
(suite `VERSION_RX` is `^[0-9][0-9\.]*$`).
## Steps
1. **Propose the version bump first** and get user approval before editing.
2. **Bump every lockstep file together** (a release commit touches all of them):
- `deploy/federated/service` — the `VERSION` line.
- The installer image version referenced by the federated suite
(`deploy/federated/lib-superbrain.sh` and/or the installer image tag).
- `mcp/pyproject.toml` — `version = "..."`.
- `mcp/superbrain_mcp/__init__.py` — `__version__`.
Confirm with `git log --stat` on a prior "release 0.3.x" commit for the exact
file set at the current head.
3. **Add a CHANGELOG entry** at the top of `CHANGELOG.md`:
`## X.Y.Z — YYYY-MM-DD` with `### Added` / `### Changed` / `### Fixed`
subsections. Match the existing prose style (feature-first, one bullet per
user-visible change). Dates are tag dates.
4. **Commit** with the message pattern `release X.Y.Z: bump federated service
VERSION, installer image version and mcp package version`.
5. **Tag** without a `v` prefix: `git tag X.Y.Z`.
## Publishing (important, do not "fix")
- The Docker Hub image set is published by a **SEPARATE process triggered on
push to `main`** — NOT by this repo's CI.
- The Gitea `release.yml` publish job has **never succeeded** (the repo's
`DOCKERHUB_*` Actions secrets are empty; writing them needs a repo-owner
account the git credential user is not). Do NOT treat that job's failure as a
regression or rework the flow. Its tag-triggered `smoke` job is still a valid
gate.
- **Fallback publisher:** local `docker buildx` with the `multiarch` builder
(amd64 + arm64, `<tag>` + `latest`, web build-arg
`SUPERBRAIN_VERSION=<tag>`). qemu arm64 binfmt registration is lost on reboot
— re-register with
`docker run --privileged --rm tonistiigi/binfmt --install arm64` then
`docker restart buildx_buildkit_multiarch0`.
- Cores consume Docker Hub via the suite upgrade flow (erwin example):
`ssh core 'sudo bash -c "$(docker run --rm --pull always federatedcomputer/superbrain-migrate cat /deploy/update.sh)" update.sh <version>'`.
## Reference
- `CHANGELOG.md` (format + recent entries).
- Root `AGENTS.md` → "Release publishing (confirmed by operator 2026-11-21)".
- `RUNNING.md` for deploy/upgrade detail.