Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion capiscio_mcp/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def emit_policy_enforced(
# See capiscio-server internal/db/models.go for JSON field tags.
event: Dict[str, Any] = {
"id": str(uuid.uuid4()),
"agentId": effective_agent_id or str(uuid.UUID(int=0)),
"agentId": effective_agent_id or "", # empty string: server will return clear validation error instead of silently dropping the event
"traceId": str(uuid.uuid4()),
"eventType": self.EVENT_POLICY_ENFORCED,
"severity": severity or ("HIGH" if decision == "DENY" else "INFO"),
Expand Down