Add claims to a station's judge
Use this when a replay of a work station can do what the accepted change did and still miss something the team needs, such as a test. You need the line in Terraform. See Manage Spotlight with Terraform.
The judge scores every replay of a work station without a judge block. It
asks whether the replay's change does what the change people accepted for the
task did. Claims add to that question and never replace it. See
Why changes are replayed on past tasks.
Each work station of the built-in lines already has claims. To change them,
edit its judge block. See
Station judges.
Write 1 to 20 claims, each a statement of at most 500 characters that is true
for a good change, such as The change adds a test that fails without it.
Write each claim so the judge can check it on its own, from the run's steps
and changes.
Add a judge block to the station's block in the spotlight_line resource:
station {
key = "implementation"
name = "Implementation"
harness = "claude-code"
# ...
judge {
claims = [
"The change adds a test that fails without it.",
"The change touches only what the task names.",
]
}
}If a replay may pass without meeting every claim, set pass_threshold to the
share it must meet, above 0, up to 1, such as 0.5. Leave it out to require
every claim.
Run terraform apply.
The claims are part of the station's config, so once the next run starts, the change shows under Config changes on the Insights Stations tab, and it gets an outcome verdict.
Check the station
Open the line's board and select the station's name. On the station's Config tab, read Judge: the question it asks, when a replay passes, and the claims. See Judge and alerts.
If Terraform rejects the line, the message names the field.
Judge fields lists each
message. A judge block on the backlog or the completed station is rejected,
because nothing runs there.