Improve a station from its runs

Use this when a station's runs keep failing, get sent back or cost more than they should. You need:

  • To be on the team, or an owner or admin of the workspace. Only they can see how the station's runs turned out.
  • A host serving the workspace with the harness you want to plan with. The chat runs there like any other run. See Install a host.
  • The team's configuration in Terraform, to apply the change. See Manage Spotlight with Terraform.

Read how its runs turned out

Open the line's board and select the name of a work station. On the station's page, open Activity and read Latest runs on this config and Recent runs.

To compare configs, open the team's Insights page, then Stations. Under Config changes, find the station's change and select Impact to compare its runs before and after the change.

Station outcomes says what each part shows and how runs are grouped.

Ask the agent for a change

On the station's Activity tab, under What needs attention, select Ask the agent beside the signal you want to fix. The Agent page opens a new chat with the station already in the message, the same way a shared trace appears, and the signal written out before What should change at this station? If no signal is listed, select Ask the agent beside All signals are healthy instead. To start an ordinary chat, delete the station from the message.

In the agent picker in the composer, choose the harness under Harness. For a model other than the harness's default, choose it under Model. If the harness offers an effort, choose it under Effort the same way.

If the team's Terraform is in a GitHub repository the GitHub App can see, select No repositories below the composer and tick it. The agent then writes its proposal against the files as they are.

Add to the message what the station should do better, such as the runs you saw sent back, and press Enter.

The first message names the station and its line. The agent writes the station's recent runs into its working copy with spotlight history and reads them. It proposes one change at a time, and says which outcome should show that the change worked.

Test the change

The agent tests its change with the test-station-change tool: Spotlight replays the change against the live config on the station's replay set. The agent says in the chat what happens next.

  • To have the search agent refine the change, ask the agent for a search in place of a test. If a search of the station is already running, the change joins it as one candidate, with no refinement of its own.
  • If the change did better, Spotlight opens a config pull request, and your team gets an item in the inbox that links to it. Review it, and merge it to change the station. Otherwise you get an item that says why the change did not hold up. See Answer the inbox.
  • A station takes at most 3 tests a day. Asking again with the same change starts nothing new.
  • If the test cannot start, the agent gives the reason, such as an open config pull request for the station, and shows the change as a diff of the station's block in the line's spotlight_line resource and of its prompt file, prompts/<team>/<line>/<station>.md. Make that change yourself, as below. See Test refusals.

Reply in the chat to question the proposal or ask for another one.

Apply a change by hand

If the test could not start, apply the agent's diff:

Make the proposed change in the team's Terraform: the station's block, its prompt file, or both. See Change a line's stations.

Run terraform apply.

If the line checks its pull requests, CI replays the change on the station's replay set before it merges.

Check whether it helped

Once runs at the station have ended with the new config, open the station's Activity tab again. Latest runs on this config and Recent runs show the runs on the new config. To set the runs before the change against the runs after it, open Stations on the team's Insights page and select Impact on the change under Config changes.

If the change did not help, say so in the same chat and ask for the next change.

On this page