Reference · Steward
The Steward's settings and files
Every setting on the Steward's page, with its default and what it changes, where the Steward keeps its files, and the environment variables it reads.
- Article
- 1309
- Applies to
- Steward 0.36.158
- Last reviewed
- For
- For developers
Where the settings are#
Choose Settings in the title bar of the Steward's page. They're kept in %USERPROFILE%\.steward\settings.json, and used from the next round or button on. They're in tabs: Repositories, How it works and Build pipeline. The few marked advanced are folded under Advanced at the end of their tab.
Your repositories, and how each is released, are in Castellan's Settings > Developer > Repositories: the Steward works by that list, not by its own Repositories tab. See Choosing what the Steward looks after.
There's no setting to merge pull requests: since Steward 0.36.124 it merges none. Settings it had for merging (Merges PRs, Catches PRs up with their branch, Merges ready PRs together, Release right after merging, A PR merges once it is) are no longer shown, and are ignored if settings.json still has them.
How it works#
| Setting | Default | What it does |
|---|---|---|
| Team | Empty: the account gh is signed in as | The GitHub accounts whose vouches the Steward trusts. Empty, it's the account gh is signed in as on this PC, which also covers the pull requests your AI coding assistant opens with it. Named accounts are the whole team, so name yours too. A GitHub App as app/<name>. |
| Builds and releases by itself | Off | On: while it's on duty, at each build time it releases what's new on each repository's branch. Off: it releases only when you press a button: Release, or Run now, whose round builds when a build time has passed since its last build. Either way, it merges no one's pull requests. See You merge, it builds. |
| A round every | 10 minutes | How often it looks while on duty, 2 to 240 minutes. Between builds a round only looks. |
| Waits for the Assayer's release check | On | A release is published once the Assayer's check of its commit lets it through. Where the Assayer isn't installed, it's released without one, and says so. |
| Keeps the staff's pages up | On | An employee on duty whose page doesn't answer is opened again: three tries, then one an hour, and an alarm. One you stopped stays stopped. Castellan does this itself while it runs, and the Steward then leaves it to Castellan. |
| Source control | Automatic | How the Steward works with each repository. Automatic: its host's own way, where this PC has that host's tool signed in (GitHub, GitLab, Azure DevOps, Gitea or Forgejo, Bitbucket Cloud), and plain git otherwise. GitHub, for every repository. Git, for every repository: plain git everywhere, with no pull requests; a release is a v<version> tag pushed to the repository. It offers only what's installed on this PC. |
| Alarms | On, with a notification | What becomes an alarm, and how you hear of it. See The Steward's alarms. |
| Install scripts allowed | esbuild, unrs-resolver, fsevents | The npm packages whose install scripts may run when the Steward installs a repository's packages: every install runs with --ignore-scripts, then these alone run theirs. Any other package with one holds the work, with an alarm naming it and its script. Add a package only once you trust it. |
| Tests only what a change reaches (advanced) | On | Where npm test is Node's own test runner, a vouch, and a build's test of a branch, run only the test files the change reaches: the ones it changed, the ones whose imports reach a changed file, and the ones that name one. A change to the setup runs them all. Off: the whole suite every time. |
| Checked at once (advanced) | 2 | How many repositories are tested and released at the same time, 1 to 10. |
| Stages at once (advanced) | 2 | How many rounds and buttons run at the same time, 1 to 4: a round, and a Release you press, say. Where two want the same repository, the second waits for the first to finish with it. 1: one at a time. |
Build pipeline#
| Setting | Default | What it does |
|---|---|---|
| Build times | 00:00, 06:00, 12:00 and 18:00 | Local times, one to twelve of them. A build the PC slept through begins once it wakes. |
| On these days | Every day | The days it builds on. |
| A build takes at most (advanced) | 30 minutes | 15 to 60 minutes. Then it releases what's ready, as it is, and ends. |
Builds come at these times only while Builds and releases by itself is on. See You merge, it builds.
Each repository's#
How each repository is released is its Release in Castellan's Settings > Developer > Repositories: tag, for a release the Steward makes itself, or a command run in a fresh worktree of its branch that makes the release v<version> (npm run release, say). Empty, it's never released. See How the Steward releases.
The Steward's own Repositories tab has a little more for each one: a Note for its row, Refresh after releases (a command run after a release, such as a site's npm run sync), and After a release for plain git. It uses them only on a PC without Castellan.
Its files#
All in %USERPROFILE%\.steward:
| File | What's in it |
|---|---|
settings.json | Its settings. |
stages.log | One line for every round or button that did something. Rotated at 1 MB, the last two kept as stages.1.log and stages.2.log. |
last-stage.json | The last round or button, with its log: the page's Last stage. |
pipeline.json | The build under way and the last 30: what each released, what failed, and where its time went. |
main-tested.json | Each commit a build tested, and what its test came to, so a commit is tested once. |
alarms.json | The alarms: open, dismissed and lately cleared. |
version-claims.json | The versions claimed and not yet landed. |
repos-found.json | The repositories Reeve found, and whether gh's account can push to each: Found on this PC. |
round-failed.json | Each repository's release that failed, by commit: the builds don't try it again. |
turns.json | Each repository's release PC, as last seen. |
unsafe-updates.json | Each update of the Steward that was rolled back, and refused until you allow it. |
work\ | Its worktrees, one folder per repository, and the packages they share. |
app\, app.prev, app.unsafe-<version> | The installed program; for the 90 seconds after an update, the version before it, to go back to; and each update that was rolled back, kept for a look. |
duty.json, server.json, serve.log | On duty or not; the running page's process and port; its output. |
Environment variables#
| Variable | What it does |
|---|---|
STEWARD_HOME | Keeps the Steward's data in another folder. |
STEWARD_PORT | Moves its page to another port. |
Related articles
Is this page right?
If something on it is wrong or out of date, tell us and we'll fix the page.
Still stuck? Write to support@castellan-software.com and mention article 1309. Every version of Steward, and what changed in it, is in its release notes.