Skip to content
Castellan
Steward's icon

Reference · Steward

Read as

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
Written for Steward 0.36.158. Steward is at 0.36.354 now (40 small releases since: what changed).

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#

SettingDefaultWhat it does
TeamEmpty: the account gh is signed in asThe 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 itselfOffOn: 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 every10 minutesHow often it looks while on duty, 2 to 240 minutes. Between builds a round only looks.
Waits for the Assayer's release checkOnA 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 upOnAn 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 controlAutomaticHow 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.
AlarmsOn, with a notificationWhat becomes an alarm, and how you hear of it. See The Steward's alarms.
Install scripts allowedesbuild, unrs-resolver, fseventsThe 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)OnWhere 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)2How many repositories are tested and released at the same time, 1 to 10.
Stages at once (advanced)2How 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#

SettingDefaultWhat it does
Build times00:00, 06:00, 12:00 and 18:00Local times, one to twelve of them. A build the PC slept through begins once it wakes.
On these daysEvery dayThe days it builds on.
A build takes at most (advanced)30 minutes15 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:

FileWhat's in it
settings.jsonIts settings.
stages.logOne 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.jsonThe last round or button, with its log: the page's Last stage.
pipeline.jsonThe build under way and the last 30: what each released, what failed, and where its time went.
main-tested.jsonEach commit a build tested, and what its test came to, so a commit is tested once.
alarms.jsonThe alarms: open, dismissed and lately cleared.
version-claims.jsonThe versions claimed and not yet landed.
repos-found.jsonThe repositories Reeve found, and whether gh's account can push to each: Found on this PC.
round-failed.jsonEach repository's release that failed, by commit: the builds don't try it again.
turns.jsonEach repository's release PC, as last seen.
unsafe-updates.jsonEach 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.logOn duty or not; the running page's process and port; its output.

Environment variables#

VariableWhat it does
STEWARD_HOMEKeeps the Steward's data in another folder.
STEWARD_PORTMoves its page to another port.

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.