mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Adds test_two_workspace_relay_partition to the managed-agent e2e suite. The test models workspace A and workspace B as two distinct owner keypairs on the same relay and verifies in both directions: 1. Owner A's NIP-33 author-scoped subscription returns only A's definition, not B's (workspace B content never leaks into A's view). 2. Owner B's subscription is symmetric — returns only B's definition. 3. Cross-scope queries prove NIP-33 (kind, author, d-tag) scoping: two owners publishing under the same d-tag get distinct relay coordinates that cannot collide or bleed across. This is the relay-level half of the live two-workspace leak probe required by the workspace-scoped agent definition store (PR #4485, plan v4 Phase 4). The filesystem-level half is covered by scope_id unit tests confirming that distinct (relay_url, owner_pubkey) pairs always produce distinct scope_id directories under agents/scopes/<scope_id>/. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>