Tasks, runs and the inbox

A task is at one station of a line. Runs work it; people answer it from the inbox. The terms are defined in the glossary.

Tasks

Fields

FieldDescription
TitleUp to 200 characters. Fixed once the task is created.
DescriptionMarkdown, up to 20,000 characters. Optional. Fixed once the task is created.
StationThe task's current station.
AssigneeThe person whose inbox the task's conversations reach, and the one person the task waits on. A task created by a person is assigned to them. A task that a happening opens is assigned to the member that opens.assignBy.email names, else to the line's defaultAssignee, else to nobody. See Questions for the team.
FollowersEvery person who wrote in the task's conversation, as the author or a co-author of a note. See Following.
Created byThe person who created the task, if a person did.
Maintenance patternOn a maintenance task only: the summary of the pattern it was filed to fix, linked to the pattern's page. Hovering shows Fixes a mistake people corrected: <n> corrections on <m> tasks.
AttachmentsFiles given with the task. See Attachments.
Pull requestThe pull request the task opened, or the one it reviews.
MarksThe handles the task is known by outside Spotlight. See GitHub events.
RevisionA counter. It goes up when the task moves to another station and when it is finished.
BranchThe branch a run pushes the task's work to. See Task branches.
BaseThe branch the task starts from and opens its pull requests into. Empty for the default branch of each repository. See Base branch.

A task created on the board is placed at the back of the station it is created at. A task created at a station with a harness starts a run at once. A task created at the backlog does not.

Task states

A task has no stored status. Its state follows from its notes, its run and whether it is finished.

StateConditionBoard label
Awaiting reviewThe latest asked note has no later answered or passed note.Waiting for you, only to a person the task waits for
RunningThe task has a current run, queued or claimed.In progress
FinishedThe task was moved to the completed station, or its run handed it over as done.none
IdleNone of the above.none

A task that is created, moved, answered or reached by a happening, and is then idle at a station with a harness, is assigned a new run at once. A finished task is unfinished again when it moves to a station other than completed, or when a person or a happening adds a note to it.

Task branches

Each task gets a branch name when it is created, as in feat/add-theme-selector-to-the-workspace-menu-b38c669e. The name has three parts:

PartTaken from
TypeThe task title. See Branch types.
SlugThe words of the title, without the type prefix, in lowercase and joined with -. Letters with accents lose the accent. Other characters are removed. The slug is cut at a word to at most 40 characters. A title with no letters or digits gives task.
Short idThe first 8 characters of the task id.

The name does not change when the title changes. A workspace keeps each branch name for one task only. If a new task gets a name that another task in the workspace has, Spotlight does not create the new task. This needs the same type, slug and first 8 characters of the id, so it is very rare. Add the task again: it gets a new id, so its name is different. A GitHub event on that branch finds the task.

Branch types

A title that starts with a Conventional Commits prefix gives its type from that prefix. The prefix is a word, then an optional scope in brackets, then an optional !, then :, as in fix: …, fix(SPO-12): … or feat!: …. The match ignores case.

Prefix wordType
feat, featurefeat
fix, bugfix, hotfixfix
refactor, perfrefactor
test, teststest
docsdocs
chore, build, ci, style, deps, revertchore

Any other title, or a prefix word not in the table, gives its type from its start. The match ignores case and takes whole words only, so "Fixing" does not give fix.

Title starts withType
Fix, Fixes, Fixed, Hotfix, Patch, Resolve, Correct, Repairfix
Refactor, Restructure, Rename, Extract, Simplify, Split, Inline, Tidy, Clean up, Moverefactor
Test, Tests, or Add, Write or Cover, then optional "more", "unit" or "e2e", then "test" or "tests"test
Doc, Docs, Documentdocs
Revert, Bump, Chore, Upgrade, Update dependencies, Update deps, Update lockchore
Anything elsefeat

Base branch

A task starts from its base branch. A task with no base starts from the default branch of each repository of its line. The base is a branch such as release/1.x, or the branch of another task, so that the new task stacks on that task's change.

Set withInput
The add-task API, POST /api/teams/{teamId}/lines/{lineId}/stations/{stationId}/tasksbase. Left out or blank for the default branch of each repository.
The chat tool propose-taskbase. The task that the accepted proposal creates takes it.
The chat tool open-pull-requestbase. The task that tracks the pull request takes it.

The base sets these:

WhatWith a base
The task's branchA run that finds no task branch, in the checkout or on the remote, creates it from the base as the remote has it. When the remote has no such branch, the run fails: see Run failure messages.
The pull requestOpens into the base.
The changeEverything since the task's branch forked from the base. Change stacks and the built-in code review read this change.

A task never works on the default branch itself, and its base is never its own branch. Spotlight refuses to add a task whose base is its own branch, with 409 and A task cannot start from its own branch <branch>. Give it another base branch.

When the pull request of a task merges, Spotlight moves the open pull requests, in that repository, of each task that starts from the merged task's branch. They then go into the merged task's base, or the default branch when it has none. Once the merged task has no open pull request left, each of those tasks takes that base.

When every pull request of a task closes without a merge, the tasks that start from its branch keep it as their base.

What a task's run may push

A task's run pushes only the task's own branch. Spotlight refuses the whole push when one of the refs it updates:

  • Is not a branch, as with a tag.
  • Deletes a branch.
  • Is a branch other than the task's.
  • Replaces commits on the task's branch, as git push --force does, other than where Spotlight allows it.

A push replaces commits when the commit it replaces is not in the history of the pushed commit. Spotlight allows it only when both of these are true:

  • The commit it replaces is the commit Spotlight last pushed for the task in that repository.
  • The branch holds no commit that someone else pushed.

Spotlight checks each push against the run's checkout of the repository in the working copy, at /workspace/<repository>. A push from another clone cannot be checked, so Spotlight takes it as replacing commits. A push that names the same ref twice is refused. Spotlight records the commit it pushed only for the refs that GitHub accepted.

git shows the reason next to each ref, as in:

 ! [remote rejected] main -> main (This task pushes only its own branch, fix/icons-1a2b3c4d, not main. Push the change to fix/icons-1a2b3c4d.)

Every reason is listed under Git pushes. A chat's run has rules of its own: see What a chat may push.

Notes

A task keeps a trail of notes. Each new note is added at the end of the trail, and a note's words never change.

KindWritten when
askedA station puts the task to a person: a review handover, a failed or stopped run, an approval to decide, a request to connect; or a happening stops the run (see Moves).
passedThe task moves to another station or is finished. It closes the open conversation.
answeredA person answers in the inbox or on the run's page, or a happening with a message answers the open conversation.
messageA person sends a message to a running run, a happening arrives that leaves the task where it is, or a different failure arrives while the task awaits review.

Each note has a voice, station, person or world (a happening). A note in the world voice also keeps the integration it came from, such as github or slack, and the inbox shows that integration's logo beside it. Each note has a form: words, setup, resolved, approval, failure or connection.

A conversation runs from an asked note to the next passed note. It is open until that passed note is written.

Handover

A task's run ends with a handover, made with spotlight handover --next (see Agent commands). Keys are compared without regard to case. Files attached with --attach go on the note that the handover writes, also when the ending is handled as review below. A note about a failed or stopped run has no files.

HandoverAllowed whenEffect
a station keyThe station is on the line, is not the current station, has a harness, and the current station passes to it.The task moves to the back of that station with a passed note, its revision goes up, and a run starts there.
reviewAlways.An asked note is written and the task awaits review. An unassigned task is assigned to the person who raised it. With --suggest done, the note suggests closing the task. See Suggested close.
doneThe current station has ends: true.The task is finished at its current station, with a passed note, and its revision goes up.

Any other ending is handled as review, with one of these notes:

EndingNote
No handoverThe run finished without saying where the task should go next.
No outcome reportedThe run ended without reporting an outcome.
A key that is not a station on the lineThe run requested station "<key>". This line has no such station.
The task's current stationThe run requested station "<key>". The task is already there.
A station with no harnessThe run requested station "<key>". Nothing runs there to take up the task.
A station the current one does not pass toThe run requested station "<key>". Work does not pass there from the task's station.
done where the line does not endThe run handed over the task as done. The task is not at the end of its line.
The run failedThe run failed: <message>, with a failure. See Failure codes.
The runner was lost, or the host stopped the sandbox at its run timeout, on the last attemptThe run did not finish after <n> attempts. Spotlight does not try it again., with the failure runner-lost or timed-out.
The run was stoppedA person stopped the run. The task is back with you.
A hook on handover.submitting denied itThe hook's reason, then Note from the run: <note>. See spotlight_hook.

If a reaction became a deferred move while the run worked on the task, every ending other than a station key moves the task to the station of the latest deferred move instead of the ending above. So does a hook stopped for looping while the task has a current run: the run ends as for a person's move, and the passed note carries the hook's failure. See Moves.

Turns without a handover

These rules apply to a run of a task at a station. A chat, a replay and a search have no handover, and their runs end when the agent's turn ends.

A turn has a handover when the agent ran spotlight handover or wrote /workspace/.spotlight/outcome.json during the run. When a turn ends without one, and no person has sent a message, the runner does this:

SituationWhat the runner does
The harness reports background work, and some still runsWaits for it. Claude Code's turns that start when background work ends, such as after a background command or a subagent, are part of the run.
The agent hands over during the waitEnds the run with that handover.
A person sends a message during the waitSends the message to the agent as its next turn. That turn gets a wait and a reminder of its own.
The agent asks for a permission that goes to a person during the waitEnds the run, as for a permission asked during a turn.
The agent stops during the waitEnds the run as failed.
The background work ends, or the harness reports noneSends the agent one reminder.
The wait reaches its limitSends the agent one reminder that names the background work that still runs.
The turn after the reminder ends without a handoverEnds the run, which is handled as "No handover" above.

