Configuration reference
Commands
| Command |
What it does |
repo-steward inbox |
Runs the steward: the console on port 8000, the alerts, the plans, the sessions and the merges |
repo-steward run |
Runs one session on the most important work of the repository, for a cron; a usage limit skips it |
repo-steward ask --message "…" |
Runs one session on a request |
Each takes --config <file>, or reads the path from REPO_STEWARD_CONFIG.
The config file
One YAML file, validated once at start. Every key below is required: there are no defaults, an unknown key is refused, and a section marked or null is written as null to turn it off. ${NAME} anywhere in a string is replaced with the environment variable NAME, and a name the environment does not set stops the steward.
repository
| Key |
Type |
Meaning |
name |
owner/repo |
The GitHub repository the steward maintains |
owner |
string |
A GitHub login: its open issues with issue_label become instructions every session reads first |
issue_label |
string |
The label that marks those issues, for example maintainer |
branch_prefix |
string ending in / |
The prefix of the steward's branches, for example maintainer/. The merge gate only looks at pull requests from these branches |
owner_paths |
list, at least one |
Path prefixes, such as .github/ or deploy/: a pull request that touches one waits for your merge |
rules |
path |
The rules file on main, usually AGENTS.md. Its ## Checks section lists every command in backticks that a commit must pass |
brief |
path |
The product brief in the repository: what the product is, its signals, and what matters most |
skills |
path or null |
A folder in the repository with your product's own skills, installed next to the shipped ones |
git
| Key |
Type |
Meaning |
name |
string |
The author and committer name of the steward's commits |
email |
string |
Their email |
sessions
| Key |
Type |
Meaning |
model |
string |
The Claude model of the sessions, for example opus |
summary_model |
string |
The model that summarises Bugsink issues for their cards, for example haiku |
minutes |
integer > 0 |
How long one session may take |
poll_seconds |
integer > 0 |
How long the steward waits for the console between two rounds of polls |
readable |
list of paths |
Folders in the container the sessions may read in addition to the checkout, for example mounted logs; [] for none |
quiet
| Key |
Type |
Meaning |
starts |
list of quoted times |
Daily starts of the quiet windows in UTC, such as ["01:35"]; [] for none. Quote them: YAML reads an unquoted 1:35 as a number |
minutes |
integer ≥ 0 |
How long each window lasts. No merge and no plan session starts inside one |
backend
| Key |
Type |
Meaning |
url |
URL |
Your backend, which holds the approver's key (see Backend) |
record_runs |
boolean |
true sends each session's statistics to the backend |
plans
| Key |
Type |
Meaning |
hold_url |
URL or null |
A switch on your backend asked before each plan session; while it answers {"paused": true}, plans wait |
console
| Key |
Type |
Meaning |
url |
https://host[:port] |
The console's public URL, without a path or a trailing slash. It is the OAuth redirect's origin, the only Origin actions are accepted from, and the Web Push contact |
owner |
digits |
The Discord user id of the only person who may sign in, usually "${DISCORD_OWNER_ID}" |
theme |
object or null |
The console's colours; null keeps the neutral look |
console.theme, when set:
| Key |
Type |
Meaning |
scheme |
light or dark |
The colour scheme |
accent, on_accent |
#rrggbb |
Buttons and links, and the text on them |
background, surface, text |
#rrggbb |
The page, the cards and the text |
bugsink (or null)
| Key |
Type |
Meaning |
url |
URL |
The base URL of your Bugsink's API |
team |
string |
The Bugsink team that projects a session creates belong to |
server_projects |
list |
Prefixes of issue short ids, such as RETRO-SPEEDLAB-OPS-, whose cause is on a server: their session gets no stack trace and its pull request does not name them, and their cards go when the signal clears |
ops (or null)
| Key |
Type |
Meaning |
table |
path |
The ops-gate verb table in the repository, read from main, for example deploy/ops/verbs.toml |
Environment
| Variable |
Needed |
Purpose |
REPO_STEWARD_CONFIG |
Unless --config is given |
The path of the config file |
GITHUB_TOKEN |
Always |
Pushes the reviewed branches, opens, merges and closes pull requests, reads issues and CI runs |
CLAUDE_CODE_OAUTH_TOKEN |
Always |
Claude Code's sessions and reviews, passed through to the agent user |
DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET |
inbox |
The Discord OAuth2 application, with the redirect {console.url}/auth/discord; no bot |
CONSOLE_SESSION_SECRET |
inbox |
Signs the session and sign-in cookies |
VAPID_PRIVATE_KEY |
inbox |
Web Push: the raw P-256 private key in base64url, as npx web-push generate-vapid-keys prints it |
CONSOLE_API_KEY |
inbox |
The key other services send to the producer API |
BACKEND_API_KEY |
With ops, record_runs: true or a hold_url |
Sent as X-API-Key on every call to the backend |
BUGSINK_API_TOKEN |
With bugsink |
Reads and resolves Bugsink issues |
BUGSINK_DSN |
Optional |
Reports the steward's own errors to Bugsink or Sentry, with every secret scrubbed |
Any other variable is read only where the config names it with ${NAME}, such as DISCORD_OWNER_ID. Codex has no variable: sign it in once inside the container for the reviews with codex-as-agent login --device-auth.
Backend
The backend holds the approver's signing key, so the steward needs a small one you host. The steward sends X-API-Key: $BACKEND_API_KEY with each call:
| Call |
Purpose |
POST /maintainer/ops-proposals |
A destructive step a session proposes: {id, host, words} |
GET /maintainer/decisions/{component} |
Opened by your browser, not the steward: approve_<id>, deny_<id> or enable_<commit>. The backend shows the step from its own record, signs you in with Discord (code and PKCE, identify), checks your user id, signs or records the decision, and redirects to {console.url}/?decided=<component> |
GET /maintainer/ops-proposals/{id}/approval |
The signature of an approved step, {expiry, nonce, signature} from ops_gate.approval.sign_run |
PUT /maintainer/runs/{name} |
A session's statistics, only with record_runs: true |
GET <hold_url> answering {"paused": true} |
The optional switch that holds plan sessions back |
RetroSpeedLab's backend implements it in its suite, in src/retrospeedlab/backend/maintainer.
Container
| Path |
What lives there |
/workspace |
The steward's state, owned by the maintainer user (uid 10001) |
/workspace/agent |
The agent's checkout, reports and caches, owned by the agent user (uid 10002) |
/workspace/mirrors |
The bare mirror of the repository, the only one the agent's git trusts |
/workspace/logs |
inbox.log and one log per session |
/workspace/inbox.json |
Threads, queued requests and the plans' progress |
/workspace/push.json |
The Web Push subscriptions |
/workspace/producer-cards.json, /workspace/producer-actions.json |
The producer cards and the actions not yet taken |
/ops/ssh_config |
The SSH config the ops verbs use, mounted when ops is set |
Build the image with --build-arg PRODUCT_PACKAGES="…", the system packages your checks need, or an empty string. Port 8000 serves the console and the producer API; put a reverse proxy that terminates TLS in front of it.