Skip to content

Sonny: a lead steers its tasks onto a change landing elsewhere - #527

Merged
lydakis merged 2 commits into
mainfrom
claude/project-thread-9tjg9j
Oct 31, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/project-thread-9tjg9j

Conversation

@lydakis

@lydakis lydakis commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

What

When a lead hears of a code change on the code its tasks work on, from anyone (a teammate, another agent, the person), merged or still in review, in whatever review system the place uses, it now steers those tasks at once: rebase on it, build on it, or drop what it already does. It also tells the person about any collision or double work.

Before this, lead.md only checked what was in flight before briefing a task ("open pull requests and recent branches on those files"). Its generic "who else does it change" line could cover news that arrives later, but nothing pointed it at code changes that land after the work has started.

sonny/agents/lead.md, paragraph 3:

Before briefing a change of more than a few lines, check what is in flight there: changes under review and recent branches on those files, [...] so the task builds on the newest work. Hearing later of anyone's change there, landed or in review, steer each task on that code at once to rebase on it, build on it or drop what it duplicates; tell the person of any collision or double work.

"Open pull requests" became "changes under review", so the line no longer names one review system.

Budget

lead.md goes from 16,381 to 16,372 bytes (budget 16,384). To pay for the new sentence I merged or trimmed lines that said the same thing twice. Most of these cuts are the same ones the coordination-skill branch already made:

  • "send work that belongs to a running task to it" (the "Work in an area a task owns" paragraph says it)
  • ", a fix to what it built" (covered by "more changes on its branch")
  • ", or how it would take a note" and ", such as pause-1.TASK"
  • "correct your instruction" → "correct it"; "status, findings, plans" → "findings and plans"; "everything your sources report" → "all your sources report"

Eval

bench/role_eval.py now plants two scenarios in the existing day (docs/ROLE_EVAL.md, rows C1 and C2):

  • C1 (step 2): a teammate's commit really lands in the run's origin. It moves TIMEOUT from shop/session.py to shop/config.py, which is the line the sign-out fix changes, and a mail from code review announces it. It scores when the lead steers the sign-out task onto it before the merge. The new main.txt per run shows whether main ended up on that change.
  • C2 (step 5): a teammate's open review adds a CSV export. It scores when the lead tells the person it overlaps the export task.

Checks

  • cargo test -p sonny --lib shipped_roles_fit and --test shipped_text_names_no_service
  • I ran setup and land locally: the teammate's commit reaches origin only, and the local repo sees it after a fetch.

…eval plants one

When a lead hears of anyone's change on code its tasks work on, merged or
in review, in whatever review system, it steers those tasks at once to
rebase on it, build on it or drop the double work, and tells the person of
a collision or double work. lead.md stays under its 16 KiB budget by
merging and trimming sentences.

The role eval gains C1 (a teammate's commit pushed to origin on the
sign-out fix's code, announced by mail) and C2 (an open review that
duplicates the export), plus main.txt per run.

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

chatgpt-codex-connector Bot commented Oct 31, 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-31T16:21:21.922320Z 1057fef New commits
🔒 Security Review ⚠️ Failed 2026-10-31T16:20:28.112941Z
We couldn’t complete this review. Comment @codex security review to try again.
1057fef New commits
ℹ️ 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

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

@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: 54acacae26

ℹ️ 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 bench/role_eval.py Resolved
@chatgpt-codex-connector

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

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