Repository navigation
Description
Wave 2 of this week's Sonny feedback, worked on Thursday 2026-11-05. 0.9.0 ships Friday 2026-11-06 at 07:00 ET (12:00 UTC) as a release train. A slice ships only when it is complete and green by the 05:00 ET freeze. Anything left over moves to Wave 3 (#671). Wave 1 (0.8.1) is #669.
Order: five core slices, in dependency order, then small independent fixes alongside them, then additions once a slice is complete. IDs in parentheses refer to the feedback log.
Rules
- Daemon items need the owner's OK first; the ones marked "agreed" already have it.
- UI items are checked against the visual and interface systems before merge, with screenshots in the PR.
- Each Sonny PR adds a FEATURES.md row.
- Protocol 49 and schema 79 are the next free numbers. They are claimed through the owner of the contract that needs them.
- [design first] items change how agents act, decide or remember, or what they're told. Each gets a short design note before anyone builds it: the problem, what happens today, precedent elsewhere, the options, a recommendation, and the exact edits. The owner approves the note, and only then does the build start.
- Definition of done for each PR: the cause it removes; the invariant that holds after the fix; behavior across restart and replay; and one test that fails before the fix and passes after.
- One owner per shared contract: decisions and asks, execution records, the work measure, automation state.
Cross-feature tests, required wherever a slice touches them
- A write succeeds and then recording its result fails, under an ordinary rescan, pause/resume and a host restart. Expected: one effect, or an explicit unknown outcome.
- An ask is answered after its revision changed.
- A fresh cleanup run resumes an old cleanup transaction.
- A commons allowance spans several wakes, and a first invite arrives with a cold 1.5M-token context.
- A gate can't read its source.
- A transcript streams while it is resized and reopened.
Core 1. Truthful control [design first]
-
One decision representation (R3 builds on it; B1, B9, B17, E8, R4, B16, B19, B21 and J4 use it, in separate PRs). It records:
- what is being answered;
- the person's own words: an answer, or a direct instruction, which needs no manufactured ask;
- the action, target and revision those words cover;
- whether the decision still applies, revalidated at dispatch, so approving revision A never covers revision B;
- who wrote and who accepted any standing policy it relies on. An agent-written AGENTS.md is not the person's authority.
The same ask shows by reference in several windows and is answered once. The strict quote rule from Prompts name another person and quote turns by reference #477 stays until the replacement is settled. Full stays unchecked: the design separates what Auto enforces from what is only expected under Full.
-
A judge verdict that can't be malformed (C1): schema-constrained output where the provider supports it, otherwise a forced strict tool call; IDs and completeness validated. Speed is a separate cause (A1): the benchmark rerun splits time into building evidence, tool inspection, the verdict, and retries, and keeps inspection where correctness needs it. Whether tasks default to Auto (B2) depends on the whole workflow: tool-state access, false allows, false refusals and review failures.
Core 2. Safe execution [design first]
-
Minimum execution contract.
- Each external operation has a stable identity and a state: not dispatched, dispatched, completed, failed, or unknown.
- Replay-safe reads retry.
- Writes retry with the same idempotency identity where the destination supports it.
- An uncertain write is reconciled before it repeats.
Rich reconciliation and service-specific undo stay in Wave 3.
-
Links (K2, K3): before dispatch, a machine that just went quiet returns
not_connectedfast. After dispatch with no acknowledgment, the result is an uncertain outcome, not a quick failure that invites a retry. ssh warning lines aren't recorded as the error, and status is written on reconnect. -
Upgrade (H14): the new CLI replaces an old daemon, resends what failed on the protocol mismatch, and verifies the backup it promised.
-
"Sent as you" view (B14), built from the execution records. It shows attempted, completed and uncertain operations, and states its coverage limits: an approval is a decision, not proof of a send, and writes made from shell commands aren't seen.
Core 3. Working scheduled maintenance
-
A work measure for turn budgets (L9, L10, L11, T3, C5; daemon, agreed). It is durable and kept separate from provider usage, and has these properties:
- Existing context is free, whether the cache is warm or cold.
- New material isn't charged again on each resend.
- Compaction and elision don't refund what was spent.
- Parking and restarts don't reset it.
- The commons allowance across funded turns and the daemon's resume path use the same measure.
- Provider usage stays available for reporting and cost.
The design says how output, its replay, summaries and failed attempts count. Subtracting the starting context from every request doesn't satisfy this: it charges 10K, 20K, then 30K for three 10K rounds, and misbehaves after compaction.
-
A budget ends gracefully (L13). When the next call would cross the budget, it goes out with tool calls withheld, the way the round limit already works, so the agent ends with a reply. The turn completes, marked as ended at its budget rather than failed, and Sonny shows it as a neutral ending. A small reserve keeps that last call within the budget.
-
[design first] Fresh runs for job automations (T5). This covers automations that start a job bot; a reminder sent to an existing lead stays in that lead. The design keeps three things separate: the automation definition and its durable job state, each occurrence and its attempts, and the conversation. Cleanup ownership survives a conversation change, or is handed over explicitly. Test: cleanup A fails; fresh run B resumes it; another agent saves a fact; B removes too much; rollback restores the removals and keeps the unrelated save.
-
Memory cleanup on by default (T2), shipped together with the items above so it can finish. It tells "never configured" apart from "disabled by the person", so an upgrade doesn't recreate a schedule the person removed. It is listed under Automations. The
invalid_typeerror names its field (T4). -
[design first] Memory headroom (T1).
- The index cap scales by a rule or config instead of a fixed size, and warns before it fills.
memory_fullnames facts that look mergeable.- Index descriptions are capped.
- In-flight work state stays out of lasting memory: the memory skill says where it goes, and a kind of fact that expires is a design question.
- Consider a two-level index.
- No model call runs inside a save.
-
Monitor health (B12): "checked, nothing new" is healthy; "could not check" is not. The gate contract lands here too if it doesn't fit Wave 1. Where checks run is Goals: run goal checks (and trigger ifs) inside the bot's sandbox #355.
Core 4. Bounded context
- Context-window override plus a replay of the 200K compaction thrash, together (C4, C9). The override is set per provider, model maker or exact model; the most specific match wins; the 200K fallback stays. Each compaction logs the fixed instructions and tools, the kept messages, the summary size, the output reserve and the trigger reason. Done means useful headroom after compaction at 200K, or a precise statement that the fixed overhead alone doesn't fit.
- Headroom over many compactions (C10): drive a long-lived lead through about 20 compactions at 200K and at 1M, and assert that working headroom stays above a floor. A refused summary retries with a smaller ask instead of skipping compaction.
Core 5. Measured performance
- Reader pool, in stages (P1, P2): first store previews at write time and measure that alone; then demand-sized readers and one cache budget, measured separately. Use a fixed persisted trace, three operating points, burst-idle-burst runs, and a slow reader running beside short interactive reads.
- Idle windows: profile and fix unnecessary drawing before adding any shared poller (R6, A9).
- Sonny perf: memoize
lineage_of; compute Sky radial weights in one pass; streaming scan cursors; cap mermaidvar()expansion; fix the permission-name interner leak (P9.2, P9.3, P10.9, P9.9, P11.8).
Alongside the core (small and independent)
- Visual fixes.
- Sky: haiku limit, haiku weight, stream chat margins, model colors; haiku history length in config, with 0 keeping all (D2 to D7). Keeping all needs an append-friendly file or a size check.
- Composer: Ctrl-R above the composer, fold toggle, steer vs queued,
[image N], a Ctrl option for boost (E1, E3, E5 to E7). - Transcript: "worked for" line, zen width, /status fold, icon bar, emoji picker, dark-mode person rows, wrapped comment titles (F1, F3 to F5, F9, F11, H2).
- Margin cap and gutters (G1, G5); the working pulse and the ask pulse (F12); default effort label (C8); golden ticket count and side chat tools (I1, I2).
- Usage by model: the percentage wraps onto its own line (F16).
file://links in text open like web links (F17).- Quotes: a bare
>line, as in a quote with blank lines, and>textstay inside the quote instead of showing a literal>(F19). - The composer sometimes turns blue: check whether it's a color cached under the old theme or the terminal (F18).
- Stream, resize, theme change and reopen are tested together, by fixing cache keys and scroll anchors rather than adding one-off clears. See Sonny: reply rows rewrapped narrower than they were laid get a 4-column lead and lose quote bars #486 and Sonny: declined review findings (attach and reconnect races) #150.
- [design first] Background tab (F13): automations show their schedule in words, the next run and the last run. Follows show the source, the filter as readable conditions, the digest, when they steer, the defaults that apply, what they last heard and when they last woke the agent. It also answers the reverse question: which agents follow a given source, thread or agent (F15).
- Lookout says when it reloads a follow (L14): log a changed subscription file when it's re-read, and have the subscriptions listing show when each was last read, so a rewritten filter can be confirmed live.
- Command rules recognize wrapper forms by parsing (H3). Unknown forms stay explicit, and no prefix that carries environment or working-directory meaning is stripped. Rule changes apply on the next call.
- Bugs: launchd namespace (H1);
agent modelshint (H5); old env var (H6); old names (H8);write_stdinerror (H9); exacttool_searchmatch (H10); attach exit (H11); automations list scope (H13); setup defaults (H4); process name (A13);approval_askednoise (J12);running_processes(H-c1, daemon). - Browser profile docs and setup (S1 to S4): seed the profile only when nothing is set, and keep explicit config. Before removing the per-link profile key (S1b), detect any per-link profiles that would conflict.
- Profiling: first startup, Sky start, scroll jumps, cursor and resize flicker (A2, A4, A6, A7, F10).
After the core, when a slice is complete
- [design first] Agent lifecycle (B11, N4), designed together. Closing a window, stopping a turn, archiving an agent and deleting its history are separate actions. A count threshold isn't enough, because deleting one long-lived lead matters. Before a done project is hidden, the design defines what happens to its triggers, queued work and open asks.
remove_taskhitting bot_busy belongs here too. - [design first]
ideasuggestions together with idle tips (I7, I4); tab closing and /switch (B3, F7); margin posts in zen (G2). - [design first] Commons: search, threads shown before posting, note wording (L12, L1, L2, L11). Background notices kept out of invite turns (L6) is a bug fix. See Commons: a thread nobody answered gets a second invite #448.
- [design first] Lead role text and skills, checked with an eval.
- Role text items: B4, B7, B18, B22, B25.
- Zen (B27): the zen skill's description says everything else carries on as usual and only telling the person waits. An eval scenario checks that a lead in zen still coordinates on other topics.
- Ending quietly (M11): leads keep answering routine notes with a placeholder line even though a loaded memory fact says not to. Fix the role sentence that conflicts, and give the model a typed way to end without a reply, with no text matching on replies. An eval scenario runs a long series of routine notes.
- Status updates not being reactable (B5) is a UI and tool-contract rule, not role wording.
Activity
lydakis commentedon Nov 14, 2026
11-14 reconciliation: Wave 2 shipped across 0.9.0–0.9.5. Closing as a historical planning record.
sonny sent#732) was reverted in Revert thesonny sentjournal (#732) #755 on purpose.--start --freshgives each run of an automation its own agent #715; memory cleanup on by default Sonny: the nightly memory cleanup is on by default #724, Memory: a save past the head says so; the old nightly cleanup goes fresh #794, Memory: a caller that carries on an open cleanup joins its owners #763; memory headroom Memory: no index cap, agents start with its head; work facts; search #686, Memory: a save missing its type or name says what the fact needs #693; monitor health Sonny: /background tells a quiet check from one that could not check #700.What's still open from here is tracked in its own issues (#598, #335, #593, #517 and the others listed in #671's comment).
Generated by Claude Code