Skip to content

Orgs: seats, teams, channel access by org / team / member (0.22.0) - #52

Merged
samifouad merged 2 commits into
mainfrom
claude/org-51
Nov 7, 2026
Merged

samifouad merged 2 commits into
mainfrom
claude/org-51

Conversation

@samifouad

Copy link
Copy Markdown
Member

closes #51

Mockups (approved, with one change: an agent's reports are @mentions that open their profiles): https://claude.ai/artifact/Sz2sFMGWPig67LZwSCdHre

What changed

  • Org model (src-tauri/src/store/org.rs):
    • An org is a tree of seats. Each seat has a title, a parent, and a holder: a person, an agent, or nobody yet (open).
    • The top seat plus up to 4 levels below it (MAX_LEVELS = 5). A person or agent holds at most one seat per org.
    • A team is a seat and everyone under it. Moving a seat moves its team and refuses cycles and anything deeper than 5 levels. Removing a seat moves its reports up.
    • On first open there's one org, "'s org", with you as CEO. Every existing, new and imported workspace joins it.
    • Seats are keyed by id and a holder can be added later, which is the groundwork for multiplayer: a person who joins takes a seat.
  • Channel access by org, team or member:
    • .gild/acl.json gains org, teams and levels. Fields left at their default aren't written, so existing channels keep a byte-identical file. Every rule change is a commit in the channel's history, and the index (channel_rules) is rebuilt from that history.
    • Store::access now goes through reach(), which returns named access, or org/team access with a per-agent level (change when unset), plus why. Every check uses it: mentions, @everyone, MCP tools, list_channels, struck-through mentions.
    • New channels open to the whole org. Agents without a seat aren't in the org, so existing setups see nothing change until someone is seated.
  • Window:
    • Settings › workspace › Org: the outline, Add a report, Rename, and a seat panel (title, held by person/agent/open, reports to, channels open to this team, Remove seat).
    • The channel Access panel is rebuilt with three rules (Org switch, Teams, Members) and a "Who that is" list: why each agent is in, plus read/change.
    • The agent's Channels tab locks the switch for a channel it's in through the org or a team, and says why.
    • Agent Profile → In the org: the chain up to the top, and its reports as @mentions that open their profiles. Seatless agents get a "Give it one in Org" link.

Not in this PR: the org itself isn't in git history; only the channel rules are. People other than you join with multiplayer.

Evidence

  • cargo test --locked --lib: 54 passed, 0 failed, 2 ignored. The new test an_org_is_a_tree_of_seats_and_channels_open_to_it_or_to_its_teams covers:
    • the outline order, levels and team sizes;
    • the 5-level limit;
    • one seat per holder;
    • org access for seated agents only;
    • team access, named access and levels;
    • the history messages;
    • moving a team in and out;
    • cycle and depth refusals;
    • open and filled seats;
    • rebuilding the index from history after reopening;
    • removing a seat and an agent;
    • renaming.
  • Revert proof: with the team branch of reach() disabled, the test FAILS (store.rs:3119, kimi left: None). Restored, it passes.
  • Changed expectation: agents_see_only_what_they_are_given's general ACL log now starts with "Open to everyone in Demo's org".
  • cargo clippy --locked --all-targets -- -D warnings: clean. bun run check and bun run build: ok. node --check tests/e2e/smoke.mjs: ok.
  • e2e (CI) adds a block that:
    • adds a seat in Settings › Org and gives it to intake;
    • checks MCP list_channels now includes general:write;
    • checks the agent's Profile shows its place;
    • turns the org rule off in #general's Access;
    • checks MCP shows only student-intake:write again.

-claude

…l access by org, team or member in the channel's history; an agent's place in its profile; 0.22.0
@samifouad
samifouad merged commit 1ad1f1a into main Nov 7, 2026
3 checks passed
@samifouad
samifouad deleted the claude/org-51 branch November 7, 2026 02:03
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.

Orgs: seats, teams, and channel access by org / team / member

1 participant