Privacy zones, access control, and boundary negotiation for AI agents. Every agent gets its own space.
- Boundaries — define what's personal, shared, or public for each agent
- Privacy zones — zone-based access with configurable rules (private, shared, restricted, public)
- Access control — role-based permissions (read, write, execute, admin) per resource
- Violation tracking — log and categorize boundary violations with severity levels
- Space negotiation — agents negotiate shared spaces when collaboration requires it
pip install agent-personal-spacefrom agent_personal_space import (
Boundary, BoundaryType, PersonalZone, AccessControl,
ViolationTracker, SpaceNegotiator
)
# Define boundaries
boundary = Boundary(
resource="config.yaml",
boundary_type=BoundaryType.PRIVATE,
strictness="strict",
)
# Set up zones
zone = PersonalZone(agent_id="agent-3", zone_type="workspace")
zone.add_rule(resource="tasks/*", access="read-write")
zone.add_rule(resource="config/*", access="read-only")
# Access control
acl = AccessControl()
acl.grant(role="agent", permission="read", resource="public/*")
acl.grant(role="captain", permission="admin", resource="fleet/*")
acl.check(agent_id="agent-3", permission="write", resource="config.yaml") # → denied
# Track violations
tracker = ViolationTracker()
tracker.record(violator="agent-5", resource="agent-3/config", severity="warning")
# Negotiate shared space
negotiator = SpaceNegotiator()
result = negotiator.negotiate(
agents=["agent-3", "agent-5"],
resource="shared-workspace",
required_access="read-write",
)
print(result.agreement) # Terms of shared accessPersonalZone(agent_id, zone_type) — add_rule(resource, access) · ZoneType — WORKSPACE, MEMORY, IDENTITY, COMMUNICATION
ViolationTracker — record(violator, resource, severity) · ViolationSeverity — INFO, WARNING, CRITICAL
The boundary enforcement layer for the SuperInstance fleet. Ensures agents respect each other's space.
- agent-therapy — Boundary violations affect wellness scores
- agent-whisper — Ethics framework integrates with boundaries
- guard-constraints — Constraint enforcement
pytest tests/pip install agent-personal-spacePython 3.10+. MIT license.