Overview · Assayer
The Assayer, your projects' testing specialist
What the Assayer does with your own repositories (tests them case by case, says what changed when something breaks, checks they're ready to release, and opens work that passes as a ready pull request), its Rounds switch, how your AI coding assistant runs its tests through it, and what it never does.
- Article
- 1801
- Applies to
- Assayer 0.10.5
- Last reviewed
- For
- For developers
What it is#
The manor's assayer tested metal before it was struck into coin: what passed went on to the mint, what failed went back to the smelter. The Assayer does the same for the work in your own projects. It tests each repository case by case and test by test, says what changed when something breaks, checks whether a repository is ready to release, and turns work that passes into a ready pull request for you to merge. What fails stays where it is, with its output.
It's one of the developers' staff, and holds the Aletaster's office for developers. See Hiring, switching and letting staff go.
Two ways to use it#
- Your AI coding assistant's tester. From the moment it's hired, your assistant can run a repository's checks through it and get a few lines back instead of all the output. See For your AI coding assistant.
- Its own rounds. Every hour it tests your projects by itself: your idle branches, a daily health run, and release ready. This waits for you: a new install starts with Rounds off, and leaves your repositories alone until you turn them on, with Turn rounds on on its page or Rounds in its Settings.
Which repositories#
Its rounds test the ones in the Repositories list, under Castellan's Settings > Developer, whose checkout is on this PC and whose origin is that GitHub repository, including those the Steward looks after. See Your own repositories.
Your AI assistant can check any repository on this PC, in Castellan's list or not, and one inside WSL too.
What it does#
With Rounds on, every hour, one test run at a time and at most 3 a round, it does its jobs. A repository where nothing changed costs one small request to GitHub: nothing is downloaded or run.
| Job | What it does |
|---|---|
| Your branches | A local branch ahead of the project's branch, with no pull request, left alone for 2 hours: tested at its newest commit. When it passes, it's pushed and opened as a ready pull request. |
| A daily health run | Once a day, the project's branch as GitHub has it, unless the Steward has already tested that very commit in full, and again when a tool it uses changed version. |
| Release ready | Every 6 hours: the versions agree, every pull request since the last release has its changelog line, the release's checksums match, and CI is green. |
| The manor's pull requests | The open pull requests of the repositories in the Steward's own settings, tested with the Steward's checks and vouched for when they pass. On most PCs there are none: the jobs above cover your repositories. |
The details are in The Assayer's jobs.
How it tests#
Code finds the cases from the repository's own files: unit tests, typecheck, lint, build, and release ready. Settings > Test cases you set adds or changes them.
It reads each test from the runner's report (node:test, Vitest, Jest, pytest, dotnet test, cargo test, go test), so a failing case shows which tests failed and their output. A test that passed and failed on the same commit is marked flaky, with its likely cause when the test's own code shows one.
It says what changed when a case goes from passing to failing: the commits in between, and the tools whose versions moved. When only a tool changed, it offers that tool's last good version back, for you to check.
It never touches your checkout. Each run is in a throwaway worktree of its own, with the packages the commit's lockfile pins.
It keeps the PC yours. Its tests run at a share of the processor, below your own work, with their memory capped.
For your AI coding assistant#
The Assayer is also a tool your AI coding assistant can use (an MCP server). Instead of running npm test, tsc, pytest and the like itself and reading every line, your assistant asks the Assayer to check a repository. It gets a few lines back: PASSED or FAILED, and each failing test with its message and whether it failed before or is flaky. The whole output goes to a log file it can open if it needs to.
The Connect your AI card, on its page, connects Claude Code with one button, and has the setup for other assistants too. Kept out of your AI's context shows how much test output the Assayer kept from it.
One Assayer serves every AI session: each session's connection is a small bridge to the Assayer's page, which runs the checks. An update restarts the page, not your sessions, and each comes back to the new version by itself. See Checks for your AI assistant.
What it never does#
- It never merges, tags or releases. That's yours, and releasing is the Steward's.
- It never force-pushes, and never pushes what failed.
- It never changes a tool unless you check it and press Put back.
- It uses no model. Every finding is code's.
Its home page#
The Assayer's page is at http://assayer.localhost:20909/, and Open on its card in Castellan goes there. Its rounds start by themselves. From the top:
- Needs you, only while something does: a round that went wrong, or Settings it can't use.
- At a glance: a tile each for what didn't pass, what's ready for you, how many repositories pass, the manor's pull requests and the last round. A tile takes you to its section.
- Connect your AI: open until your assistant is connected, then one line.
- Kept out of your AI's context: this month's, last month's and all time's.
- Didn't pass: a line for each failing run, with its output.
- Ready for you: the pull requests it opened.
- Repositories: those in trouble, a line each with its cases' marks and its daily runs as dots. Details opens its cases. The ones that pass or weren't tested fold under one line ("All 12 pass"), which your browser remembers open or shut.
- Lately: the last 3 test runs, until Show all.
Long output, such as a run's, a case's tests, or what changed since it passed, opens in a panel beside the page.
Settings and About are in the title bar. About opens with What's new: the notes of the versions its latest updates brought.
While Rounds are off, the page shows the switch, Connect your AI, what its checks kept, and its last runs.
Getting started#
- Hire the Assayer in Castellan, on the Aletaster role's card: Hire if the role is vacant. While the Bridgeward holds it, Employee management opens the role's page, where Hire or switch an employee hires the Assayer beside it or in its place. It's included in the Workshop license. See Hiring, switching and letting staff go.
- Connect your AI coding assistant from Connect your AI (its connect button, or another assistant's setup), so it runs its tests through the Assayer.
- For its hourly rounds, add your repositories under Repositories in Castellan's Settings > Developer if they aren't there, and press Turn rounds on.
- Look at Repositories after its first round: each case found, and how it went.
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 1801. Every version of Assayer, and what changed in it, is in its release notes.