The wait limit is SPOTLIGHT_BACKGROUND_WAIT, default 30 minutes, counted from the end of the turn. The wait also ends when Claude Code reports no work and no background work, and sends nothing more for 5 seconds. Only Claude Code over ACP version 2 reports background work. With any other harness the runner sends the reminder at once. See ACP versions.

The reminder reads:

Your turn ended without a handover. The run ends when your next turn ends. Hand over with `spotlight handover`. To ask a person, hand over to `review`.

When background work still runs at the wait limit, it reads:

Your turn ended without a handover. These background tasks still run: <tasks>. The run ends when your next turn ends, and these tasks stop with it. Wait for them in this turn, stop them, or hand over with `spotlight handover`. To ask a person, hand over to `review`.

Background work stops with the sandbox: when the run ends, and when the runner stops and the run is tried again. The run's steps show the work that stopped, and the next run or attempt of the task starts with the line These background tasks stopped when your last sandbox stopped: <tasks>. Run them again if you still need them.

A run's steps show the wait as "Waited for", a turn that the agent started by itself as "Continued on its own", the reminder as "Reminded the agent to hand over", background work that stopped as "Stopped", and each Claude Code subagent as one "Delegated" step with what the subagent was asked, what it did, and its answer.

While the run is in progress, the end of its conversation shows what the agent does:

The harness reportsShown
A wait for a permission<Station> needs a permission…
No turn in progress, and background work that still runs<Station> waits for background work…
Anything else<Station> is working…

Below it, each piece of background work that still runs is listed with its command or description.

Moves

MoverHowPlacedEffect
PersonDragging on the board, the selection bar's "Move to", or the task's "Station" property. Only from the backlog to a work station, from a work station to the backlog, from anywhere to the completed station, or within one station. Any other move is denied with 422 and Task cannot move from <from> to <to>. <reason>, where <reason> is A completed task stays completed. or Only runs move a task between work stations.Below the task it is dropped under (afterTaskId), or at the top.A passed note Moved to <Station>. is written.
ReactionA happening that a line's reaction names, when the task has no current run. See spotlight_line.At the top of the station.A passed note in the world voice, carrying the happening's message, or else its summary.
Deferred moveThe run that worked on the task when a reaction became a deferred move ends other than by passing the task on.At the top of the station.A passed note in the station voice, Moved to <Station> when the run ended. An event arrived while the run was in progress., followed by the run's note if it gave one; for a failure or a lost runner, that ending's note with its failure; for a missing outcome, that ending's note; for a console stop, A person stopped the run.

A move to another station:

  • raises the task's revision;
  • ends the task's run, for a person's move: a queued run is cancelled, a claimed run is told to stop, and a suspended run is completed;
  • finishes the task if the station is completed, and unfinishes it otherwise;
  • starts a run if the task is idle at a station with a harness.

A person who moves an unassigned task from the backlog to a work station becomes its assignee. A person's move names the task's current revision; a stale revision fails with 409. A move to the station the task is already at only reorders it.

When a happening finds a task, the line decides one of these outcomes:

OutcomeConditionEffect
nothingThe task is at the completed station, or none of the other outcomes applies.None.
movesA reaction for the happening, from this station or from any, leads to another station, and the task has no current run, its current run waits on a person's answer to a question (a pending approval or connection ask does not count), or that station is the completed station.The task moves there. A move during a run ends the run as for a person's move, and the run's later handover is ignored. An open question or approval closes, and earlier deferred moves are dropped.
deferred moveAs for moves, but the task has a current run, queued, claimed or suspended, that does not wait on a person's answer to a question, and the station is not the completed station.A message note with the happening's message, or else its summary, and the station it moves to. While the move waits, the inbox shows Arrived during a run. If the run does not pass the task on, the task moves to <Station> when the run ends. under the note. The run gets the note with This arrived while a run was in progress on the task. If the run does not pass the task on, the task moves to <Station> when the run ends. before it, and keeps the task. A later passed note, or a later asked note other than an approval, drops deferred moves; a later stays outcome does not.
answersNo reaction leads to another station, the task awaits review, and the happening carries a message (answers: true).An answered note; the run that asked carries on, or else a run starts at the same station.
staysA reaction applies and leads to the task's current station, and the happening does not answer.A message note.

Runs

A run is one execution of a harness, for a task at a station or for a chat. A replay run, which runs a past task run again under a candidate config, has no task and is described in Replays. A search's agent run, which proposes candidates, has no task either; see The search's agent run. Neither shows in the app.

Run states

StateMeaningFinal
queuedWaiting for a runner.no
claimedA runner has a 60-second lease on it, and the runner renews the lease.no
suspendedThe run asked a person and waits for the answer. No runner has a lease on it; the task's sandbox stays up for the idle grace. An answer puts it back in the queue.no
completedEnded without a failure. A stopped run ends here.yes
failedEnded with a failure code. A run that used all its attempts ends here.yes
cancelledEnded while it was queued.yes
supersededFailed after its task had moved on.yes

On the Runs list and on a task's "Activity", a queued run reads "Queued", a cancelled run "Cancelled", a superseded run "Superseded", and a claimed run shows that it is in progress. A run reads "Waiting for you" while it waits for you. On the Runs list, that label links to the run's inbox item. On a task's "Activity", a run whose asked note has no later answered or passed note is led by a row that reads "Waiting for you" when it waits for you. Once a later answered or passed note is written, the row reads "Answered" for everyone. The row links to the inbox item. The Runs list's "Waiting for you" view shows only the runs that wait for you; with none, it reads Nothing is waiting for you. Switch to All to see every run.

The Run page of a run that waits for you shows "Waiting for you" with "Answer in the inbox", or "Open in the inbox" when a message does not answer the open question, as for an approval. This is a suspended run, or a run that ended while its question is still open. An approval can also be decided on the Run page itself, on the same card as in the inbox: copy the call, edit a tool call's inputs, "Approve", or "Dismiss", which first asks for a reason to tell the agent, Tell the agent why (optional). See Approvals.

Waiting for you

"Waiting for you" means that you owe the answer. Spotlight decides it for each person who looks. A task or a run waits for you when all of these are true:

  • It waits for a person: the task has an open question. For a run, the run must also be the task's current run, suspended with nothing working on it, or the run that asked the question. An older suspended run does not wait.
  • You act on the task's team.
  • You are the task's assignee, the open question asks you by name (an approval or a connection ask for you), or the task has no assignee and you are a member of its team.

This is the same rule as for the inbox. When a task is assigned to a person, only that person sees "Waiting for you" for it on the board, on its runs, on the Run page and in the Runs list's "Waiting for you" view, and only to that person does the board link the task to its inbox item. The exception is an approval or a connection ask that names another person: then that person sees it too. A task with no assignee waits for every member of its team, and not for an owner or admin of the workspace who is not a member.

In the API, waitingForYou gives this rule for the caller: on a task, on a run, and on the latestRun of the run notes. A task's awaitingReview names the conversation of its open question, and a run's review the conversation of the question the run asked, for everyone who can see the task.

yourMessage tells the caller what a message from them does: on a run and on the latestRun of the run notes, a message to that run; on a task, a message to the task itself, which puts nothing on hold.

stoppableByYou tells the caller whether they may stop the run: on a run, on the latestRun of the run notes, and on an inbox run or item, for the run that works on it. It is true when the run works at a station of its task and the caller acts on the team. The web app offers Stop while the run is in progress and stoppableByYou is true.

ValueA message from you
answerAnswers the task's open question. The message goes to the task's current run, to a run at the task's station while nothing runs, or to the task itself while nothing runs, and the question waits for you, or you drive the task's hold.
drivesDrives the next turn of the task's hold: a person holds the task, and you act on the team. The agent reads the message in the turn that works, or a new turn starts with it.
holdsPuts the task on hold and assigns it to you, and stops a run that works. The message goes to a run at the task's station, the station has a harness, the task is not finished and not on hold, and no question waits for a message: nothing is asked, or an approval waits (an approval takes a decision, not a message).
reopensSends the finished task back to its station, and a run starts there if the station has a harness. The task finished at a station that is not the completed station, and the message goes to that station.
waits-for-chatGoes to the agent chat that holds the task, and the chat takes it up at once. The station's agent reads it after the task is handed back to the line.
messageIs added as a message: the message goes to the task itself while it runs or while nothing is asked, or to an earlier run while a question waits on the task's current run, or the task's station has no harness, or the task finished at the completed station.
awaits-anotherIs refused, because the question waits for another person's answer.
moved-onIs refused, because the task has left the station of the run.
not-actingIs refused, because you do not act on the team.
not-on-teamIs refused, because it would put the task on hold, and only a member of the team can be assigned.

Transitions

FromToWhen
queuedA task or chat is dispatched: it gets a new run.
queuedclaimedA runner that meets the run's placement claims it, and no other run of the same task or chat is claimed. When the task or chat has a ready sandbox with no run in it, only that sandbox's host claims the run, into that sandbox. See Sandbox lifetime.
queuedfailedThe station enables what cannot be enabled: a catalog item that does not exist or that the plan does not include, or a harness profile the team does not have (refused). A push pool could not provision a runner (unprovisioned).
queuedcancelledThe task moved to another station or was deleted. Or the run's replay or search stopped it, its replay reached its ceiling, or no runner claimed a search's run in time.
claimedqueuedThe lease expired, or the runner stopped the run at its run timeout (timed-out), no stop was requested, and the run has had fewer than 3 attempts. Or its run.starting hooks could not be called, and the run is requeued to wait.
claimedsuspendedThe turn ended cleanly with the task put to a person. The run gives up its lease and its place in the sandbox at once, and its journal reads Waiting for a person. Only a task's run is suspended; a chat run completes.
claimedqueuedThe turn ended with the task put to a person, and messages the run has not read came in during the turn. The run is queued at once as its next attempt, and its journal reads Messages came in during the turn. The run starts again to read them.
suspendedqueuedThe person answers, in the inbox, in the task's Slack thread or on the run's page. The run is queued as its next attempt and resumes the same session: in the task's sandbox while it is up, else in a new sandbox that restores the stored working copy.
suspendedcompletedThe task is moved or deleted, or the run is stopped.
claimedcompletedThe runner reports an outcome without a failure, or the run is stopped, or its lease expires after it was asked to stop.
claimedfailedThe harness failed (exited), or the run failed before its harness could work (unprepared). A hook on run.starting denied it (refused). Its hooks could not be called after the last requeue (hooks-unanswered). Its lease expired on the last attempt, and no stop was requested (runner-lost). Its runner stopped it at its run timeout on the last attempt, and no stop was requested (timed-out).
failedsupersededThe run's task has moved on.

