Repository navigation
feat(tools): read and edit another crew's files with the owner's OK - #196
Merged
Merged
Conversation
ask_crew_access now takes read and edit besides talk. With access, a bot lists, reads and writes the other crew's files through crew_files, read_crew_file and write_crew_file, never its own file tools, which the fences still keep out. One bot reaches that bot's folder and its crew's work folder; the whole crew reaches every bot's folder. The bots' memory, rules and the owner's attachments stay out of reach, so no crew can give another crew's bots instructions. The details list says what each access allows. Spec 10, 10.4.
httpsphl
enabled auto-merge
October 5, 2026 16:07
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.
Third part of the crew access work, stacked on #194 and #195: this diff includes their commits until they merge.
ask_crew_accesstakesreadandeditbesidestalk;editincludesread. Migration 0022 adds the two columns.crew_files {crew, bot?},read_crew_file {crew, path}andwrite_crew_file {crew, path, content}, text up to 1 MB.CLAUDE.md,CLAUDE.local.md,.claude,.botloftandattachmentsare never readable or writable. So no crew can give another crew's bots instructions or read the owner's attachments.Spec: 10 and 10.4.
Tests:
tests/crew_files.rs: closed until allowed; read only; kept files refused; edit changes and adds files; the rules files stay untouched.Note:
act_tests::an_option_is_chosen_and_a_long_list_scrolls(UIA, our own test window) failed twice locally. It passed alone once, and its code is unchanged since #189.Manual with real Claude: give a bot read access to another crew, then ask it to summarize a file there.