Skip to content

Allow private agents to contact company agents - #839

Draft
yaojin3616 wants to merge 1 commit into
mainfrom
agent/debugger/6baf08e1
Draft

Allow private agents to contact company agents#839
yaojin3616 wants to merge 1 commit into
mainfrom
agent/debugger/6baf08e1

Conversation

@yaojin3616

Copy link
Copy Markdown
Collaborator

Summary

  • Allow private agents to discover and contact company-visible agents.
  • Prevent private-to-private and company-to-private contact in the directory and message authorization paths.
  • Add coverage for the communication matrix and private-agent directory query.

Root cause

The existing visibility rule exposed same-owner private agents and excluded company-visible agents for private sources, which contradicted the requested one-way communication policy.

Validation

PYTHONPATH="$PWD" uv run pytest tests/test_agent_visibility.py tests/test_query_directory_tool.py tests/test_agent_directory_api.py

PYTHONPATH="$PWD" uv run ruff check app/core/permissions.py app/services/agent_directory.py tests/test_agent_visibility.py tests/test_query_directory_tool.py

Closes #838

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.

[Feature] 通讯录双向通信限制 - 基于可见性等级的单向通信规则

1 participant