A message to a run at the station where its task is idle, when that station has a harness, puts the task on hold and starts a new run there that resumes the station's session. A message to a run whose task has left its station fails with 409. yourMessage says what a message from you does, and which messages are refused. Only a claimed or suspended run can be stopped. Anybody who acts on the team may stop a run, and stoppableByYou says so. The web app offers Stop only while a run is claimed. Attempts a run spent suspended do not count in the 3. See Steer or stop a run.

Run endings

An ended run has one ending. Insights, a station's outcomes, spotlight history and the API use this list.

EndingLabelMeaning
completedCompletedEnded without a failure, and no stop was requested.
failedFailedEnded with a failure code, and no other ending applies.
stoppedStoppedEnded without a failure after it was asked to stop.
exhaustedExhaustedIts runner was lost, or its host stopped it at its run timeout, on its last attempt. Or its runner was lost after the run asked a person. Spotlight does not try it again.
cancelledCancelledEnded while it was queued, because its task moved on, its replay or search stopped it, its replay reached its ceiling, or no runner claimed a search's run in time.
supersededSupersededFailed after its task had moved on.

Counts of runs that ran leave out cancelled runs.

Run page composer

WhenPlaceholderAccessible name
A message from you answers the question the run waits on: it waits for you, or you drive the task's hold, and the question is not an approval.Answer the question to continue the run…Answer <Station>
A message from you drives the next turn of the task's hold (yourMessage is drives).Tell the agent what to do next…Message <Station>
A message from you sends the finished task back to its station (yourMessage is reopens).Say what to change…Send it back to <Station>
An agent chat holds the task (yourMessage is waits-for-chat).Your message goes to the agent chat that holds the task…Message <Station>
A message from you puts the task on hold (yourMessage is holds).Your message puts the task on hold…, or Your message stops the run and puts the task on hold… while the run worksMessage <Station>
Otherwise.Write a message…Message <Station>

The "+" button, "Attach files", adds files, and so does dropping or pasting them on the composer. Images show above the text; other files show by name in the text. The composer shows the station's harness, model and effort and the line's repositories, and none of them can be changed there. While a runner has a lease on the run and the composer is empty, "Send" becomes "Stop".

Once the task has left the run's station, the composer talks to the newest run at the task's new station, and its label names that station. If no run is there yet, the composer is closed and reads The task has moved to <Station>. Messages here reach no one. Until the page knows the task's new station, it reads The task has moved on from this station. Messages here reach no one.

Where a message from you would be refused, the composer is closed and says why:

WhenText
The run waits for another person's answer.It waits for another person to answer.
You do not act on the team.You do not act on the tasks of this team, so you cannot message it.
The message would put the task on hold, and you are not a member of the team.Your message would put the task on hold, and a hold assigns the task to you. Only members of the team can do that.

A run that did not start

When a task reaches a station whose harness Spotlight does not know, or cannot prepare, no run starts. The task keeps the station and the harness. Its run page and its inbox item show Spotlight cannot start <Harness> at <Station>. Change the station’s agent, then try again. above the composer, with Try again. The composer reads Message <Station>.

Try again, and every message to the task, try to start the run again. A message to the task puts nothing on hold. Anybody who acts on the team can send one. While the task has an open question, the message answers it, as a message to its current run does. On a task with no assignee, that answer assigns the task to you, so only a member of the team can send it. A message is kept at the station even when the run still does not start. While it does not start, the line reads Spotlight still cannot start …. When the run starts, the line goes away.

The API sends a message to the task's current station with POST /api/teams/{teamId}/tasks/{taskId}/messages, and tries again with POST /api/teams/{teamId}/tasks/{taskId}/start. The task's runNotStarted holds the harness, and is null while nothing is wrong. Try again answers 409 when the task does not wait for its run to start, or while it waits on a person or is on hold. When the station no longer has a harness, Try again removes the line and starts no run.

Failure codes

CodeCauseRetried
exitedThe harness did not start (start agent), refused a session option, or failed once it had an open session.no
unpreparedThe run failed before its harness could work: its working copy, checkouts, attachments, skills or harness files could not be made ready, its host could not start a sandbox with the line's image and its egress, or the harness started but could not resume or open a session.no
refusedThe run could not be given what its station names, or a hook denied its start.no
unprovisionedA push pool did not provision a runner for it.no
hooks-unansweredIts run.starting hooks could not be called.yes
runner-lostIts runner stopped renewing the lease.yes
timed-outIts runner stopped it for running past the host's SPOTLIGHT_RUN_TIMEOUT.yes
cancelledIt ended while it was queued.no
supersededIts task had moved on.no

A run whose run.starting hooks could not be called is requeued and tried again, 6 attempts in all, waiting 5 seconds and doubling to at most 2 minutes. A run whose runner is lost, or that timed out, is queued again at once, 3 attempts in all, counted together.

A failed run puts the task to a person with a failure of source run and the run's code. A failing hook reports a failure of source hook:<key>; see spotlight_hook for its codes. A failure with the same source and code as one already open on the task raises that failure's count instead of asking again. runner-lost and timed-out count as one repeating failure: the count carries on across both, and the failure is named for the latest code. Every other code, and each hook's failures, repeat only with themselves.

Run failure messages

A failed run's note reads The run failed: <message>. Where a run is refused for more than one reason, the reasons are joined with ; .

MessageCause
Runner image <image> can't be pulled. Error: <error>The host could not pull the line's image and has no copy of it. Unreadable registry credentials fail the pull even when the host has a copy, unless the image is named by digest or the copy has no registry digest. Code unprepared.
Runner image <image> is unavailable. <reason>The host does not support the image. The reasons are those the Runners page shows for the image. Code unprepared.
Runner image <digest> no longer has the <harness> harness.The image changed and lost the station's harness. Code unprepared.
The sandbox's egress didn't start. Error: <error>See Egress start failures. Code unprepared.
The runner couldn't prepare the run. Error: prepare: git clone <path>: <error>: <output>A repository could not be cloned. Code unprepared.
The runner couldn't prepare the run. Error: prepare: preparing <path> did not finish within 10m0sThe checkouts took longer than their time limit. Code unprepared.
The runner couldn't prepare the run. Error: clear an earlier run's outcome: <error>.spotlight/outcome.json from an earlier run could not be removed. Code unprepared.
The runner couldn't prepare the run. Error: fetch attachment <id>: <error>An attachment could not be written into the working copy. Code unprepared.
The runner couldn't prepare the run. Error: hand over workspace: <error>/workspace could not be given to the agent user. Code unprepared.
The runner couldn't prepare the run. Error: Secret <NAME> could not be put in the sandbox: <reason>The runner could not put a secret that the harness profile's env names in the sandbox. Code unprepared. See Environment variables.
The runner couldn't prepare the run. Error: Spotlight sent a value for <VARIABLE>, which the run did not ask forThe runner got a value for a variable that is not in the run's env. Code unprepared.
The runner couldn't prepare the run. Error: reveal the sandbox env: <error>The runner could not get the values of the secrets that the harness profile's env names from Spotlight. Code unprepared.
The runner couldn't start the agent. Error: start agent: <error>The harness did not start. Code exited.
The runner couldn't start the agent. Error: resume the session: <error>The harness could not reopen the task's earlier conversation. Code unprepared.
The runner couldn't start the agent. Error: open a session: <error>The harness could not open a new conversation. Code unprepared.
harness_profile_unknown: Harness profile <profile> is not in this team. Station: <Station>The station's profile names no profile of the team. Code refused.
catalog_item_unknown: <reason>The station names a catalog item that does not exist. Code refused.
catalog_item_wrong_kind: <reason>The station names a catalog tool as a skill, or a skill as a tool. Code refused.
not_entitled: <reason>The workspace's plan does not include a catalog item the station enables. Code refused.
entitlement_expired: <reason>The plan that included a catalog item the station enables has expired. Code refused.
secret_awaiting_value: Secret <NAME> has no value. Station: <station>The station's harness profile injects a secret, or puts one in the sandbox, that awaits a value. Code refused. See Value.
secret_sandbox_not_allowed: Secret <NAME> does not allow its value in a sandbox. Set sandbox = "env" on the secret. Station: <station>The station's harness profile puts a secret in the sandbox with env, but the secret has sandbox = "stand-in". Code refused. See Sandbox.
No runner was provisioned after <n> attempts. Last failure: <failure>No push pool started a runner. See Provision call failures. Code unprovisioned.
Hooks did not answer after <n> tries. Last error: <reason>Its run.starting hooks went unanswered on every attempt. Code hooks-unanswered.

A run whose runner is lost, or that times out, on its last attempt is noted The run did not finish after <n> attempts. Spotlight does not try it again., with the failure runner-lost or timed-out, as its last attempt ended. The run's own outcome reads No runner finished the run after <n> attempts., or Sandbox stopped at the host's time limit. No runner finished the run after <n> attempts. for a timeout, where <n> leaves out the attempts that were suspended. See Inside a sandbox for the phase each runner message comes from.

