Skip to content

docs(design): Make a Space metadata on its Lead's tree, and add the Lead design - #4428

Merged
dcramer merged 6 commits into
mainfrom
docs/space-lead-design
Nov 26, 2026
Merged

dcramer merged 6 commits into
mainfrom
docs/space-lead-design

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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.

via @dcramer.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 26, 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 Nov 26, 2026 5:34am UTC

Request Review

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 26, 2026 04:50
@sentry-junior
sentry-junior Bot requested a review from dcramer November 26, 2026 04:51
@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 26, 2026
Comment thread design/lead.md Resolved
Comment thread design/lead.md Resolved
@sentry-junior
sentry-junior Bot requested review from dcramer and removed request for dcramer November 26, 2026 04:55
@dcramer

dcramer commented Nov 26, 2026

Copy link
Copy Markdown
Member

Needs updated from main now

# Conflicts:
#	design/agent-teams.md
#	design/child-agents.md
Comment thread design/agent-teams.md Resolved
dcramer pushed a commit that referenced this pull request Nov 26, 2026
…not declined (#4437)

On #4428, Junior agreed with two inline review comments
on `design/lead.md`. It replied with the replacement text and asked the
reviewer to confirm, because a `design/` line changes only after the
person confirms its exact text. Then it marked both comments `declined`,
which adds a -1 reaction. The reviewer read it as a rejection.

## Root cause

The `status` param of `github_updatePullRequestFeedback` put "leave the
decision to the author" under `declined` (-1), and it limited
`addressed` (+1) to "you made the change or answered the question". An
agreement that waits on the reviewer's confirmation fits only the
`declined` text. #4305 added that clause.
`design/github.md` says only that a comment Junior pushes back on or
defers is declined.

## Fix

- The `status` param now puts an agreement that waits on the reviewer to
confirm or choose under `addressed`. `declined` covers only push-back
and deferral to later work, and the text says that reviewers read -1 as
disagreement.
- New eval case in `pull-request-reviews.eval.ts`: the requester asks
for a `design/` change that needs their confirmation of the exact text,
and the mark must be `addressed`, never `declined`. The existing
push-back case still expects `declined`.

The review-again ask does not change. It counts both +1 and -1 as marked
(`pull-request-review-again.ts`), so a comment that waits on the
reviewer still puts the pull request back in their Inbox.

<!-- junior-request-attribution:start -->
via @dcramer.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3A1f134128a4bde1e5a67108f95b9d1415 -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3A1f134128a4bde1e5a67108f95b9d1415)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A1f134128a4bde1e5a67108f95b9d1415/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
@dcramer
dcramer enabled auto-merge (squash) November 26, 2026 05:38
@dcramer
dcramer merged commit 658fa38 into main Nov 26, 2026
57 checks passed
@dcramer
dcramer deleted the docs/space-lead-design branch November 26, 2026 05:44

This branch was successfully deployed

1 active deployment
Preview – junior-docs — cd7591b6 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant