Skip to content

feat(spaces): Add nested Spaces for Conversations - #1988

Closed
sentry-junior[bot] wants to merge 6 commits into
mainfrom
feat/spaces-landscape
Closed

sentry-junior[bot] wants to merge 6 commits into
mainfrom
feat/spaces-landscape

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Implements the Spaces concept from #1784. A Space is a nested forum category of root Conversations. Each Space points only at its parent, so moving a Space moves its whole subtree and every assigned Conversation with one update.

What it does

  • After a Brief is stored, a classifier picks an existing Space for an unassigned root Conversation or proposes a new one under an existing parent. It runs once per Conversation.
  • Agent tools (deferred spaces source) browse, create, rename, move, merge, archive, and assign. A tool assignment is pinned, so the classifier never overrides it.
  • junior spaces backfill replays the classifier over existing Conversations, oldest first. The default dry run writes nothing and prints the tree that would emerge, with counts and sample titles. --apply writes it.
  • A read-only /api/spaces API and a forum-style /spaces dashboard page show breadcrumbs, child Spaces, and public Conversations.
  • Current state lives in junior_spaces and junior_conversation_spaces. Every change is also appended to junior_space_changes.

Privacy

Private content never names a Space. A private Conversation can join an existing Space, but the classifier cannot create one for it, and the create and update tools are absent there. The change log keeps a reason only for public Conversations. Browsing lists public Conversations and only counts private ones.

Design note for review

Spaces live in core beside Briefs instead of in a plugin as #1784 proposed. The classifier reads Briefs, and the dashboard, privacy gate, and Turn tasks are core-owned. They still use the plugin registration contract through coreRegistrations(). Spaces are off by default. They need Briefs and are enabled with spaces: { enabled: true }. packages/junior/src/chat/spaces/README.md documents the model and invariants.

Spaces detail page

via daniel.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 30, 2026 5:57pm UTC

Request Review

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

46 screenshot changes — 42 changed · 4 added · 0 removed

Review screenshots in Frameshift

Automation Attention · Desktop
Automation Attention · Desktop
Changed
Automation Editor · Desktop
Automation Editor · Desktop
Changed
Automation Editor Conflict · Desktop
Automation Editor Conflict · Desktop
Changed
Automation Event Editor · Desktop
Automation Event Editor · Desktop
Changed
Automation Executions · Desktop
Automation Executions · Desktop
Changed
Automation Paused · Desktop
Automation Paused · Desktop
Changed
Show 12 more changed screenshots
Automation Settings Readonly · Desktop
Automation Settings Readonly · Desktop
Changed
Automations · Desktop
Automations · Desktop
Changed
Automations List · Desktop
Automations List · Desktop
Changed
Automations Runs · Desktop
Automations Runs · Desktop
Changed
Code · Desktop
Code · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Create Focused · Desktop
Conversation Create Focused · Desktop
Changed
Conversation Detail · Desktop
Conversation Detail · Desktop
Changed
Conversation Event Details · Desktop
Conversation Event Details · Desktop
Changed
Conversation Event Log · Desktop
Conversation Event Log · Desktop
Changed
Conversation Image Draft · Desktop
Conversation Image Draft · Desktop
Changed

24 more changed screenshots in Frameshift.

sentry-junior Bot and others added 3 commits September 30, 2026 11:27
Add the read-only /api/spaces routes and the forum-style /spaces
dashboard page with breadcrumbs, child Spaces, and public
Conversations. Forward both routes from core to the dashboard.

Hide createSpace and updateSpace from non-public Conversations so
private content never names a Space. Document the module and add
Space to the terminology.

Co-Authored-By: Daniel Griesser <[email protected]>
Previews cannot run the backfill CLI, because only the deployment has
the Preview database and the model key. runSpaceBackfill runs the same
backfill inside the deployment from a web Conversation.

The tool exists only when Spaces and operator-tools are both on, and
never in public Conversations. It defaults to a dry run of 10
Conversations and allows at most 50 per call.

Co-Authored-By: Daniel Griesser <[email protected]>
Classify each Conversation as a question, investigation, bug, feature, or
task, and show the kind as a tinted tag and card edge in a Space. Kind tags
in the Space facts filter the list.

Space pages now show hard facts from public Conversations: repositories,
channels, and people. Linked work uses the same annotation links as the
conversation page, on each card and aggregated for the Space.

The classifier groups by repository or product first and writes keyword
descriptions. Conversations link back to their Space path, and people can
start a Conversation pinned to a Space. runSpaceBackfill now takes up to
200 Conversations per call and stops early before the Turn times out.

Co-Authored-By: Daniel Griesser <[email protected]>
Space pages now list Conversations by title only, with a stats line and
clickable kind and channel filters. Linked work stays on the Conversation
page. Junior can create Spaces and find Conversations to move from any
Conversation, and the classifier keeps incidents in one top-level Space.

Co-Authored-By: Daniel Griesser <[email protected]>
Apps can steer the Space classifier with spaces.guidance, so
organization rules such as SDK Spaces live in the app. The core prompt no
longer makes a Space for the whole organization.

Space pages drop repositories and channel chips from the header. Kind
chips sit above the list, a channel in a row filters by it, and channel
names no longer show a double #.

Co-Authored-By: Daniel Griesser <[email protected]>

@sentry-junior sentry-junior Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pausing the Spaces experiment after trying it in the preview. It did not yet show a clear enough product need to keep investing in it. We are closing this PR without merging. The separate experimental operator-tools work in #1989 remains merged and should stay in place.

Screenshot from the trial:

Spaces dashboard trial

This branch was successfully deployed

1 active deployment
Preview – junior-docs — c8b41274 Deployed Sep 30, 2026 by vercel[bot]
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.

0 participants