Config

When a task's run is queued at a station with a harness, it records the station's config at that time. A replay run records its candidate's config. A chat's run records none.

PartContains
PromptThe station's prompt.
Harness, model, effortAs the run was given them.
ProfileThe harness profile's key, rules, MCP servers and native settings. Each MCP server's environment values are kept as SHA-256 hashes.
ImageThe line's runner image.
RepositoriesEach repository of the line, with its setup command.
SkillsEach team and catalog skill enabled, with a SHA-256 of its files. Built-in skills are left out.
ToolsThe tools the station enables, with the tools of its skills.
Decisions, memoriesWhether the station asks its agent to record decisions and to propose memories.
JudgeThe SHA-256 of the judge's claims and pass threshold, when the station has a judge block. The station's alerts are not part of the config.

The run's config fingerprint is a SHA-256 of these parts. The task's title, description and marks are not part of it.

A station's Config tab shows its live config, and its Activity tab the runs on it; see Station outcomes. GET /api/teams/{teamId}/runs/{runId}/config returns a run's config and its fingerprint, and, when the station's previous run with a recorded config ran another config, that run under changedSince, with the changes since it. Its toolsOnMarks lists the tools the run also had because its task had a mark that they are enabled on. They are not part of the config.

The web app words each change as one phrase in what a search candidate changes:

ChangePhrase
PromptPrompt changed, Prompt added, Prompt removed
Harness, model, effort, image, profile<Part> <was> → <now>, <Part> set to <now>, <Part> <was> removed
Profile settingsProfile <key> settings changed
RepositoryRepository <name> added, Repository <name> removed, Repository <name> setup changed
SkillSkill <key> added, Skill <key> removed, Skill <key> changed
ToolTool <name> added, Tool <name> removed
Decisions, memoriesDecisions on, Decisions off, Memories on, Memories off
JudgeJudge added, Judge removed, Judge claims changed

For example: Effort high → xhigh.

Starting point

Once its checkouts are ready, a task's run records where it started: the working copy archive it restored, if any, and the commit each repository's checkout is at. A later attempt of the same run does not replace what the first attempt recorded. If the starting point cannot be recorded, the run carries on and its start step reads Where the run started was not recorded: <error>. A run with no starting point cannot be replayed. The archive is kept for 30 days after the run started; see Working copy archives.

Spend

Once a run has ended and Spotlight has recorded the usage of its journal, it records what the run spent. GET /api/teams/{teamId}/runs/{runId}/notes returns it under spend:

FieldContains
knowntrue when Spotlight read what the run used.
totalCostWhat the run cost: what its harness cost, and what its metered tool calls cost.
meteredCostWhat the run's metered tool calls cost, such as the model calls of a hook.
currencyOf totalCost, or of meteredCost when totalCost is null.
inputTokensFresh input tokens.
outputTokensOutput tokens.
cacheReadTokensInput tokens read from the prompt cache.
cacheWriteTokensInput tokens written to the prompt cache.

Each count is added up over every turn of the attempts the run kept. A count or cost the harness did not report is unknown, not zero, and is null.

When Spotlight cannot read what the run used, the usage of the whole run is unknown. spend is then known: false and a reason, with no counts and no costs:

reasonCause
journal-unreadableThe run's journal could not be read.
usage-entry-unreadableAn entry that counts toward usage could not be read: a turn's tokens, a cost the harness reported, or a metered tool call.
recording-failedRecording the usage failed 5 times.

Spotlight does not leave out an entry it cannot read, and it does not count the rest of the run as all it used.

A metered tool call is a call to an action with usage. meteredCost is null when no tool call is metered, when any metered tool call is unpriced, or when the calls cost in more than one currency. It is set even when totalCost is null. With metered tool calls, totalCost is what the harness cost plus meteredCost, only when both are known and in the same currency. Without them, totalCost is what the harness cost. totalCost is null when the harness did not price its turns.

The task trace shows a run's cost as "Cost" in the run's details, as $1.87, or to four decimals under $0.01. It covers every attempt of the run. It shows what the metered tool calls cost as "Tool models", when it is more than zero, also when the run has no "Cost". When the run's usage is unknown, the run's row shows ∑? in place of the cost, and its details show "Cost" as Unknown. The Insights "Cost" tab adds the runs' costs up and gives each station's "Cache read", "Cache write" and "Input" tokens under "Read from cache", where a count the harness did not report reads not reported; see Cost. There, a count under 1,000 is shown whole, a larger one in thousands (3.1k) or millions (2.4M) to one decimal. In the task trace, a span that reports its own token use shows "Tokens", its input and output tokens together.

What each harness reports:

HarnessReports
claude-codeAll four counts.
codexInput, output and cache read, from the last request of each turn only, so its counts are lower than what the turn used. Cache write is not reported.
cursorNot confirmed.

People's verdict

People's verdict on a run comes from what people do with the run. Spotlight does not ask anyone for it. The same verdict gives a run's resolution, the outcome verdict of a config change, and a run's outcome in replays. A run's people's verdict comes from its deciding action when that is Accepted (on a run that ended Completed or Stopped), Sent back or Held as wrong. Otherwise it comes from its task's pull requests:

SourcePassesFails
Its deciding actionAccepted, when the run ended Completed or StoppedSent back or Held as wrong, however the run ended
Its task's pull requestsAll merged–

Accepting a run that failed, ran out, was cancelled or was superseded gives no verdict: such a run left no work to pass.

A merge passes only the station's last completed run on the task. A run that did not complete, and a run that a later completed run of the same station on the task followed, get no verdict from the pull request. A pull request closed without a merge gives no verdict: it can close for a reason that says nothing about the run, such as a feature that nobody wants any more, or another pull request that took its place.

Approving or dismissing an approval is never the human action of a run.

Station page

A station's page, …/lines/<lineId>/stations/<stationId>, shows the station's name and description. A backlog shows only Tasks wait here until someone starts them. Nothing runs at a backlog. It has no harness and no prompt., and a completed station only Tasks land here when the line is done with them. Nothing runs here. With no station at the address, the page reads "Station not found" and This line has no station at that address.

A work station's page has these tabs:

TabAddressShows
ConfigThe page's own addressThe station's config, read-only. See Config tab.
Activity…/activityHow the station's runs went. See Activity tab.

Config tab

The Config tab shows "Prompt", the station's prompt, or No prompt.; then "Judge" and, when the station has alerts, "Alert rules" (see Judge and alerts). Beside them, or above them on a narrow screen:

PartShows
Live config"Since": the day the first run on the live config ended, or No run ended yet. Hovering shows Config <fingerprint>, the first 8 characters. "Change": "Pull request", which opens the config pull request a search opened for that config, when there is one. Before any run has used a config, No run has used a config yet.; when the station's runs cannot be read, Sorry, the station’s runs couldn’t be loaded.
Agent"Harness", "Model" and, when the station sets one, "Effort". With no harness, No agent. Please pick a harness in Terraform.
Line"Name"; "Repositories", each of which opens its repository, or "None"; and "Skills", or "None".
Automatic improvementThe station's search policy, when it has one. See Automatic improvement card.

The live config is the config of the newest group of runs with a recorded config, whether its runs started or not; see Station outcomes.

Activity tab

The Activity tab shows the station's runs on its live config, or in a period. The picker beside the station's name chooses "Live config", the default, or an Insights period, kept in the address as ?period=<period>.

PartShows
Latest runs on this configOn "Live config". The tiles of Station outcomes. Before a run has run a config, No run on a config yet.
Runs in the <period>In a period, as in Runs in the past 30 days. The tiles "Runs", "Outcomes", "Cost" and "Median run" of the Insights Stations tab, for the station alone, each with its change against the period before. With no runs in the period, "No runs in this period" and The station’s runs show here once it runs in this period.
What needs attentionSee below. On "Live config", it compares the past 30 days.
Recent runsSee Station outcomes. In a period, it still shows the live config, marked "Live config".

"What needs attention" lists the station's signals that declined over the period, or that fall below team benchmarks, as under "Stations worth improving" on Insights. Hovering the title shows Signals that have declined over the <period> or fall below team benchmarks. With no such signal, it reads "All signals are healthy" and No issues in the past 30 days. "Ask the agent" beside a signal opens the Agent page with the station attached to a new chat and the message <signal> <now> (was <before>, all stations <all>). What should change at this station? written, leaving out a comparison it lacks. Beside "All signals are healthy", "Ask the agent" opens it with the station attached.

Under it, "Why runs failed" lists the station's failed runs on the live config, or in the period, by reason: the reason or No reason given, with how many runs, most first. It then lists the station's task failures by source (run or hook:<key>) and code, as <source> · <code>, with how many times, and · <n> in a row when one task raised it more than once in a row. With both, they are headed "Run failures" and "Task failures". A reason with one run opens that run; another opens the Traces tab at the station's failed runs. A task failure that one task raised opens the Traces tab at that task. A hook the loop guard stopped shows only among task failures. With no failures, No runs failed.

Judge and alerts

A work station's Config tab shows its judge under "Judge" and its alerts under "Alert rules", read-only. "Alert rules" shows only when the station has alerts.

"Judge" always shows, because the judge scores every replay of the station. It reads The judge scores each replay against the change people accepted for its task. and lists:

RowShows
AsksDoes the candidate’s change do what the accepted change did?, the question the judge asks of every replay run.
Passes whenOnly with a judge block. The question and every claim are met, or The question and at least <share> of claims are met.

With a judge block, the station's claims follow under "Claims".

"Alert rules" lists the alerts in the order written, one row each, under the headings "Measure", "Condition" and "Window". "Measure" is the measure's label. "Condition" reads rises <change> or more for risesBy, falls <change> or more for fallsBy, goes above <threshold> for above and drops below <threshold> for below. "Window" is how many runs the alert compares: over <over> runs. With over set to 1, it reads from one run to the next for risesBy and fallsBy, and in a single run for above and below. See Station alerts for when an alert fires.

MeasureLabel
sent_back_rateSent-back rate
accepted_rateAccepted rate
checks_failed_rateChecks-failed rate
failed_rateFailed rate
merged_rateMerged rate
cost_per_runCost per run

Each alert also has a one-line description: the accessible name of its row, and the title of the chart on its inbox item. It reads Alerts when the <measure>, with the measure's label in lower case, then:

ConditionReads
risesByrises <change> or more over <over> runs
fallsByfalls <change> or more over <over> runs
abovegoes above <threshold> over <over> runs
belowdrops below <threshold> over <over> runs

In "Condition" and in the description, a change in a rate is in points, as 20 points or 1 point, and a threshold of a rate is a percentage. Cost is in the currency of the station's search policy, or else of its line's, on the Config tab, and in the currency of the station's runs on the inbox item. With no currency, cost is a number, to two decimals, or four under 0.01. With over set to 1, the description ends with from one run to the next or in a single run, as in "Window". For example: Alerts when the sent-back rate rises 20 points or more over 20 runs.

Run network

A run on a push pool that names an egress records what its network did. The task trace shows it in the run's details, under the verdicts:

PartShows
"Egress""Enforcement": Enforced, Not enforced or Not checked. Hovering over Enforced or Not enforced explains it, starting The runner reported that. The state is what the runner in the sandbox reported, and a sandbox not under the runner's control can report Enforced. See Enforcement. "Connections": how many connections egress recorded.
"Destinations"One row for each destination and outcome: the host, with :<port> when the port is not 443, and the bytes in and out together, or Blocked or Failed. Blocked and failed rows come first, then the rows with the most bytes. Hovering over a row shows the host, Passthrough, Injected, Blocked or Failed, the number of connections, and <bytes> out · <bytes> in.
OutcomeShown asMeaning
passthroughPassthroughEgress sent the traffic on and did not decrypt it.
injectedInjectedEgress decrypted the traffic, because a secret of the run is bound to the host, and injected the secret.
blockedBlockedEgress stopped the traffic.
failedFailedEgress could not connect to the host.

A run with no egress check and no connections, such as a run on a host, shows neither part.

GET /api/teams/{teamId}/runs/{runId}/network
FieldContains
runId, attemptThe run, and its current attempt, which the answer is for.
egressEnforcementenforced, not-enforced, or null when the runner did not check.
connectionsThe connections the shared egress recorded for the attempt, each with host, port, bytesOut, bytesIn, ms, outcome, status, reason, error and at. See Connection records. error is blocked, failed, auth-failed (the host answered an injected request with 401 or 403), server-error (it answered with 500 or more) or null.

Connections in the trace

A connection with an error is also a row in the task trace, at the time it started. The row is under the step or span that was open at that time, else under the phase, else under the run. A connection has an error when egress blocked it, could not open it, or injected a secret into a request that the host answered with 401, 403 or a status of 500 or more.

The row shows the host in red, with :<port> when the port is not 443. The same failure to the same host under the same row shows once, with ×<n>. The row starts at the first time and ends at the end of the last.

Selecting the row shows:

PropertyShows
"Error"Blocked, Failed, Auth failed (401 or 403) or Server error (500 or more).
"Status"The status the host answered with, on an injected request.
"Reason"Not on the allow-list, Private address, No bound secret, Unknown host, Timed out, TLS failed or No connection.
"Count"How many times the same error occurred, when more than once.
"Cause"The cause of the error, in one or two sentences. For Auth failed: the secret egress injected can be wrong, expired or without the necessary permission.

When the runner reported that egress was not enforced, the run's row shows a warning mark after its name. Hovering over the mark shows Egress not enforced and explains it.

Connection rows do not count as "Errors". The trace reads at most 500 such connections for each run. The run's details still list all its connections, and show an auth failure or a server error in red, as Auth failed or Server error.

Connection records are kept for 30 days. A record's at is the time egress gave, or the time Spotlight got the record when the two are far apart; see Connection records. A run that the caller may not see is answered 404.

Station outcomes

Spotlight records how each task run at a work station turned out, as runs end and as people act. A run that ended before recording began has no outcome. Replay runs have none; see Replays.

Only people on the team, the workspace's owners and admins, and workspace tokens with the read scope can read a station's outcomes. Anyone else is answered 404. See Team outcomes.

The outcomes of the station's latest 50 ended runs, in the order they started, are shown in these places:

WhereShows
"Latest runs on this config", on the station's Activity tabTiles for "Runs", "Outcomes", "Cost" and "Median run", over the live config: the newest config that ran, in its newest group and in earlier groups of it that only groups that never started separate from it. The newest group of another config that ran ends it and is not counted. "Outcomes" reads <share> accepted, with a bar of each resolution's share; hovering it shows each resolution as <n> of <runs> runs, and the merged tasks as <n> tasks. "Runs" draws the resolutions of the newest group with a recorded config as a strip, oldest first; "Cost" and "Median run" draw that group's costs and durations run by run, when they vary. Before a run has run a recorded config, No run on a config yet. When the outcomes cannot be read, the tiles are not shown.
"Recent runs", on the station's Activity tabThe latest 8 runs of the newest group with a recorded config, whether its runs started or not, one row each. With none, "No runs on this config yet" and Runs on earlier configs are under All runs., or, when the station has no runs, "No runs yet" and Latest runs show here once tasks reach this station. To a person who may not read the outcomes, Only team members can see this station's runs. "All runs" opens the Insights Traces tab at the station.
"Live config", on the station's Config tabThe newest group with a recorded config, whether its runs started or not, and the day its first run ended.

Runs are grouped by config, in the order they started: each group contains runs that started one after another with the same fingerprint. A config that returns after another starts a new group. Runs before any recorded config are in a group of their own.

A run's outcome:

PartValuesMeaning
EndingCompleted, Failed, Stopped, Exhausted, Cancelled, SupersededHow the run ended. See Run endings.
FailureA failure codeShown beside an ending that has one: Failed, Exhausted, Cancelled or Superseded.
Run number1, 2, …1 plus the number of the task's earlier runs at the station that completed or failed. Runs from every stay at the station count, so a failed run and the next run there are runs 1 and 2.
ChecksChecks passed, Checks failed, Checks skippedThe station's check on the run's change. Each repository counts the check of its latest change stack. Checks failed when one repository failed, else Checks passed when one passed, else Checks skipped. See Checks.
Human actionStarted, Parked, Accepted, Answered, Sent back, Held as wrongThe human action: the run's deciding action, what a person did with the task in answer to the run or after it that decides the run, or else their first answer to it. See the table below.
Pull requestOpen, All merged, Not all mergedThe state of the task's pull requests: Open while one is open, All merged when all merged, else Not all merged.
Duration, CostHow long the run took and what it cost, from its journal.
Human actionThe person
StartedMoved the task to a work station.
ParkedMoved the task to the backlog.
AcceptedMoved the task to the completed station.
AnsweredAnswered the conversation without a deciding action.
Sent backSent a message to a run of the task while it had no current run, other than an answer to an open question that asks for no approval.
Held as wrongPut the task on hold, in a hold that later ended with the reason The line got it wrong, whoever ended it. Every hold has that reason until you change it when you resume. So moving a task that is on hold by hand counts as Held as wrong, not as the move. It counts from when the hold started. A hold resumed with I want to try something is no human action.

Approving or dismissing an approval is never the human action of a run: it does not decide the run's resolution. Started, Parked, Accepted, Sent back and Held as wrong decide the run. Answered shows only until one of them does, even one received later. Spotlight keeps the first answer as well, so a run that gets an answer and is then started still shows as Asked a person in replays. When two actions that decide the run come at the same moment, the first of Held as wrong, Sent back, Accepted, Parked and Started counts.

Run resolution

Each run that ran has one resolution. The first rule that applies gives it:

  1. Sent back: people's verdict fails the run.
  2. Accepted: people's verdict passes the run from its human action, Accepted.
  3. Failed: the run ended Failed. A person accepting a failed run does not change this.
  4. Other: the run ended Stopped, Exhausted or Superseded.
  5. Moved on: the run passed its task to another station, or its human action was Started.
  6. Accepted: people's verdict passes the run because all of its task's pull requests merged.
  7. Other: none of the above, for example when nobody has decided the run yet.

So a run is Sent back exactly when people's verdict fails it, and Accepted only when people's verdict passes it.

A tally counts:

FigureCounts
RunsThe group's runs that ran. The other figures, except Cancelled, count only these.
FailedRuns that ended Failed.
StoppedRuns that ended Stopped.
Checks passed, Checks failedRuns whose Checks outcome is Checks passed or Checks failed. See Station outcomes.
AcceptedRuns whose resolution is Accepted.
Sent backRuns whose resolution is Sent back.
ResolutionsRuns by resolution, each with its share of Runs and, on the Insights Stations tab, its change against the period before. The resolutions add up to Runs.
Passed onRuns that passed their task to another station.
MergedTasks the group's runs worked whose pull requests all merged.
CancelledRuns that ended without running.
CostThe runs' cost together, when all are in one currency.
Median, p90The time the runs took.

"Latest runs on this config" shows "Runs", "Outcomes", "Cost" and "Median run". The other figures are returned only by GET /api/teams/{teamId}/lines/{lineId}/stations/{stationId}/insights; the Insights Stations tab counts them in the same way.

Each row of "Recent runs" shows the run's resolution, linked to the run, with the failure on hover, then "Run number", "Checks", "Human action", "Pull request", "Duration", "Cost" and "Ended". A resolution of Other shows the ending in its place. A part with no value shows –.

The inbox

