Audit Log Reference
The Audit Log is the primary instrument for monitoring data security and compliance in Ontheia memory. Every interaction with the vector store that occurs via the API or internal tools is captured here.
1. Logged Actions
Section titled “1. Logged Actions”The system distinguishes between different types of actions:
read: A read access (search) was performed.write: New information was stored in memory.delete/soft_delete: Entries were removed or marked as deleted.warning: A critical incident, e.g., a rejected access attempt due to RLS (Row Level Security).
2. Structure of Entries
Section titled “2. Structure of Entries”In addition to the timestamp and the namespace, each entry contains a Detail field in JSON format.
Triggers
Section titled “Triggers”The system marks in the Detail field how the access came about:
auto_context: true: The system automatically searched for relevant knowledge before the agent run.tool_call: true: The agent explicitly called an MCP tool (memory-search,memory-write).admin_actor_id: An administrator accessed the data via the web interface.
Example: Automatic Read Access
Section titled “Example: Automatic Read Access”{ "run_id": "uuid...", "auto_context": true, "hit_count": 2, "top_k": 5}Example: Automatic Write Operation (Auto-Memory-Write)
Section titled “Example: Automatic Write Operation (Auto-Memory-Write)”{ "run_id": "uuid...", "auto_context": true, "items": 2}Example: Tool-based Write Operation
Section titled “Example: Tool-based Write Operation”{ "run_id": "uuid...", "tool_call": true, "items": 1, "agent_id": "uuid..."}3. Interpretation of Warnings
Section titled “3. Interpretation of Warnings”Warnings (warning) should be checked regularly by the administrator. They occur in the following scenarios:
- Misconfiguration: An agent has a namespace template that points to data for which the current user has no rights.
- Manipulation Attempt: A user or a compromised agent specifically tries to address namespaces of other tenants.
- Admin Access (Denied): An administrator attempts to access a user-related namespace, but the user has not granted an
allow_admin_memoryapproval. →warningis logged. (If access was allowed, the actionreadappears with the fieldadmin_actor_idin the detail.)
4. Retention
Section titled “4. Retention”The audit data is stored in the table app.memory_audit. It is recommended to archive this table regularly under very high system load to maintain the performance of the Admin Console.