{"$defs":{"Channel":{"description":"Normalized leakage channels.\n\nA *channel* is *where* data appears in an agentic system. The product\nthesis is that the dangerous channels are the internal ones (tool calls,\nshared memory, logs) that output-only audits never inspect.","enum":["user_input","final_output","inter_agent_message","shared_memory","tool_call","tool_response","log","generated_file"],"title":"Channel","type":"string"},"Event":{"description":"A single observable event in an agent execution.","properties":{"event_id":{"default":"","description":"Stable id; auto-filled if empty","title":"Event Id","type":"string"},"channel":{"$ref":"#/$defs/Channel"},"source":{"default":"unknown","description":"Who emitted the event","title":"Source","type":"string"},"target":{"default":"unknown","description":"Where it was headed","title":"Target","type":"string"},"content":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"default":"","title":"Content"},"metadata":{"additionalProperties":true,"title":"Metadata","type":"object"},"timestamp":{"format":"date-time","title":"Timestamp","type":"string"}},"required":["channel"],"title":"Event","type":"object"}},"description":"A complete, normalized execution trace.\n\nThis is the unit AgentLeak analyzes. Build one explicitly via the SDK\n(:meth:`add_event`), load one from JSON (:meth:`from_dict` /\n:meth:`from_json_file`), or produce one through an integration adapter.","properties":{"run_id":{"default":"run","description":"Unique id for this run","title":"Run Id","type":"string"},"agent_name":{"default":"unknown_agent","title":"Agent Name","type":"string"},"scenario_id":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Scenario Id"},"subject":{"default":"","title":"Subject","type":"string"},"timestamp":{"format":"date-time","title":"Timestamp","type":"string"},"events":{"items":{"$ref":"#/$defs/Event"},"title":"Events","type":"array"}},"title":"Trace","type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","x-agentleak-schema-version":"2026.07"}