Repository navigation
feat(spaces): Add a listSpaces tool that finds the Spaces a person can see - #4414
Merged
Merged
Conversation
The Lead now lists moveConversationToSpace, the same tool and move path as the dashboard's Move to Space. With no Space named, the tool moves the Conversation into the Space of the calling Conversation, so a Lead moves work into its own Space without copying an ID. A Lead Turn that no person sent, such as a Watch Event, now has no settings tools, so it cannot move work or change configuration. Co-Authored-By: David Cramer <[email protected]>
…n see Agents had no way to find a Space, so a move needed the person to paste a Space link. listSpaces lists every public Space and the calling Conversation's own Space, with the person's membership. A private Space shows only inside it, so its name stays with its members. The Lead gets it next to moveConversationToSpace. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
1 screenshot change — 1 changed · 0 added · 0 removed Review screenshots in Frameshift
|
dcramer
approved these changes
Nov 26, 2026
dcramer
enabled auto-merge (squash)
November 26, 2026 03:29
Co-Authored-By: David Cramer <[email protected]> # Conflicts: # packages/junior-evals/evals/agent/lead.eval.ts # packages/junior/src/chat/conversations/kind-behavior.ts # packages/junior/tests/integration/api/spaces.test.ts
This was referenced Nov 26, 2026
dcramer
added a commit
that referenced
this pull request
Nov 26, 2026
…ead design (#4428) States where Spaces and the Lead are heading. A Space uses the core Conversation tree (parents, roots, Participants, access, stops, archives, Watches, updates), and only a few Space-specific layers sit on top of it. - `design/spaces.md` is rewritten. The Lead is the root of the Space's tree. Every Space Conversation, whether the Lead starts it, a person starts it in the Space, or a person moves it in, is a child of the Lead and has the Lead as its root. Children inherit the Lead's Participants. Archive and snooze act per child. The file lists the Space layers explicitly: metadata, membership, configuration, the Lead's prompt and tools, moves, and rendering (the sidebar, the Threads panel, and top-level lists). - `design/lead.md` is new. It covers the Lead's role, its curated manager tool set (it runs Threads, reads, plans, and asks people, and it never writes or runs code), and the Turn gates: explicit reply on child and Event Turns, quiet `done` updates, and child results as claims. Gaps record what is not on main yet. - `design/agent-teams.md`: a Lead's team is its Space, and the Lead gaps move to `lead.md`. - `design/child-agents.md`: removes contradictions with Spaces. A move changes a child's parent, a moved Conversation delivers to its own Location, and the 8-child limit does not apply to a Lead's children. - `TERMINOLOGY.md`: updates Lead, Space, Thread, Team, Delivery, and Participant, and adds Top-level Conversation (derived, not stored). Related: #4377 (`thread` kind), #4411 and #4414 (moves), #4416 (Threads panel). #4413 edits some of the same lines. After this merges, it should drop those doc changes and delete only the gaps it closes. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A56172fc7761dc3a4c09f6bc7 --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3A56172fc7761dc3a4c09f6bc7) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A56172fc7761dc3a4c09f6bc7/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4411. Review only the top commit,
feat(spaces): Add a listSpaces tool…. It targetsmainbecause CI runs only on PRs tomain. Once #4411 merges, the diff shrinks to this commit.Agents had no tool to find a Space. To move work, the person had to paste a Space link.
listSpacesis a new deferred, read-only tool in thespacessource, next tomoveConversationToSpace. It uses the access rules thatlistSpacesinchat/spaces/store.tsalready has. It returns each Space's id, name, description, visibility, whether the person is a member, and a dashboard link. It leaves out archived Spaces, andmembership: "member"keeps only the person's own Spaces.Following
policies/conversation-access.md, a private Space's data stays with its members. So the tool lists every public Space, but a private Space only from a Conversation in it. From anywhere else, a person who wants to move work into a private Space still passes its link.Every Turn lists the tool, and the Lead gets it in
LEAD_TOOLS.Lead tools
main:startConversation,messageAgent,searchConversations,searchConversationEvents,readConversationEvent,searchInboxItems,searchEventTypes,watchEvents,watchTimer,listWatches,stopWatchingResources,systemTime,updateUserCustomization,setConfiguration,noReply.moveConversationToSpace(feat(spaces): Let a Space's Lead move Conversations when a person asks #4411) andlistSpaces(this PR).agents/lead-children) adds:startAgent,listAgents,stopAgent, andarchiveAgent, in place ofstartConversation. Space Conversations become the Lead's children, so archive and stop for them come from that PR, not from new code here.updateTodos,addInboxItem, andupdateInboxItem. This is on hold until the Lead-prompt overhaul recommends the Lead's tool set.via @dcramer.
--
View Session [Sentry]