A person's inbox contains every conversation, open or resolved, on every task in the workspace that is assigned to them, the running work on those tasks, the open conversations of tasks with no assignee on the teams they are a member of (see Questions for the team), the open conversations and running work of the tasks they follow, and the notices of their teams. Items are ordered by their latest note, notices by when they were raised, and runs by when they were queued, newest first.

SectionContainsAt first
OpenThe open conversations that are not working, the open inbox requests and the notices that are not resolved.Expanded
RunningThe working conversations and the running work.Collapsed
FollowingThe open conversations and the running work of the tasks the person follows.Collapsed
ResolvedThe resolved conversations, inbox requests and notices.Collapsed

"Running", "Following" and "Resolved" are at the bottom of the list, in that order. The sections that are collapsed or expanded are kept in the browser.

FlagSet when
resolvedA passed note has closed the conversation.
workingThe conversation is open, the task has a current run, and the task does not await a person.
unreadAn asked note in the conversation has not been read. Opening the item reads it. Never set on an item of a task the person follows.
failureThe conversation contains a failure. Shown as ×N once it has occurred N times, N being 2 or more.

An item can be answered by the person it waits for: the task's assignee, the person an approval or a connection asks, or a member of the task's team when the task has no assignee. A person who drives the task's hold can answer it too. Only an open conversation can be answered. An answer writes an answered note. The run that asked carries on; if the task has no current run and the station has a harness, a run starts there, taking up the harness session where the last run left it.

A resolved item shows no answer box. In its place it reads The conversation is closed here. Nothing is left to answer. while the task is at the item's station, or The task moved on to <Station>. Nothing is left to answer. The station name links to the task's latest run at that station, or to the task if no run started there.

Memory reviews and station alerts are inbox requests: items on a task that are not its conversation. Nothing waits on an inbox request.

Suggested close

A run suggests closing the task with spotlight handover --next review --suggest done. While the conversation is open and its latest note is that asked note, a card shows under the note. The card reads <Station> suggests closing the task and has a Close button.

The button moves the task to the line's completed station, as a person's move does. The task is finished and the conversation closes. The card shows only to a person who may make that move: it does not show while an agent chat of another person holds the task. An answer instead of the button lets the run carry on.

Running work

A task assigned to the person that has a current run, and no open conversation, shows its run under "Running" while the run is queued, in progress or stopping. The row shows the task's title, its station and what the run does: Queued. <Station> starts when a runner is free., <Station> is working… or Stopping…. Its page, /w/<slug>/inbox/teams/<teamId>/runs/<runId>, shows the run beside the inbox. Running work cannot be answered or resolved, and it leaves the inbox when the run ends. When the run asks the person something, its conversation shows under "Open".

Questions for the team

A conversation on a task with no assignee reaches the inbox of every member of the task's team who can act on it. A person who can see the team but is not a member of it does not get it, and neither does an owner or admin of the workspace who is not a member. The task waits for the same people. A task created by a person has no such conversation: its question assigns it to that person.

The row and the item look the same as for the assignee. The first member who answers the conversation or resolves it becomes the task's assignee. Only a member of the team can be assigned, so an answer or a resolve from anyone else fails with 403, Task <id> waits for its team. The first answer assigns the task, so only a member of the team can answer it. Workspace admins who are not on the team cannot. A resolve says Resolving it assigns the task, so only a member of the team can resolve it. in place of the middle sentence. An owner or admin of the workspace who is not on the team can still message the task's runs, move the task, assign it to a member, and drive or resume a hold (see Team access). A message that would put the task on hold assigns it too, so from them it fails with 403, Task <id> goes on hold when you message it. A hold assigns the task, so only a member of the team can message it. Workspace admins who are not on the team cannot. A message on the run page that answers the conversation counts as an answer, under the same rules: on a task with no assignee it fails from a person who is not a member of the team with 403, Task <id> waits for its team. The first answer assigns the task, so only a member of the team can answer it. Workspace admins who are not on the team cannot., and it fails with 409 once another person is the assignee. A reply in the task's Slack thread that answers it assigns the task to the member that Spotlight matches to the reply, if there is one. The conversation then leaves the inboxes of the other members, unless they follow the task. Once another person is the assignee, an answer or a resolve fails: with 409 for anyone else who acts on the team, with 403 for a person who can only see the team, and with 404 for a person outside the workspace. A person whom an approval or a connection ask names can still answer it. While a person holds the task, and not an agent chat, everybody who acts on the team can answer and resolve its conversations, as the assignee can. A workspace owner or admin who is not on the team has the item once they write in the task. The person who holds the task stays the assignee, and an approval that names a person stays for that person to decide. The read state is shared: when one member opens the item, it is read for all of them.

Following

A person follows a task once they write in its conversation: as the author or a co-author of a note written in the inbox or on the run page, or of a reply in the task's Slack thread that Spotlight matches to them. Nobody can stop following a task.

While another person is the task's assignee, the follower sees the task's open conversations and its running work under "Following". Resolved conversations do not show to a follower. In place of the answer box, the item reads You follow this task. Its assignee answers here. A follower cannot answer or resolve the conversation; doing so fails with 409, or with 403 when they do not act on the team. While a person holds the task, a follower who acts on the team gets the answer box, and can answer and resolve, as the assignee can. Opening the item does not read it for the assignee. A follower's items are never unread, so they send no notifications. The assignee stays the one person the task waits on.

Notices

A notice tells a team about its work, outside any task, when a person must act. Most go to the whole team: every member of the team sees them in their inbox. A person who asked for a test of a change, from a chat that improves a station, gets a notice of their own when the change did not become the pull request. Spotlight raises notices about the searches of the team's stations. Nothing waits on it, and it cannot be answered.

Raised whenFormHeadlineLinks
Spotlight opens a config pull requestendedSpotlight opened a config pull request for the <station> station"Review the pull request", to the pull request on GitHub, and "Open the station"
A config pull request could not be openedendedSorry, the config pull request for the <station> station could not be opened"Open the station"
A search ends with no pull request after it stalled on causes outside the configadviceThe search of the <station> station stalled on causes outside the config"Open the station"
A search that the reader requested a candidate of picks no candidateendedSpotlight did not open a config pull request for the <station> station"Open the station"
A search that the reader requested a candidate of opens a pull request for another candidateendedSpotlight opened a config pull request for another candidate of the <station> station"Open the station"
A search that the reader requested a candidate of stops before a resultendedThe search of the <station> station stopped before a result"Open the station"
Spotlight skips a search because the search ceiling is too low, no runner can start the search agent's harness, the replay set is noisy, the judge is unstable or the checks are flakyadviceSpotlight cannot search the <station> station"Open the station"
A config change's outcome verdict is Worse on a measureadviceThe <station> station got worse after its config change in <owner>/<repo>#<n>, or without in <owner>/<repo>#<n> when no config pull request is known"Review the pull request", when one is known, and "Open the station"
A mistake that people keep correcting becomes a pattern that waits for the teampatternPeople keep correcting the agents for the same thing: <summary>"Open the pattern", to the pattern's page

The first two and the last three go to the team, whatever started the search. The three between them go only to a person who requested a candidate of the search. See Notices for the points. A search that nobody requested a candidate of, and that ends with no pull request and no causes to fix, a config pull request that merges, and one that Spotlight closes because the station's live config changed raise no notice.

FieldShows
Formended: the work it is about has ended. advice: it carries on, with something the team could fix. pattern: a pattern of corrections waits for the team to file or dismiss it.
HeadlineWhat it is about, at most 200 characters.
Points1 to 20, of at most 1,000 characters each: what happened, then what it suggests.
LinkA page of its team, with a label naming it.
External linkOnly on some notices: a pull request at https://github.com/, with a label naming it.
FlagSet when
unreadIt is not resolved.
resolvedA member of its team opened it for at least 3 seconds and then left it, which resolves it for the whole team. A pattern notice is resolved when a person files or dismisses its pattern, and leaving it does not resolve it. A notice to one person is resolved when that person leaves it in the same way. It is not resolved while it is open, or when someone resolved it while it was open. A resolved notice shows under "Resolved" for 30 days after it was resolved, then leaves the inbox.

Its row shows a lightbulb, the headline, an unread dot, the day it was raised, and the first point. Its page, /w/<slug>/inbox/notices/<noticeId>, shows when it was raised, the headline, the points under "Details", and a button that opens the link, after a button that opens the external link in a new tab when the notice has one. A pattern notice's page also shows the pattern's card, with its corrections, Dismiss and the button that files it, as on the Insights Patterns tab.

A notice reaches only the members of its team, and a notice to one person only that person. To anyone else, and once it has left the inbox, its page reads No longer waiting for you. Resolving is POST /api/workspaces/{slug}/inbox/notices/{noticeId}/resolve, answering 204, or 404 for a notice of a team the caller is not a member of. Deleting a team deletes its notices.

Memory reviews

An item is raised for a run when it proposes at least one memory: drafted after the run, or each time it waits for a person, at a station with memories: true, or proposed by the agent with spotlight remember. The item reads A run proposed memories for the team. It is resolved, and reads Proposed memories decided., once no memory of the run is left to decide: every one is approved or rejected, or a later drafting has dropped the undecided ones.

It reaches the inbox of the task's assignee, or of everyone who can see the team when the task has no assignee. The item shows the run's conversation, then a summary line that folds the cards and starts open. <proposed> is how many memories the run proposed, and <open> how many are still undecided:

  • <agent> proposed <proposed> memories · <open> to review, or <agent> proposed 1 memory · 1 to review;
  • <agent> proposed <proposed> memories · all decided, or <agent> proposed 1 memory · all decided.

<agent> is the run's harness, or "The agent" when it is not known. Each memory is a card titled "Waiting for your approval" while undecided, then Memory approved by <name> or Memory rejected by <name>, or Memory approved or Memory rejected when the person who decided is not known:

