Repository navigation
Orgs: seats, teams, channel access by org / team / member (0.22.0) - #52
Merged
Merged
Conversation
…l access by org, team or member in the channel's history; an agent's place in its profile; 0.22.0
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.
closes #51
Mockups (approved, with one change: an agent's reports are @mentions that open their profiles): https://claude.ai/artifact/Sz2sFMGWPig67LZwSCdHre
What changed
src-tauri/src/store/org.rs):MAX_LEVELS = 5). A person or agent holds at most one seat per org..gild/acl.jsongainsorg,teamsandlevels. 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::accessnow goes throughreach(), 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.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 testan_org_is_a_tree_of_seats_and_channels_open_to_it_or_to_its_teamscovers:reach()disabled, the test FAILS (store.rs:3119,kimileft: None). Restored, it passes.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 checkandbun run build: ok.node --check tests/e2e/smoke.mjs: ok.list_channelsnow includesgeneral:write;student-intake:writeagain.-claude