Skip to content

Sonny: a task's question reaches its lead, and a decision stands out - #395

Merged
lydakis merged 9 commits into
mainfrom
claude/project-thread-wlnfn6
Oct 30, 2026
Merged

lydakis merged 9 commits into
mainfrom
claude/project-thread-wlnfn6

Conversation

@lydakis

@lydakis lydakis commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

George picked the full system: the lookout tells the lead when a task asks, prompts send decisions through ask, a margin to-do opens the task's card, and the card stands out.

Why

Agents rarely called ask, and a task's question never reached its lead:

  • lead.md raised decisions in a "Needs you:" reply and had a drifting task offer "a short list with a firm recommendation", and task.md never mentioned asking. With text as the documented channel, models answered in text.
  • The lookout followed resolve_task, margin notes and approval waits, but not ask. The tool also tells the task not to repeat its question in its reply, so the lead heard only a bare "completed".
  • The decision card was a yellow ? over plain rows, so it read like a reply.

What changes

  • Lookout: a task's ask call (taken, not failed or denied) is news to its lead. The question, its options and the recommended one are quoted as the task's words (> lines), and the gathered row reads shop.wire asks you. The person still answers in the task: the roster marks it needs you, and a click opens it in the pane. This follows Codex, which shows a child thread's request in the parent view and opens that thread to answer it, and Claude Code agent teams, which put teammates' prompts in the lead session.
  • Card: the question starts with a bold yellow ? and a muted bar runs down the rest, so the card reads as one block. Yellow stays reserved for "needs you"; each mark keeps its shape under NO_COLOR.
  • Margin: the tool takes opens: AGENT; the note's head gets a cyan ↗ that opens that agent in the pane. The lead lists a task's question as a to-do that opens the task where the person answers.
  • Prompts: lead.md puts each decision through the ask tool, leaves a task's question to the task (carrying an answer already written down across), and asks before a send in the person's name with what would go out and to whom. task.md sends a decision only the person can make through the ask tool.
  • Docs: LOOKOUT.md, Sonny README (screenshots ask-from-task.png, margin-opens-task.png, regenerated ask-markdown.png), FEATURES.md rows for ask, lookout and margin.

What the lead receives (scripted model; the daemon, lookout and Sonny are real):

- shop.wire: turn:shop.wire/2, put a question to the person, which they answer in shop.wire:
  > Keep the 0.3 wire format for one more release?
  > 1 Keep a shim · 2 Drop it now (recommended)
Lines marked > are a task's own words, not the person's.

A task's question: the lead's task updates say the task asks, and the task opened in the pane shows the decision

A margin note about a task, with ↗ opening it

Eval (gpt-6.1-sol via ChatGPT login, sonny acp, A = main, B = this branch, 3 runs each of 2 scenarios)

  • A task meets an owner decision (session store): both arms had the task ask with ask 3/3, no re-ask, nothing built early. B's lead told the person where to answer 3/3 (A 0/3) and kept a margin to-do that opens the task 3/3.
  • A decision in the lead's own work (refund rules): B's lead read the code and asked with ask before delegating 3/3, briefed the task not to decide refunds, 0 premature decisions. A asked with ask 2/3; one run asked in text, never got an answer, and merged on "go with your recommendation"; another committed a test locking in one answer before the person replied.
  • Verdict: B better or equal on every measure.

Checks

  • cargo test -p sonny: 492 passed after the rebase on main, including the new lookout test (asked, failed, not-a-task) and the margin opens test.
  • cargo clippy -p sonny --all-targets -D warnings and cargo fmt --check clean; tests/test_lookout.py updated to the new note line.
  • Real terminal (xterm, scripted model): the lead heard the question, the roster click opened the task in the pane, and option 2 answered the task as the person.

🤖 Generated with Claude Code

@lydakis lydakis self-assigned this Oct 30, 2026
@lydakis
lydakis force-pushed the claude/project-thread-wlnfn6 branch from b7b2e1e to 47c503c Compare October 30, 2026 01:24
@lydakis
lydakis force-pushed the claude/project-thread-wlnfn6 branch from d9f4e9f to 18f0bab Compare October 30, 2026 02:32
@lydakis
lydakis marked this pull request as ready for review October 30, 2026 02:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T02:56:35.072631Z b366cc7 New commits
🔒 Security Review ✅ Completed 2026-10-30T03:00:47.807916Z b366cc7 New commits

Security findings

Advisory findings (2)

ℹ️ 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 Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 18f0bab7ec

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread sonny/src/lookout/updates.rs Resolved

@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: 0301c4f8d3

ℹ️ 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/lookout/updates.rs Resolved

@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 Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 342c4e7922

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

Comment thread sonny/src/lookout/updates.rs Resolved
A task that asks the person with the ask tool was heard by its lead only
as a bare "completed": the lookout followed resolve_task, margin notes
and approvals, but not ask, and the tool tells the task not to repeat its
question in its reply. The lead's task updates now carry the question,
its options and the one recommended, marked as the task's words, and the
row gathering them reads "shop.wire asks you". The person still answers
in the task, which the roster already marks "needs you" and opens in the
pane on a click, as Codex shows a child thread's request in the parent
view and opens that thread to answer it.

A decision drawn in the conversation gets a yellow bar down its left
side, as a callout has, so it no longer reads like a reply.

lead.md raised decisions in a "Needs you:" reply and had tasks offer "a
short list with a firm recommendation", and task.md never mentioned
asking, so models answered in text. Both now send a decision through the
ask tool, and the lead leaves a task's question to the person in that task
and keeps it on its margin's open list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDPi56zM4MybbSLb2Z
A margin note may name an agent with opens: its head gets a ↗ that opens
that agent in the pane, as a click on its roster row does. The lead keeps
a to-do note for each question a task asked the person, naming that task,
so the person answers it where it was asked. A send in the person's name
they did not name is asked with the ask tool, its why quoting their words
and saying what would go out and to whom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDPi56zM4MybbSLb2Z
Per the visual system: every colored mark has a shape of its own, so the
? stays as what needs the person and the bar is muted; yellow is kept for
what needs the person, so the margin's ↗ is cyan, as /open's is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDPi56zM4MybbSLb2Z
… reads, not only \n

A task's reply and its ask are quoted through one helper that also breaks
at CR, VT, FF, NEL and the Unicode line and paragraph separators.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGDPi56zM4MybbSLb2Z
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