RowShows
MemoryThe memory.
KindThe kind, with what it means on hover.
Applies to"The whole team", "This line" or "This station".
Files<paths> in <repository>, or the repository alone for a memory about the whole repository. Only for a memory scoped to a repository.
SourceThe notes and steps it was drawn from: each note with a person's name, "A teammate" or "Another tool", and each step with the run's harness or "The agent".

An undecided card has a copy icon, an edit icon, "Reject" and "Approve". The edit icon changes the memory in place, at most 1,000 characters. While it is edited, "Reject" becomes "Cancel", which puts the memory back, and "Approve", which keeps it as edited, is off while the text is empty. A decided card keeps the copy icon, with "Reject" and "Approve" off.

  • An approved memory becomes active, with a new handle. If it corrects an active memory, that one is retired in its favour.
  • A rejected memory is kept and never briefed. When a station drafts memories, the drafter is shown the 20 newest memories the team rejected in the last 90 days that apply where the run ran. spotlight remember does not check rejected memories.
  • A memory from outside the team cannot be approved together with other memories in one request. The web app approves one memory at a time.
  • When a later run's drafting finds something to draw on, it drops every undecided drafted memory of the task's earlier runs, whether or not it proposes any itself. Memories proposed with spotlight remember stay.
  • Nothing waits on a review. The task moves on as it would without one.

A memory proposed with spotlight forget retires a memory. Its card shows "Retires", the handle of the memory, and "Reason", why it no longer applies, above the memory itself, and it has no edit icon. Approving it retires the memory with that reason; rejecting it keeps the memory. When the memory was retired or replaced first, the card reads <handle> is no longer active, so this retirement no longer applies., and only "Reject" is on. When the memory is retired or replaced after the approval but before it is retired, nothing changes and the card reads "No longer applies".

Memory upkeep

Once a week from a team's first memory, or sooner after 20 more memories are added, Spotlight checks the team's active memories and proposes changes. A memory is proposed for retirement when:

  • the team no longer works in the repository it is about;
  • every path it names is gone from that repository;
  • it was approved at least 90 days ago and no run used it in the last 90 days.

Where the team has a completed task or chat run, a session in the team's harness, based on the newest such run, also reads up to 200 memories, grouped by where they apply, and proposes to retire one that a newer or more exact memory contradicts, or to merge memories of the same kind that apply in the same place and say the same thing into one. A memory with a change waiting for a decision is left out of the next check, and so is one with a change approved but not yet made. A memory that replaces another, edited on the Memory page or approved from a run, and a memory that a merge writes do not count toward the 20. A team that had memories before upkeep existed has its first check when Spotlight is updated. After a person keeps a memory, the same finding is not proposed for it again for 90 days; a different finding still is.

When it proposes at least one change, a notice Some of what the team remembers may be out of date reaches the team, with how many memories to retire and how many sets to merge, and "Review the changes". That opens Upkeep under the team's Memory page. It lists each change as a card titled Retire <handle> or Merge <handles> into one, then Retired <handle>, Merged <handles> or Kept <handle>, with by <name> when the person who decided is known, or No longer applies to <handles>:

RowShows
FoundWhy it was proposed: The paths it names are gone, The team no longer works in its repository, No run used it in 90 days, Another memory says otherwise or These memories say the same thing.
ReasonThe reason in full.
<handle>Each memory, linked to it on the Memory page, with its kind and text.
MergedThe one memory a merge writes. Only for a merge.

An undecided card has "Keep" and "Retire", or "Keep" and "Merge". Approving a retirement retires the memory with the reason. Approving a merge writes the new memory, and each memory it merges is retired as replaced by it. When one of its memories was retired after the sweep, the card reads <handle> was retired after the sweep, so this change no longer applies., and only "Keep" is on. When a memory is retired after a person approves but before the change is made, nothing changes and the card reads No longer applies to <handles>. When one of the memories of a merge is retired or replaced after the new memory is written, the new memory is retired with the reason <handles> changed before the merge was made, so the merge no longer applies., and the other memories stay as they were. "Keep" leaves every memory as it is. Once every change is decided or no longer applies, the notice closes.

Station alerts

Spotlight checks a work station's alerts when one of its task runs ends or is measured, when the pull request of a task it worked closes, and when its line is changed or deleted. A run counts in a measure once what that measure needs is known:

MeasureA run is measured when
sent_back_rate, accepted_rateIts resolution is not Other.
checks_failed_rateIts check passed or failed.
failed_rateIt ended.
merged_rateIts task has a pull request, and none of them is open.
cost_per_runIts cost was worked out.

Only runs that ran count, ordered by when they ended. An alert reads its measure over the latest over measured runs and, for risesBy and fallsBy, over the over measured runs before those. Measured runs are looked for among the station's latest runs, 4 times as many as its alerts need at most. Until enough runs are measured, or while the measure cannot be worked out, as for cost with no priced runs, the alert is not checked.

ConditionFires when
risesByThe measure over the latest runs, less the measure over the runs before, is at least risesBy.
fallsByThe measure over the runs before, less the measure over the latest runs, is at least fallsBy.
aboveThe measure is higher than above.
belowThe measure is lower than below.

An alert fires once each time its condition is met. While it is open, later checks do not fire it again. It resolves once its condition has stayed unmet for over further measured runs: each check whose newest measured run is a new one, and finds the condition no longer met, counts one, and a check that finds it met again starts the count over. For over measured runs after it resolves, a new firing reopens the same alert, and its inbox item, instead of firing a new one. After that, a firing makes a new alert.

If an open alert's threshold or over is changed, the next check judges it by the new values: when the condition is met, it stays open with the new reading; otherwise the check counts for its resolution. An open alert whose measure or condition is removed from the station resolves at once, at the station's next check, and a firing after that makes a new alert. Changing or deleting a line checks each of its stations, those it had and those it has. Deleting a task deletes the alerts fired on it.

When an alert fires, the task of the run that set off the check gets an inbox item: the run that ended or was measured, or, when a pull request closed, the task's latest run at the station. The item reads Station alert fired. and, once the alert resolves, Station alert resolved. A reopened alert opens its item again. It reaches the task's assignee, or everyone on the team when the task has no assignee. It never reaches a person who is neither on the team nor an owner or admin of the workspace, and to anyone else it is not found: its card reads Only team members can see this alert. Nothing waits on it.

The item shows:

PartShows
HeadingAlert fired at <station>, with the day it fired.
ReadingWhat the runs did, then the alert rule, with cost in the currency of the station's runs. For a rate, <value> of the last <over> runs <did>., where <did> is "were sent back", "were accepted", "were merged", "failed" or "failed their checks". For cost, The last <over> runs cost <value> each on average. For risesBy and fallsBy, the comparison follows before the full stop: , up from <value> in the <over> before, or down from or the same as. Then The alert is set at a <change>-point rise. (or fall), a rise of <threshold> for cost, or The alert is set at above <threshold>. (or below). With over set to 1, the last run and the one before, with "was sent back", "was accepted", "was merged", "failed" or "failed its checks", and The last run cost <value> for cost.
RecoveryThe station has been back under the threshold since <day>., or over in place of under for fallsBy and below, once the alert has resolved.
ChartThe measure over the over measured runs up to each run, from 2 × over runs before the run that fired it to over runs after. Its legend names "Alert level" with the threshold, for above and below; "Before" with the measure over the runs before, for risesBy and fallsBy; and "The run it fired at". It is drawn from the station's latest 500 runs; without that run among them, it reads There is no chart to show. The runs behind this alert are deleted.
Links"Open the station", which opens its page; "Open in Insights", which opens the Stations tab at the station's row, #station-<stationId>, over the shortest period that covers the day it fired; and "Improve", while the station is on one of the team's lines, which opens the Agent page with the station attached to a new chat.

Requests to connect

When a run calls a tool of an integration whose connection.actsAs is requester, and the person who started the task has not connected it or the service could not refresh their connection, nothing is sent. The task is assigned to that person and put to them with an asked note of form connection:

I need to use `<tool>`, which acts as you in <integration>, and you haven't connected <integration> yet.

Connect <integration> and I will carry on. Nothing has been sent yet.

For a failed refresh, <integration> could not refresh your connection, so it has to be made again takes the place of you haven't connected <integration> yet. <integration> is the integration's name.

Below the note, a card titled Connect <integration> offers "Connect" to that person only; anyone else sees Waiting for <person> to connect <integration>. Once they connect, the card reads Connected <integration>. Connecting answers it with Connected <integration>., in their voice, on every task waiting on that connection in the team; the run resumes as for any answer. A request is never met with the team's connection. See Acts as.

Approvals

A run asks for approval when a tool with approval in its integration is called, when the person whose connection a tool acts with set it to "Ask me first", or when the harness profile's ask rules match a harness action. See spotlight_integration, Person rules and spotlight_harness_profile.

StatusMeaning
pendingWaiting on a person, as an inbox item.
approvedApproved. The grant is spent by the call it allows.
dismissedDismissed. The dismissal stays valid.

In the inbox, the card's title reads "Waiting for your approval" while it is pending, then "Request approved", "Request approved with changes" or "Request dismissed". An undecided card offers copy and, for a tool call with inputs, edit, beside "Dismiss" and "Approve". For a call that asks because of a person's own rule, everyone else sees Only <Name> can approve this, with "Approve" turned off and edit hidden.

When a run asks, Spotlight looks for the latest approval of the same subject at the same station. The subject is the tool with the same inputs, or the same harness permission. An approval with changed inputs also matches a call with the changed inputs.

Latest approvalResult
dismissedThe call fails with <tool> was dismissed, so nothing was sent., followed by the recorded reason. Nothing is asked.
approved, not spentThe call goes ahead, and the grant is spent. Where the person changed the inputs, the tool runs with the changed inputs, and the tool.using hook and the run's steps see them.
none, or spentThe task is put to a person with an approval. A tool call fails with <tool> needs a person's approval before it runs, and they have been asked in their inbox. Nothing was sent. Stop here and end your turn: their answer comes back to you in this conversation. A harness permission request cancels the turn, and the run waits for the decision.
  • A grant is spent by one call. The next call asks again.
  • An approval requested at one station does not count at another.
  • Only a person can approve or dismiss. A workspace token cannot.
  • A call that asks because of a person's own tool rule can be approved only by that person. See Person rules.
  • An approval is decided once. A second decision fails with 409.
  • An answer without a decision answers the conversation and leaves the approval undecided.
  • A decision without words is recorded as Approved. or Dismissed..

Person rules

A tool of an integration whose connection.actsAs is requester acts with the connection of the person who started the task, and follows that person's rule for it as well as the team's. Of the two, the stricter wins:

TeamPersonResult
Runs without askingAllowThe call runs.
Runs without askingAsk me firstThe call waits, and only that person can approve it. The ask reads <Name> wants to approve each call made with their <Integration> connection., with The person when the person has no name.
Needs approvalAllowThe call waits, and the task's assignee can approve it.
Needs approvalAsk me firstThe call waits with the team's reason, and only that person can approve it.
EitherBlockThe call never runs. The call fails with <tool> was not used, so nothing was sent: <person> blocks it on calls made with their connection., or the person it acts as in place of <person> when the person has no name.
  • When a call waits because of a person's rule, the task is put to that person: they become its assignee.
  • Approving it by anyone else fails with 409. Whoever may answer the task can still dismiss it.
  • A grant from someone else does not cover such a call. It asks that person again.
  • A person's rule applies only to calls made with their own connection, never to calls made with the team's. It stays when they disconnect and connect again.
  • The run's list of tools shows the team's rule. The person's rule takes effect when the tool is called.

See Let a person ask first or block a tool.

Changed inputs

A person may approve a tool call with changed inputs, given as inputs with approve: true when answering the inbox item.

  • The changes name exactly the inputs the tool was called with. Inputs cannot be added or removed.
  • Each value has the type of the input it replaces: any text for a string, a finite number for a number, true or false for a boolean.
  • A changed list or object is checked against the input's schema, and rejected naming where it does not fit. See Input schemas.
  • A value may not be blank where the tool was called with one.
  • A harness permission and a dismissal take no changes.
  • Changes that leave every input as it was are recorded as no change.

An answer that breaks these rules fails with 409. See Answering an approval.

The answer the agent reads is the person's words, or Approved., followed by I changed what it runs with. Call it again as before and it runs with these instead: and every input of the changed call. A one-line value reads <input>: `<value>` ; a longer one follows its name in a code block. Values over 400 characters are cut, ending in ….

What the agent wants

A tool that requires approval also takes intent, given as --intent to spotlight tools call: what the agent wants to do, as a phrase that completes "Spotlight would like to …". It is kept with the approval and never passed to the tool.

  • Spaces and line breaks become single spaces, and final full stops are dropped.
  • It is cut to 200 characters, ending in ….
  • A tool that requires approval may not declare an input named intent.
  • A call made while an answer from a person is still pending keeps the first intent.
  • A harness permission has none.
ApprovalShown above the call
With an intentSpotlight would like to <intent>.
Without oneSpotlight would like to use <name>. <because>
Approved with changed inputsSpotlight asked to <intent>. You edited its inputs., with use <name> in place of a missing intent.

Chats

A chat belongs to a team and to the person who started it. Only that person can list or read it. Each chat names its harness, and optionally a model, an effort, repositories and a work station it is improving. The harness and the repositories are fixed when the chat starts. A message may name another model or effort. The agent answers that message, and the messages after it, with the model and effort it names. A chat message has up to 20,000 characters and at most 20 traces.

The Agent page's composer reads "What do you want to plan?", and a chat's composer reads "Reply…". One picker in the composer names the harness, then the model and effort when they are set. Under it, "Model" reads "Default" when no model is set, and is turned off for a harness that offers no models. "Effort" reads "Default" when no effort is set, and is left out for a harness that offers no efforts. A new chat takes the harness picked last, or the first one offered. In a chat, only the model and effort can be changed, and the web app sends them with each reply. Repositories are picked below the composer, which reads "No repositories", the repository's name, or <n> repositories; in a chat they are read-only. Files are attached as on the Run page. While the agent works, the chat shows "The agent is working…", and with the composer empty "Send" becomes "Stop".

A chat started from a station's "Improve", "Ask the agent" or "Review with the agent" names that station. Its agent is briefed to write the station's runs with spotlight history and to propose one change at a time, as a unified diff of the station's block in the line's spotlight_line resource and of its prompt file, prompts/<team>/<line>/<station>.md. The chat's first message names the station as <station> on <line>, linked to the station. If the station has left the team's lines, the agent is told so.

A setup chat, started from the setup task's "Set up configuration as code" (see Setup task), names a configuration repository and a folder in it. The repository joins the chat's repositories. The folder is 1 to 200 characters, from the repository root, each part made of letters, digits, ., _ and -, and never . or ... Its agent is briefed to survey the repositories and the team's tools and to open a pull request with the team's Terraform there, with setup-pull-request. The chat keeps the pull request. Its runs use Spotlight's API with the run's Spotlight token. A setup chat needs egress: a host that serves the workspace, or a push pool that names an egress. Without either, starting one fails with 422 and A setup chat needs egress. No host serves this workspace, and no push pool names an egress. Please connect a host, or name an egress in a push pool.

Only an owner or admin of the workspace may start a setup chat. Anyone else gets 403 and Only a workspace owner or admin can set up configuration as code. The setup creates the OIDC trusts that GitHub Actions signs in with. Before the chat starts, Spotlight:

  1. reads the configuration repository's default branch, and whether a branch protection rule, or a ruleset that requires a pull request review, protects it;
  2. creates or updates the trusts github-pull-requests and github-apply (see Trusts the setup creates);
  3. sets the repository's GitHub Actions variables SPOTLIGHT_URL to the Spotlight address, and SPOTLIGHT_PLAN_TRUST and SPOTLIGHT_APPLY_TRUST to the trusts' ids. If the GitHub App does not have the permission "Variables: read and write", Spotlight sets none, and the chat's agent is briefed to list them in the pull request.

The agent is briefed to add .github/workflows/spotlight.yml, which plans pull requests that change the folder and applies pushes to the default branch, and to list the secrets the person must add. When the default branch is not protected, the agent is briefed to say first in the pull request that anyone who can push to it can change the workspace's configuration, and to recommend branch protection that requires a review.

Chat runs have priority over task runs. Which run goes first gives the reasons.

Proposals

The agent proposes a task with the propose-task tool, naming a line and a station by key.

StateCard titleNext
openWaiting for your approvalaccepted, or dismissed
acceptedCreating the taskcreated, or back to open if the task cannot be created
createdTask created
dismissedDismissed

Each proposal shows in the chat as a card titled by its state. "Task" shows the proposed title, linked to the task once it is created. "Station" reads <Line> › <Station>, or "Station deleted" once the station is gone. "Details" shows the description, when there is one. "Files" shows the files given with attach, when there are any. Once the task is being created, the card shows only "Task" and "Station". "Dismiss" and "Create task" act only on an open proposal, and "Create task" is off while the station is deleted. Copy <title> copies the title and the description.

An accepted proposal creates the task at the proposed station, with a copy of each file on the proposal and the proposal's base, if it has one. A task created at a station with a harness starts a run at once.

Pull requests from a chat

When the person asks for a small change, the agent of a chat that is not a setup chat may make it in the chat. It pushes a branch to one of the chat's repositories and opens the pull request with open-pull-request. A task then tracks the pull request:

  • The task starts at the station of its line that has the pull-request tool, with the agent's branch, the title and body of the pull request, and the person who started the chat as its assignee. The task's base is the tool's base, if it names a branch other than the default branch, and the pull request opens into it.
  • The task is on hold for the chat. The line starts no run on it.
  • GitHub events about the pull request reach the task through its git.pull-request mark, as for a pull request the line opened. Each event, and each message a teammate writes on the task, is passed to the chat, and the agent answers it there. A move that an event asks for waits until the task goes back to the line.
  • When the pull request is merged, the hold ends and the task moves to its line's completed station. The chat hears of it, but no run starts.
  • When the person hands the task to the line, or moves it by hand, the hold ends. The chat hears of it, but no run starts. Spotlight refuses the chat's pushes to the task's branch from then on.
  • A hold for a chat never counts against the line.

The pull request shows in the chat as a card:

StateCard titleWhat the card offers
On hold for the chatOn hold for this chat"Open task", and "Hand to the line"
The line has the taskHanded to the line"Open task"
The task completedTask completed"Open task"
The task was deletedTask deletedNothing

"Pull request" shows the title and <owner>/<name>#<number>, linked to the pull request. "Station" reads <Line> › <Station>. "Hand to the line" ends the hold, and a run starts at the task's station: the station's agent goes on from the branch.

On the task, the "On hold" pill links to the chat.

What a chat may push

Spotlight refuses a push from a chat when one of the refs it updates:

  • Is the repository's default branch.
  • Is not a branch, as with a tag.
  • Deletes a branch.
  • Is the branch of a task that the chat does not hold.

Spotlight then refuses the whole push, and git shows the reason next to each ref, as in:

 ! [remote rejected] fix/icons -> main (main is the default branch. Push the change to a new branch and open a pull request.)

When GitHub does not tell Spotlight the default branch, Spotlight refuses the push, and the reason asks the agent to push again a minute later.

Attachments

PropertyValue
Largest file25 MiB
Attached toA task, an answer, a message to a run, a chat message.
In the run.spotlight/attachments/<id>/<name> in the run's working copy.
In the briefingListed under Attached, in the workspace:.

On this page