Skip to content

Sonny: the sky draws who each spark comes from - #601

Merged
lydakis merged 80 commits into
mainfrom
claude/project-thread-hqb8h7
Nov 1, 2026
Merged

lydakis merged 80 commits into
mainfrom
claude/project-thread-hqb8h7

Conversation

@lydakis

@lydakis lydakis commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner

George asked why auto review appears on the sky as a streak from the edge into the auto dot, and whether everything that comes "from the sky" should. This PR makes each spark come from whoever actually sent it. It also gives the haiku more room under the key hints.

Auto review

  • Not drawn: a reviewer's question to its own throwaway copy. That question used to show as a judge → auto from the edge.
  • Drawn: the verdict, on the agent whose call it was.
    • A red streak lands on the agent when a reviewer denies the call, with ✗ auto denied cart's shell in the log. This covers both tool calls (tool_completed) and MCP steps inside exec (step_decided). The reviewer is named from the completion's recorded verdicts (approvals); the person's own no, even on a call a reviewer allowed first, draws nothing.
    • A yellow streak lands when the reviewer hands the call to the person; the existing ? docs waits for you line follows.
    • An allow draws nothing, because the call runs and its twinkle already shows that.

What comes in from no agent

Origin Before Now
Follows, another person a client names, unknown senders edge edge (unchanged)
A schedule firing edge edge, and the agent's schedule tick flashes (plain and longer for 1.5 s)
Commons invite edge from the thread's starter (commons::starter, which reads only the thread's first line), when that agent is on the sky
Commons reply note edge edge (unchanged): the wake is shared by every reply since the agent last read, so it has no single sender
Task update (lookout.tasks) edge edge (unchanged): the note doesn't say which tasks it tells of, and its quotes are the person's words
Margin note closed edge from the person
An agent's own goal edge its star pulses, no spark (login keeps at its goal)

Spacing

The haiku now sits two blank rows under the key hints, twice the gap between its lines and its signature, so it reads as its own block. The chat log beside the sky also keeps two blank rows above the footer, to match.

Screens

sky origins

Checks

cargo fmt --all --check, cargo clippy -p sonny -p agent-client --all-targets -D warnings and cargo test -p sonny -p agent-client all pass. New tests: verdict streaks (an exec step denial, and the person's no after a reviewer's allow), origins, and a thread keeping its starter whoever replies.

🤖 Generated with Claude Code

claude added 30 commits October 31, 2026 00:08
… profile in the footer, reply ↩

The composer sits on the tinted band the person's messages use, from the
row above it down, with a rule in its place without colour. Commons posts
name their model as people say it (Opus 5.5, GPT 6.1 Sol), with provider,
region and vendor prefixes left off. The footer names the profile when it
isn't the seat's own. A message under the mouse shows ↩ in place of its
bullet, and a click quotes it into the composer; margin notes have their
own ↩, and /reply picks an older reply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…t shows

A reply that opens with a heading has no bullet, so its first row is now
marked when it is written and the reply mark finds it; a note brought in
from a task quotes what it showed when last read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…w reads

The composer's band now has a row above and below the words, and so do your
sent messages, so what you write looks as it will once sent and the words sit
in the middle of the band, not on its bottom edge. The footer keeps to the
conversation's column, its right edge where the band's is.

Dim over a hue (the footer's branch and agent name, a task's name in a quiet
row) fell under 3:1 in many themes. The muted look now draws a hue on a dim
row at full strength and keeps the words round it muted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Magenta means you and blue means agents everywhere else in Sonny, but the
sky drew agent-to-agent sparks magenta, your own sparks in plain bold, and
the commons ripple green (worked). Now:

- what goes to or from you is magenta, "you" in the middle too;
- what goes between agents is blue;
- a commons post ripples in the text's own colour: the ring says it;
- who made whom and who talked are muted, in the measured gray that still
  reads in every theme, so the stars and what happens now stand out;
- names stay in the text's colour: every label on the sky is a name, so
  blue would say nothing more;
- `sonny sky` on its own asks the terminal for its theme and draws through
  the same look, so its muted gray and NO_COLOR match the conversation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
# Conflicts:
#	sonny/FEATURES.md
Hues on the sky come down to yellow for what needs you and red for what
failed, plus the cyan tool twinkle; magenta and blue leave it. Structure
takes a new faint weight, measured at about 2.2:1 against the theme's
background, so lines read without competing with marks and names.

