Skip to content

docs: AGENTS.md, server quick-start, and PR CI workflow - #10

Merged
richardcase merged 1 commit into
mainfrom
docs/agents-quickstart-ci
Jul 15, 2026
Merged

richardcase merged 1 commit into
mainfrom
docs/agents-quickstart-ci

Conversation

@richardcase

Copy link
Copy Markdown
Member

What

First agent-instruction file, server deployment guide, and CI for Brigade.

  • AGENTS.md (+ CLAUDE.md symlink) — working rules for AI agents: mise toolchain (always mise exec -- mix), lib/brigade/ layout, behaviour-seam / generated-proto conventions, testing rules, pre-commit checks. Omits Co-Authored-By per repo convention.
  • docs/running-on-servers.md — operator runbook: prerequisites, topology A, config table, clustering (Gossip + min_cluster_size split-brain guard), north/south auth + mTLS, named-node run command, verify (/healthz, /status, /metrics), observability. Flags that config is compile-time today (no runtime.exs, no mix release yet).
  • .github/workflows/ci.yml — PR + push to main: erlef/setup-beam pinned to mise.toml (Elixir 1.18.4 / OTP 27.3.4.14), deps/_build cache, then format check → compile --warnings-as-errors → hermetic mix test → distributed peer-node tests.

Note

Distributed tests need a distributed VM. Plain mix test --include distributed dies with :nodistribution (the cluster_singleton_test setup can't bootstrap distribution from a non-distributed VM). CI and the docs run them via elixir --name ... --cookie ... -S mix test --include distributed.

Verified locally

  • mix format --check-formatted
  • mix compile --warnings-as-errors
  • mix test — 27 tests, 0 failures ✓
  • distributed suite (named+cookied VM) — 0 failures ✓

- AGENTS.md: agent working rules (mise toolchain, layout, conventions,
  testing, pre-commit checks). CLAUDE.md symlinks to it.
- docs/running-on-servers.md: operator runbook (config, clustering,
  auth/TLS, run, verify, observability); notes compile-time config and
  deferred mix release / runtime.exs.
- .github/workflows/ci.yml: PR + push CI — format check, warnings-as-errors
  compile, hermetic mix test, and distributed peer-node tests (started via a
  named+cookied VM, since plain mix test can't bootstrap distribution).
@richardcase
richardcase merged commit 02c47f4 into main Jul 15, 2026
1 check passed
@richardcase
richardcase deleted the docs/agents-quickstart-ci branch July 15, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant