Skip to content

Sonny: keep the approver fresh, steps only the person can take, /status alerts - #622

Merged
lydakis merged 2 commits into
mainfrom
claude/project-thread-thri6i
Nov 1, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/project-thread-thri6i

Conversation

@lydakis

@lydakis lydakis commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

Why

Four items from the Sonny feedback triage, approved for Monday's release:

  1. A companion an upgrade left behind crash-loops unseen. start_companions refreshed the lookout and tool host on every connect, but approver-auto only when a window opened in auto. After a daemon restart with no auto window, an old command (a removed Homebrew Cellar path, say) restarted forever and nothing showed it.
  2. A task can't put "you must do X now" in front of the person. ask required options and told agents a question with nothing to choose goes in the reply. A task's reply goes to its lead, so the person only heard through a relay.
  3. A pane that needs the person's keyboard sits unnoticed. run_in_pane offered float "for a sign-in", but nothing marked the agent as waiting on the person.
  4. No skill-file check. The skill index read front matter but never checked it.

What changes, and where

Companions (sonny/src/main.rs)

  • start_companions ends with keep_approver(client, None). If an approver-auto is kept, it is kept again with this Sonny's binary, ["approver"], the AGENT_MODEL it already has and SONNY_BUILD. So an in-place upgrade restarts it like the other two. serve_auto is now keep_approver(client, Some(model)), so a new one is judged by the window's model and one already kept keeps its first judge, as its doc already said.
  • /status asks the daemon for companions on each read. It names one with restarts > 0 that is down now (waiting for its next start) or has been up less than a minute, the daemon's own healthy mark. The line is a red ✗, then how it exits (exits 1, could not start, killed by signal 9) and the count, with its log path muted under it. Formatting is in status::companion_alerts.

Steps only the person can take (sonny/src/asks.rs, served.rs, agents/task.md)

  • Schema: options, recommended and reason are no longer required, and there is a new command ("the exact line for them to paste into their own terminal"). The description's last sentence changes from "A question with nothing to choose between goes in your reply instead." to say that a step only the person can take is an ask with no options and command, and it waits.
  • served refuses options and a command together, and also neither (typed invalid_arguments). An ask with a command always waits, and its result tells the agent to do nothing that needs it until the person says how it went.
  • Card: a muted row Run this in your own terminal; a click copies it., then the line at the text's own weight, and Waits for you to run it[; a reminder at HH:MM]. A click on the line copies it (term::copy, as /copy does). The composer hint reads Answer "…": say how it went · esc write instead.
  • A task that asks this way already reads needs you in its lead's footer and /status (same path as any open ask). The lookout's note to the lead now says put a step only they can take, which they run and answer in shop.fix: and quotes the line. ask.posted events carry command (documented in lookout/activity.rs FIELDS). calls.rs shows it under "Asked you".
  • run_in_pane description: float … for a moment (a sign-in, a quick look) → float … for a quick look. A command that needs the person's own keyboard (a sign-in, a password or passphrase prompt, ssh -t) sits unnoticed in a pane: ask them with ask and its command instead…
  • task.md: "Put a decision only the person can make to them with the ask tool…" → "Put a decision only the person can make, or a step only they can take, to them with the ask tool…". It still fits its 4096-byte budget: "such as shop.fix" became "(shop.fix)", "such as an answer" became "like an answer", and ", and their answer" became "; their answer".

Skill check (client/src/policy.rs, sonny/src/status.rs)

  • Entry gains warning: Option<&'static str>. For skills, index() sets no description or its description never says when to use it. The check looks for a word such as when, whenever, use, if, before, after, while or during, per agentskills.io ("what the skill does and when to use it"). The skill is still listed, as before. New policy::skills(workspace) and policy::skill_warning.
  • /status shows one muted alert under the lookout's line: 2 skills to fix, agents may not know when to read them, then name: what for each. It covers the lead's folder and ~/.agents/skills.
  • Seven of Sonny's own skills never said when, so they would have warned. Each description now does: automation, coordination, memory-cleanup, pictures, plan, rex-windows and zen (exact diffs in the files). sonny/tests/shipped_skills_say_when.rs keeps it so. A person's edited copy is never overwritten, as before.

Why not just follow Codex: Codex skips a skill with bad front matter and reports it. We warn and keep it listed, since a skill that loads with a weak description is better than one that disappears. Codex has no action card; its questions belong to a live turn. Ours outlive the turn, so the card and the wait follow the ask rules that already exist.

Design pass

  • Visual system: no new hue. Yellow ? still means needs you. Red ✗ marks only the companion that is actually broken. The skill alert and the "Run this" row are muted. The command keeps the text's own weight, as a code line in a reply does. With NO_COLOR the ✗ mark and the weights carry it.
  • Interface system: the card keeps its bar, hang and key-hint grammar. The click target is the line itself, like an option's row. /status keeps its order: heading, lookout, then what is wrong, then agents.

Screenshots (real app, scripted model, Flexoki dark)

Action card:
action card

/status alerts:
status alerts

Light versions are in the project files (agent-notes/action-card/).

Tests

cargo test -p sonny -p agent-client: all pass (sonny 903 unit tests plus integration tests). cargo clippy --workspace --all-targets -D warnings and cargo fmt --check are clean. New tests:

  • every_start_keeps_the_approver_again_on_this_binary_with_its_judge, the_approver_is_kept_again_with_its_own_judge_and_this_build
  • a_companion_that_keeps_restarting_is_named_one_that_recovered_is_not, skills_to_fix_are_one_muted_alert_naming_each
  • a_step_only_the_person_can_take_is_an_ask_with_its_command_and_no_options, the_card_shows_the_line_to_run_where_a_click_copies_it, an_ask_has_options_or_a_command_never_both_nor_neither
  • the_skill_index_warns_of_a_description_missing_or_never_saying_when, every_shipped_skill_says_when_to_use_it

No daemon change: Sonny and the client only.

…us alerts

- Every Sonny start keeps approver-auto again on its own binary and build,
  with the judge it already has, so an upgrade restarts it like the lookout
  and the tool host. /status names a companion that keeps restarting.
- ask takes no options and a command: an action card with the line to run
  (a click copies it) that always waits; the lead hears the line too.
  run_in_pane sends commands that need the person's keyboard there.
- The skill index warns of a skill with no description or one that never
  says when to use it, shown muted in /status; Sonny's own skills say when.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGE4GZVbkdvr7v4jtbh
@lydakis lydakis self-assigned this Nov 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T18:32:44.106713Z c3bd810 New commits
🔒 Security Review ✅ Completed 2026-11-01T18:31:04.106395Z b723951 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b723951875

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sonny/src/asks.rs Resolved
@lydakis
lydakis merged commit a69fc17 into main Nov 1, 2026
10 checks passed
lydakis pushed a commit that referenced this pull request Nov 1, 2026
The shell description keeps #621's day-long background cap and adds the
note's sentence after "collect its result later with wait.".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGHSmyxToLa26Je2pfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants