One of our Claude Code sessions stopped while we were away from the desk. When we came back, the terminal said Failed to authenticate. API Error: 401. Nobody had known to sign in again.
Nothing was wrong with the work. The fix was one command. The time went because nothing said the session had stopped.
Scout recorded a success
Scout reads every harness session it runs and turns each harness's output into one session model: turns, blocks, actions, errors. The runtime builds Inbox items from that model, and a failed turn becomes an item to look at.
This failure never got that far. Claude Code returned subtype: "success" and is_error: true for the same turn. Scout read the first field and marked the work complete. There was no failed turn to put in the Inbox.
Scout now checks the error flag, marks the turn as failed, and keeps the reported error on it.
Name the problem, send the command
A failed turn usually goes into the Inbox quietly, because most failures need a person to read them. A stack trace is not a phone alert. A rejected login is different. The cause is clear, and the fix is one command that someone can start from anywhere.
Scout checks the reported error for a login failure. When it finds one, three things change:
- The Inbox names the problem. "Claude login expired" replaces "Session turn failed".
- The detail is the fix, in the harness's own commands. For Claude Code, run
claude /loginon the host where the session ran. For unattended runs,claude setup-tokencreates a long-lived token to supply asCLAUDE_CODE_OAUTH_TOKEN. For Codex, runcodex loginon the affected host. - The phone rings. The plain-text alert says only "A local agent stopped: its login expired." The fix travels in the notification detail, sealed to the paired phone. Other failures stay quiet.
The Inbox keeps the error summary alongside the fix. Scout does not sign in or retry the work.
Not an approval
Scout already decides when to interrupt for permissions. If an agent tries to run a script it just downloaded, the permission watcher can ask the operator before the script runs. A rejected login is different: the turn has already failed, and there is nothing to approve. Scout reports the cause and the command, and the operator decides.
While the login works, Scout says nothing about setup. When the harness rejects it, Scout shows the command and leaves the sign-in to the operator.