docs(external-agents): fix Communication Rules to match real CanCommunicate code #63
Reference in New Issue
Block a user
Delete Branch "docs/comms-rules-code-confirm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Code-confirmed against
workspace-server/internal/registry/access.go(func CanCommunicate) on main:caller.ParentID != nil && target.ParentID != nil && *caller.ParentID == *target.ParentID. Two root workspaces (parent_id NULL) therefore fail it → corrected to No (PR #1961 removed the root-sibling bypass).isAncestorOfwalk), not just direct parent/child.POST /registry/check-access {caller_id,target_id} → {allowed}(discovery.goCheckAccess) exposes the same rule programmatically.Doc-only; matches shipped behavior.
Code-confirmed against access.go CanCommunicate + discovery.go CheckAccess. Accurate. LGTM.