scope peer dialectic call #387
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
4a0a21a to
c06c4fd
Compare
|
@claude can you review this PR |
|
Claude finished @Rajat-Ahuja1997's task in 2m 16s —— View job PR Review: Scope Peer Dialectic Calls
SummaryThis PR implements peer-scoped visibility for dialectic tool calls. The core idea: when a peer (observer) uses dialectic to query information, they should only see messages from sessions they were actually a member of, and only during the time window they were present. This is a solid security/privacy improvement. The PR also refactors the workspace-level search from an "omniscient" cross-peer document search ( Architecture & ApproachThe overall approach is clean:
Issues Found1. Workspace fallback search is not scoped by peer perspectiveIn snippets = await crud.search_messages(
ctx.db,
workspace_name=ctx.workspace_name,
session_name=ctx.session_name,
query=tool_input["query"],
limit=min(tool_input.get("top_k", 20), 20),
context_window=0,
# peer_perspective is missing here
)This is intentional for the workspace-level agent (which is designed to have a cross-peer view), but worth noting explicitly in a comment since every other Add a comment clarifying this is intentional → 2.
|
No description provided.