Skip to content

Commit a7ff996

Browse files
Merge origin/main into feat/children-without-agent-invocation-rows
Adapt the PR to main's stop model (#3962) and fork history (#3705): - Use stopConversationTree and resumeConversationTree. A stop cancels waiting parent messages before it saves the stop request. - Run both tree transactions through the SQL executor, so they nest as a savepoint inside the child-agent lock instead of committing it. - Commit a parent message's fork history with commitParentMessageFork. - Keep the reset of the automated-turn count for parent tasks. A person's stop of a Task now reports `stopped` before it saves the stop. The `stopped` result is keyed by a person-stop Turn id, so the loop-reply drop keeps it and the parent's mailbox read no longer skips it as a late reply of a stopped child. Co-Authored-By: David Cramer <[email protected]>
2 parents 149cf3d + 8952b71 commit a7ff996

480 files changed

Lines changed: 78530 additions & 10400 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/verify-junior/features/inbox.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ The Inbox is where work waits for a person. Junior adds an Inbox item: an action
44

55
## Sub-features
66

7-
- `ask` Junior asks the user. The item shows in the Inbox and in the Conversation, with one control per choice, a note line, `Send`, and `Dismiss`. A click picks a choice, and `Send` answers.
7+
- `ask` Junior asks the user. The item shows in the Inbox and in the Conversation, with one control per choice, a note line, and `Dismiss`, `Snooze`, then `Send`, in that order. A click picks a choice, and `Send` answers.
88
- `first-answer-closes` The first answer or dismiss closes the item everywhere, and the Inbox shows who closed it.
9+
- `snooze-someday` `Snooze` → `Someday` on a card hides the item for the viewer only, until it closes. It waits in Snoozed, and its transcript card says "Snoozed". The Slack card's `Snooze` opens `/inbox?item=<id>&snooze=1`, which opens the item's snooze dialog.
910
- `answer-resumes` An answer reaches the Conversation and Junior continues the work. A dismiss starts no Turn.
1011
- `thread-reply` An assignee answers with a reply in the Slack thread, and the item closes. A reply that only acknowledges leaves it open.
1112
- `groups` Open actions show under "Needs you" and notices under "FYI". A closed item shows only in search.

‎.oxlintrc.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
"packages/junior/tests/component/sandbox/snapshot/resolve.test.ts",
350350
"packages/junior/tests/component/runtime/agent-run-mcp-progressive-loading.test.ts",
351351
"packages/junior/tests/component/runtime/agent-run-sandbox.test.ts",
352-
"packages/junior/tests/component/briefs/conversation-brief-task.test.ts",
352+
"packages/junior/tests/component/conversations/metadata-task.test.ts",
353353
"packages/junior/tests/component/memory-plugin-storage.test.ts",
354354
"packages/junior/tests/component/plugins/plugin-registry.test.ts",
355355
"packages/junior/tests/component/task-execution/conversation-index-redis.test.ts",

‎CHANGELOG.md‎

Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,175 @@
11
# Changelog
22

3+
## 0.312.0
4+
5+
Junior expands everyday work across conversations, slides, inboxes, tasks, and automation, strengthens operations and testing, clarifies limits, and requires careful upgrade sequencing.
6+
7+
### New Features ✨
8+
9+
Adds Leads, resilient Conversations, Slides, Inbox, To-dos, and automation capabilities; upgrading requires removing briefs configuration, while userLookup provider selection is optional.
10+
11+
#### Conversations
12+
13+
- Accept the lead Conversation kind by @dcramer with @sentry-junior in [#3735](https://github.com/getsentry/junior/pull/3735)
14+
- Hold automated input only while a Conversation is stopped by @dcramer with @sentry-junior in [#3962](https://github.com/getsentry/junior/pull/3962)
15+
- Show related open conversations on a first Turn by @dcramer with @sentry-junior in [#4002](https://github.com/getsentry/junior/pull/4002)
16+
- Store Conversation metadata in core by @dcramer with @sentry-junior in [#3486](https://github.com/getsentry/junior/pull/3486)
17+
18+
#### Dashboard
19+
20+
- Make the Lead the dashboard home by @dcramer with @sentry-junior in [#3741](https://github.com/getsentry/junior/pull/3741)
21+
- Hold read events by seq and link to transcript rows by @BYK with @sentry-junior in [#3974](https://github.com/getsentry/junior/pull/3974)
22+
- Steer the running Turn with a dashboard message by @dcramer with @sentry-junior in [#3907](https://github.com/getsentry/junior/pull/3907)
23+
- Measure catch-up offers and readers by @BYK with @sentry-junior in [#3963](https://github.com/getsentry/junior/pull/3963)
24+
- Show questions as cards in the transcript by @BYK with @sentry-junior in [#3933](https://github.com/getsentry/junior/pull/3933)
25+
26+
#### Google
27+
28+
- Insert sandbox images in Google Slides edits by @dcramer with @sentry-junior in [#3845](https://github.com/getsentry/junior/pull/3845)
29+
- Create Google Slides presentations by @dcramer with @sentry-junior in [#3980](https://github.com/getsentry/junior/pull/3980)
30+
31+
#### Inbox
32+
33+
- Snooze question cards, with Someday for shared items by @BYK with @sentry-junior in [#3964](https://github.com/getsentry/junior/pull/3964)
34+
- Show why a snoozed item woke by @BYK with @sentry-junior in [#3968](https://github.com/getsentry/junior/pull/3968)
35+
- End Inbox row actions with the main action by @BYK with @sentry-junior in [#3961](https://github.com/getsentry/junior/pull/3961)
36+
- Lead pull request rows with the title and open the PR first by @BYK with @sentry-junior in [#3941](https://github.com/getsentry/junior/pull/3941)
37+
38+
#### Lead
39+
40+
- Let a Lead watch the Conversations that it may read by @dcramer with @sentry-junior in [#3745](https://github.com/getsentry/junior/pull/3745)
41+
- Give the Lead its own prompt, tools, and startConversation by @dcramer with @sentry-junior in [#3737](https://github.com/getsentry/junior/pull/3737)
42+
43+
#### Todos
44+
45+
- Close a child agent's To-dos when it finishes by @sentry-junior in [#3935](https://github.com/getsentry/junior/pull/3935)
46+
- Replace the Plan with To-dos by @BYK with @sentry-junior in [#3824](https://github.com/getsentry/junior/pull/3824)
47+
48+
#### Other
49+
50+
- (automations) Add design-automation-skill and steer skill-mode automations by @dcramer with @sentry-junior in [#3989](https://github.com/getsentry/junior/pull/3989)
51+
- (cache-warming) Warm longer while waiting on a child agent by @BYK with @sentry-junior in [#3901](https://github.com/getsentry/junior/pull/3901)
52+
- (ci) Report the always-on prompt tokens as a check by @dcramer with @sentry-junior in [#3942](https://github.com/getsentry/junior/pull/3942)
53+
- (github) Let createPullRequest name the assignees by @dcramer with @sentry-junior in [#3813](https://github.com/getsentry/junior/pull/3813)
54+
- (identities) Let userLookup search every identity provider by @dcramer with @sentry-junior in [#3959](https://github.com/getsentry/junior/pull/3959)
55+
56+
### Bug Fixes 🐛
57+
58+
Improves automation, caching, search, sandboxing, telemetry, and errors; named destinations require Junior’s membership, and Guardian queries must use the renamed field.
59+
60+
#### Automations
61+
62+
- Say that reply posts an Automation run to its destination by @dcramer with @sentry-junior in [#3992](https://github.com/getsentry/junior/pull/3992)
63+
- Name every task field problem in one rejection by @sentry-junior in [#3994](https://github.com/getsentry/junior/pull/3994)
64+
- Deliver only to channels Junior is already in by @dcramer with @sentry-junior in [#3944](https://github.com/getsentry/junior/pull/3944)
65+
66+
#### Cache Warming
67+
68+
- Compact on idle when the request snapshot is too large to store by @BYK with @sentry-junior in [#3921](https://github.com/getsentry/junior/pull/3921)
69+
- Follow-ups to compaction on idle by @BYK with @sentry-junior in [#3917](https://github.com/getsentry/junior/pull/3917)
70+
71+
#### Dashboard
72+
73+
- Keep the Conversations list layout steady after mount by @sentry-junior in [#4001](https://github.com/getsentry/junior/pull/4001)
74+
- Stop event links past the last event from reading forever by @sentry-junior in [#3988](https://github.com/getsentry/junior/pull/3988)
75+
- Show public dashboard conversations as one Dashboard location by @BYK with @sentry-junior in [#3986](https://github.com/getsentry/junior/pull/3986)
76+
- Let a scroll right after a bottom pin pause follow by @dcramer with @sentry-junior in [#3979](https://github.com/getsentry/junior/pull/3979)
77+
- Open transcript links in the same tab by @dcramer with @sentry-junior in [#3922](https://github.com/getsentry/junior/pull/3922)
78+
79+
#### Guardian
80+
81+
- Record proposal size and abort source on the review span by @dcramer with @sentry-junior in [#3987](https://github.com/getsentry/junior/pull/3987)
82+
- Record the fired rule and an unscrubbed user authorization level by @dcramer with @sentry-junior in [#3950](https://github.com/getsentry/junior/pull/3950)
83+
84+
#### Mcp
85+
86+
- Name the configured providers in searchMcpTools by @sentry-junior in [#3985](https://github.com/getsentry/junior/pull/3985)
87+
- Register API operation tools from the tools directory by @dcramer with @sentry-junior in [#3931](https://github.com/getsentry/junior/pull/3931)
88+
89+
#### Sandbox
90+
91+
- Report a replaced sandbox session and rotate old sessions by @dcramer with @sentry-junior in [#3710](https://github.com/getsentry/junior/pull/3710)
92+
- Wait for the Vercel guest CA refresh before returning a session by @dcramer with @sentry-junior in [#3972](https://github.com/getsentry/junior/pull/3972)
93+
94+
#### Search
95+
96+
- Bound the event search backfill scan by @BYK with @sentry-junior in [#3956](https://github.com/getsentry/junior/pull/3956)
97+
- Match Annotations in conversation search by @dcramer with @sentry-junior in [#3431](https://github.com/getsentry/junior/pull/3431)
98+
99+
#### Sentry
100+
101+
- Send every error event whose id a failed turn shows by @dcramer with @sentry-junior in [#3826](https://github.com/getsentry/junior/pull/3826)
102+
- Publish metric monitor firings sent as issue alerts by @dcramer with @sentry-junior in [#3982](https://github.com/getsentry/junior/pull/3982)
103+
104+
#### Other
105+
106+
- (agent) Decide Turn membership by event seq by @dcramer with @sentry-junior in [#3705](https://github.com/getsentry/junior/pull/3705)
107+
- (chat) Name the upstream provider when a model call fails a turn by @dcramer with @sentry-junior in [#3825](https://github.com/getsentry/junior/pull/3825)
108+
- (github) Ask again when a merge conflict item closed without a Dismiss by @sentry-junior in [#3916](https://github.com/getsentry/junior/pull/3916)
109+
- (images) Describe imageGenerate by what it edits and returns by @dcramer with @sentry-junior in [#3993](https://github.com/getsentry/junior/pull/3993)
110+
- (inbox) Repair agent items that use the reserved automation: key by @sentry-junior in [#3998](https://github.com/getsentry/junior/pull/3998)
111+
- (subagents) Tell the parent when a replying child still works by @dcramer with @sentry-junior in [#3983](https://github.com/getsentry/junior/pull/3983)
112+
- (system) Type the warmup cost field in the cache health read by @BYK with @sentry-junior in [#3955](https://github.com/getsentry/junior/pull/3955)
113+
- (tools) Name the next call in executeTool's unknown tool error by @dcramer with @sentry-junior in [#3915](https://github.com/getsentry/junior/pull/3915)
114+
115+
### Documentation 📚
116+
117+
#### Design
118+
119+
- Remove off-topic design doc rules, and require confirmation for design doc changes by @dcramer with @sentry-junior in [#3951](https://github.com/getsentry/junior/pull/3951)
120+
- Record gaps and cuts from the 2026-11-21 audit by @dcramer with @sentry-junior in [#3940](https://github.com/getsentry/junior/pull/3940)
121+
122+
### Internal Changes 🔧
123+
124+
Updates testing, evaluations, GitHub, Inbox, linting, tools, and conversations; deploy new GitHub code before 0017, while review\_items:read remains an MCP alias.
125+
126+
#### Dashboard
127+
128+
- Hover person cards after the transcript settles by @dcramer with @sentry-junior in [#3984](https://github.com/getsentry/junior/pull/3984)
129+
- Paste and pick mentions like a person in composer e2e by @dcramer with @sentry-junior in [#3976](https://github.com/getsentry/junior/pull/3976)
130+
- Pick snooze Events from the list that opened by @BYK with @sentry-junior in [#3928](https://github.com/getsentry/junior/pull/3928)
131+
- Revalidate spend, the Inbox list, and Conversation memories by @BYK with @sentry-junior in [#3960](https://github.com/getsentry/junior/pull/3960)
132+
- Read the versions poll's Conversation tokens in one grouped pass by @BYK with @sentry-junior in [#3954](https://github.com/getsentry/junior/pull/3954)
133+
- Pick e2e options through pickOption by @dcramer with @sentry-junior in [#3925](https://github.com/getsentry/junior/pull/3925)
134+
135+
#### Evals
136+
137+
- Ask the loaded-reply fork what was picked, not the live color by @sentry-junior in [#4005](https://github.com/getsentry/junior/pull/4005)
138+
- Ask for a DM by name in the direct reminder case by @dcramer with @sentry-junior in [#3997](https://github.com/getsentry/junior/pull/3997)
139+
- Expect dashboard messages to steer the running Turn by @dcramer with @sentry-junior in [#3990](https://github.com/getsentry/junior/pull/3990)
140+
- Read the MCP auth intent from the call that connected by @sentry-junior in [#3978](https://github.com/getsentry/junior/pull/3978)
141+
- Serve the draft commits and GitHub status that integration webhooks read by @dcramer with @sentry-junior in [#3975](https://github.com/getsentry/junior/pull/3975)
142+
143+
#### Github
144+
145+
- Stop copying draft and terminal times of Junior pull requests by @BYK with @sentry-junior in [#3911](https://github.com/getsentry/junior/pull/3911)
146+
- Revalidate webhook reads with ETags and reuse installation tokens by @BYK with @sentry-junior in [#3919](https://github.com/getsentry/junior/pull/3919)
147+
148+
#### Inbox
149+
150+
- Rename Review item to Inbox item by @BYK with @sentry-junior in [#3936](https://github.com/getsentry/junior/pull/3936)
151+
- Wait for the Event options to close before the next pick by @dcramer with @sentry-junior in [#3918](https://github.com/getsentry/junior/pull/3918)
152+
153+
#### Lint
154+
155+
- Use p-limit in the check runner by @BYK with @sentry-junior in [#3977](https://github.com/getsentry/junior/pull/3977)
156+
- Discover repo checks from scripts/ and read files async by @BYK with @sentry-junior in [#3973](https://github.com/getsentry/junior/pull/3973)
157+
- Run the repo check scripts from one runner by @sentry-junior in [#3952](https://github.com/getsentry/junior/pull/3952)
158+
- Fail when a check baseline grows, and pair each rule with its check by @dcramer with @sentry-junior in [#3612](https://github.com/getsentry/junior/pull/3612)
159+
160+
#### Tools
161+
162+
- Define every tool in a tools directory by @dcramer with @sentry-junior in [#3895](https://github.com/getsentry/junior/pull/3895)
163+
- Keep only tools in tools directories by @dcramer with @sentry-junior in [#3894](https://github.com/getsentry/junior/pull/3894)
164+
165+
#### Other
166+
167+
- (api) Serve shared Conversation operations to REST and MCP from one definition by @dcramer with @sentry-junior in [#3912](https://github.com/getsentry/junior/pull/3912)
168+
- (conversations) Read each status fact once and skip idle authorization lookups by @BYK with @sentry-junior in [#3965](https://github.com/getsentry/junior/pull/3965)
169+
- (deps) Move p-limit to the pnpm catalog by @BYK with @sentry-junior in [#3981](https://github.com/getsentry/junior/pull/3981)
170+
- (sql-budget) Add a plan-cost budget for polled API routes by @BYK with @sentry-junior in [#3967](https://github.com/getsentry/junior/pull/3967)
171+
- (watches) Create the event Watch after the timer in the cancel test by @dcramer with @sentry-junior in [#3957](https://github.com/getsentry/junior/pull/3957)
172+
3173
## 0.311.0
4174

5175
Junior expands review, memory, inbox, planning, and integration capabilities while tightening workflows and documentation, requiring targeted client migrations for renamed inputs and identifiers.

‎TELEMETRY.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ attributes. Nested logs and spans inherit them.
7575
| History search slow or missed | `app.event_search.*` on `gen_ai.execute_tool` (`searchConversationEvents`) | `chat/conversations/event-search.ts` |
7676
| History search results crowded | `app.event_search.{result,top5}.<kind>.count`, `app.event_search.{result,top5}.current_turn.count` | `chat/conversations/event-search.ts` |
7777
| Conversation search lost meaning | span `conversation_embeddings.backfill`, `app.conversation_embeddings.backfill.*` | `chat/conversations/embedding-backfill.ts` |
78+
| Related conversations missing/noisy | span `plugin.hook userPrompt` (`related-conversations`), `app.related-conversations.*`, `related_conversations_provider_failed`, `plugin.user_prompt.hook.failed` | `chat/related-conversations/find.ts` |
7879
| History search index behind | span `event_search.backfill`, `app.event_search.backfill.*` | `chat/conversations/event-search-backfill.ts` |
7980
| Tool calls ran one at a time | `app.tool_batch.*` on `gen_ai.invoke_agent`, `app.sandbox.bash.wait_ms` on `bash` | `chat/agent/tool-batch.ts` |
8081
| Automation did not run or post | `scheduled_automation.*`, `scheduled_automations.heartbeat.*`, `automation.blocked_notice.failed` | `chat/scheduled-automations/` |

‎TERMINOLOGY.md‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@ Canonical words for Junior code and docs. One concept, one word.
1414
- **Deployment**: a revision sent to a target environment.
1515
- **Conversation**: the durable container for visible history and execution
1616
state, keyed by a unique `conversationId`. Parent is optional and separate
17-
from Location. Its `kind` is `root`, `automation`, `thread`, or `task`, and
18-
never changes. `automation` is a top-level Conversation for an Automation run.
17+
from Location. Its `kind` is `root`, `automation`, `lead`, `thread`, or
18+
`task`, and never changes. `automation` is a top-level Conversation for an
19+
Automation run.
1920
A Conversation is the default. Slack is a Destination attached to it. Do not
2021
say "web Conversation".
22+
- **Lead**: one person's private top-level Conversation that finds, starts,
23+
and steers their other Conversations. It has no child agents and does no
24+
work itself. `startConversation` starts a public root for the person.
2125
- **Thread**: a child Conversation that people can message like a root. Say
2226
"Slack thread" for the Location. A bare "Thread" is the Conversation.
2327
- **Task**: a child Conversation that only its parent messages. People can
2428
view it. Existing code names with `task` (`task-execution`, the Ticket
2529
`task` type, the `spawnAgent` `task` field) keep their meaning.
2630
- **Subagent**: the mechanism behind Threads and Tasks (`spawnAgent`, Agent
2731
bindings, Agent invocations). Not a UI word.
28-
- **Brief**: the versioned record of a Conversation's intent, outcome,
29-
decisions, facts, and evidence. Public Briefs outlive the transcript.
32+
- **Conversation metadata**: the stored facts about a Conversation: its
33+
title and summary. A core task updates the summary after each Turn. A
34+
public summary outlives the transcript.
35+
Do not say "Brief"; it is the retired name.
3036
- **Catch-up**: a short summary of the rows after a reader's read position,
3137
and what waits on them. Made on request and not stored.
3238
- **Source**: the input that caused work (Slack message, CLI, dashboard,
@@ -202,8 +208,9 @@ Canonical words for Junior code and docs. One concept, one word.
202208
- **Snooze**: one User hides one Inbox item in their Inbox until a
203209
trigger, such as a timer or an Event, wakes or resolves it. A later item
204210
in the row is not snoozed.
205-
Not an Automation. **Snoozed** (Inbox): the view of the User's snoozed
206-
items.
211+
Not an Automation. **Someday**: a Snooze with no trigger. It lasts until
212+
the item closes, such as when someone else handles it, or until the User
213+
wakes it. **Snoozed** (Inbox): the view of the User's snoozed items.
207214
- **To-do**: one entry in the durable list of work that outlives a Turn in
208215
one Conversation, changed with `updateTodos`. Not a Task or a Plan. Its
209216
status is open, in progress, done, or dropped. It has one Assignee: the

‎apps/example/server.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const [
1616

1717
const app = await createApp({
1818
allowedDomains: ["sentry.io"],
19-
briefs: { enabled: true },
2019
dashboard: {
2120
authRequired: exampleDashboardAuthRequired(),
2221
mockConversations: exampleDashboardMockConversations(),
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
id: conversation-archive-one-writer
2+
language: TypeScript
3+
severity: error
4+
message: "Only setArchivedAt in packages/junior/src/chat/conversations/sql/conversation-tree.ts may write a Conversation's archived_at. Call setArchivedAt, with a guard when the write must still hold for the latest row."
5+
files:
6+
- packages/junior/src/**/*.ts
7+
ignores:
8+
- packages/junior/src/chat/conversations/sql/conversation-tree.ts
9+
rule:
10+
pattern: $DB.set($VALUES)
11+
has:
12+
stopBy: end
13+
any:
14+
- kind: pair
15+
regex: '^archivedAt\s*:'
16+
- kind: shorthand_property_identifier
17+
regex: ^archivedAt$

0 commit comments

Comments
 (0)