A pair that talked in the last minute shows a faint trail that fades. A
chat log sits beside the sky when the pane is wide, newest at the bottom,
fading as it rises, with asks, approvals waiting and failures in their
colour; `?` swaps it for the legend and a few numbers (projects, leads,
agents, messages and tool calls a minute and this hour, the busiest
pair). Working stars breathe slowly, each on its own phase; idle ones
rest muted. `z` is zen: the sky alone, with only what needs you or
failed named. The commons ripple is smaller and the glow halo is gone.
Names keep a blank cell from each other and from other agents' stars.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
The list sized itself for one log line under its blank, but up to five
were drawn, so a full list pushed the newest (an approval waiting, a
failure) off the bottom.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Tab swaps lenses on the same agents and events: live, the default; talk,
an hour of trails, denser the more a pair talked, the busiest reaching
muted, where loops and storms show; models, each model in a lead's
place with its agents round its muted name. The footer names the lens
when it isn't live.

The arrows pick a star (its name reversed, as a picker's selection is)
and Enter puts it in the middle: its maker, what it made and whoever it
talked to in the last hour on the first ring, the person included, two
hops on the next. The chat log keeps only its agent's lines and the
footer says whose sky it is. Stars glide to their new places over 0.8s
so the eye keeps its bearings. Esc lets go of the pick, then the centre,
then closes. `sonny sky --center NAME` starts centred, by name, label
or project.

The layout is one radial function now, used by the tree, the models and
the rings by hops. The keys live in `View::press`, shared by the pane
and `sonny sky`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
The sky is an ellipse that fills its canvas, two dots in from the edges,
at most twice as wide as high, so a wide pane has no empty sides; rings
stay round. Projects keep their arms in the order they started (the
daemon's ids), a lead first, so a new project takes the next place
rather than reshuffling the rest, and agents within an arm likewise.
Each arm is as wide as the square root of what is under it, so one big
project can't squeeze the others to nothing. Layout changes glide over
a third of a second.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A message landing flashes round its star again, shrinking as it fades.
Each landing adds to the agent's heat, which halves as a glow does, and
the flash's radius follows the log of it, bounded, so an agent being
messaged a lot flashes bigger. A commons ripple spreads as far as its
thread reaches: how many other agents have read it or posted in it,
from the commons' own record. A post to an empty board stays small.
Both stay faint and unhued.

Labels keep a blank cell from their own star too, whichever cells it
covers, and the frame-time benchmark is an ignored test for step 4.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Its work is on main as 21603c6; this joins the branch's old history so
the push fast-forwards.
The landing flash is sized in braille dots, as the star it rings is,
whatever the pane: one message's ring stands six dots off its star, and
its area grows with the heat, √2 wider each doubling (6, 8.5, 12, 17
dots). Cooling, it fades where it is instead of closing on the star.

A centred sky lays out again when a pair starts or stops talking, so
its rings stay hops through the last hour. An agent made while the sky
is open keeps its model. Too small for the sky, the arrows walk the
list, which shows the pick reversed and keeps it in view.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
With thousands of agents only the interesting are stars: who needs the
person, failed, works, glows or leads, scored by interest (Furnas's
degree of interest), as many as the pane has room for. The rest are a
faint dot each, so a cloud's density says its size; a crowd of leaves
under one agent spreads inward into a cloud. Only the biggest clouds
carry a count, at most half as many as the names.

Names keep a blank row from each other, sit beside, over or under their
star, and fill the budget in turn when one has no room; the leads of
the biggest projects are named first. The newest dozen sparks fly.

Frame times (release): 300 agents 0.9 ms, 3,000 1.6 ms, 10,000 3.2 ms
a frame (was 6.6 ms at 10,000).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A `configured` event says only which settings changed, so when the
model is among them the sky reads the agent again and moves it to its
model's group.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A message landing bursts round its star and shrinks into it as it
fades, halving every 0.9 s, as it did in 0.7.0, in today's muted then
faint ink. Its size is in braille dots, whatever the pane: one message
bursts as far as 0.7.0's did (5 dots), each doubling of messages at
once √2 wider (its area grows as the heat does), up to 0.7.0's commons
ripple at its widest (24 dots, about two dozen at once).

The chat log beside the sky stops at 12 lines at its foot, three plain,
six muted and three faint, ending where its fade does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Every event now carries `written_ms`, the Unix ms it joined the store, as
history nodes do since #477; events from before schema 68 have none.
`follow` takes `since_ms` instead of `after` and starts from the first
event written at or after it, found by halving the cursor range (cursors
and times rise together), a few point reads however many events are kept.
It is the `usage` op's word for a start time. `agent follow --since 1h`
sends it; `--since` conflicts with `--after`.

This is what a client needs to replay a stretch of the past without
knowing its cursors: step 5 of the sky design, approved by George.

Schema 68, protocol 28.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
An event is written now or, should the clock have gone back, when the
event before it was, so times rise with cursors and a follow from a time
skips nothing (as a log's time index keeps them). The binary search reads
its bounds with one subquery each, which SQLite answers from the key's
ends instead of scanning. `agent follow --since` takes its time before the
snapshot of the running turn, so a turn ending in between is replayed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…hour, dot agents, bursts both ends, a circle, m for models

Every pair that has talked keeps a curve again, past turns and live, the
last 96 pairs at 0.7.0's weight, denser and brighter the more the pair
talked this hour (past turns counted by the time the daemon wrote them).
One view: the talk and models lenses go; m colours each agent by its
model in place, the footer naming the colours. An agent at rest is a
single dot, a breathing block while it works. Sparks and bursts are
coloured where 0.7.0 coloured them, in the visual system's hues: blue
between agents, magenta to or from the person, both ends bursting, sized
by heat. The sky is a circle again. A name keeps a clear cell either
side so the denser web never runs into it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
`r` in the sky, or `sonny sky --replay [WHEN]`, plays back what happened
from an hour ago, or from WHEN (2h, 30m, 1d ago, or a time such as 02:10).
The sky starts from who is here now, less those made since, all idle, and
the daemon's events from then on play over it as they happened, eight
times as fast: the replay follows `*` from `since_ms` and plays each event
once its written time comes. Space pauses, the left and right arrows step
back and on, [ and ] halve and double the speed (1 to 512 times), and Esc
goes back to live. The footer becomes the replay's line, a bar from where
it started to now, and the chat log says when each line happened.

A jump plays every event it passes, each stamped as long ago as it would
have been had it played, so trails and counts read as playing would and
its sparks have long landed; a spark now lands when its flight ended, not
on the frame that noticed. Stepping back starts again from the start.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
claude added 22 commits October 31, 2026 17:29
A busiest agent named near the daemon's limit made the copy's name, or
its submit's request id, invalid after the day's claim was counted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
…-hqb8h7

# Conflicts:
#	client/src/config.rs
#	sonny/FEATURES.md
#	sonny/src/config.rs
…p then

Replay read only events from its start, so the web of who has talked,
which live seeds from past turns, began empty. It now reads the last
message of each pair before its start on a connection of its own, and
what goes off the tape's start joins it. The haiku file keeps a day of
haikus, and a replay shows the one up at its time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A haiku another sky wrote while a replay played never showed when the
replay reached it: the day's haikus were read once, as it opened.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Its words come in on the replay's clock: faster as the replay speeds
up, held still while it is paused (George).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
Each agent a trigger wakes carries a short tick just outside its star,
muted, plain once its next run is near (a tenth of the gap between runs,
at least a minute). When an agent makes a schedule with the triggers
tool, a spark flies from it to that agent's tick and the chat log says
what it is and who set it ("login every 30m, by shop lead"); one made
elsewhere is logged as new when the store is next read. `?` lists the
next three up.

The sky reads the trigger store off the render thread every two seconds
(sonny/src/trigger.rs `upcoming`), on the daemon's store, never in a
replay. The tape keeps a trimmed triggers add (whom and how often, not
its message).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
# Conflicts:
#	sonny/FEATURES.md
…panes

A call id is unique only within its turn, so a pending triggers call is
kept by agent, turn and call id: another agent's completion of the same
id no longer tells of it. In a short side column the legend's last rows
give way to what is now, so "next up" shows at 24 rows, and the legend
under a narrow sky gains a row for schedules and what is next up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A reviewer's question to its own copy is no longer drawn as a spark from
the edge into auto. Its verdict is: a red streak onto the agent whose
call it denied, a yellow one when it hands the call to the person, and
nothing for an allow, whose call runs.

What comes in from no agent flies from the edge only when it is from
outside: a follow, another person, a schedule, whose tick now flashes as
it fires. An invite or a reply's note from the commons flies from whoever
posted in the thread, a task update from the one task it quotes, a margin
note closed from the person, and an agent's goal only pulses its star.

The haiku sits two blank rows under the key hints, and the chat log two
above the footer.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
A step of a call (an MCP call inside exec) a reviewer refuses comes as
step_decided: it streaks red too, and every decided step leaves the
calls kept waiting on a reviewer. A commons invite flies from the
thread's starter, read from its first line only, which never changes and
costs the same however long the thread grows; a reply's note, whose
author the thread could later misname, comes from the edge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013jkdGEUbnoEt6cpedcLYEa
@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-01T08:31:05.773888Z 899e392 New commits
🔒 Security Review ✅ Completed 2026-11-01T08:09:05.123995Z e1be563 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: e1be5638bf

ℹ️ 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/sky.rs Resolved
Comment thread sonny/src/commons.rs Resolved
Comment thread sonny/src/sky.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: 3139a41e14

ℹ️ 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/sky.rs Resolved
Comment thread sonny/src/sky.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: 12f03b2d5a

ℹ️ 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/sky.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: 4aedb9d39c

ℹ️ 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/sky.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: cda51774c5

ℹ️ 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/sky.rs Resolved
@lydakis
lydakis merged commit d86fa8f into main Nov 1, 2026
10 checks passed
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