Vaikora › Blog › Product Updates
Data classification at the source: why labeling data where it's created is the first real control
If data isn't classified when it's created or ingested, every downstream control is guessing. Encryption, access policy, and agent restrictions all depend on knowing what a file or record actually is. Without that, you're applying uniform rules to unequal data, or worse, applying nothing at all.
What "classification at the source" actually means
Classification at the source means the label travels with the data from the moment it's written, not after it lands in a lake, gets copied to a share, or gets pulled by an agent. A document tagged "PII-high" when a user creates it carries that tag into storage, through API calls, and into any downstream processing.
The alternative is classification after the fact: scanning repositories on a schedule, finding sensitive data, and then trying to apply retroactive controls. That gap between creation and classification is when data is most exposed. An AI agent querying a database before that scan runs has no policy signal to act on.
Where the gap actually hurts
Consider a workflow where an AI agent pulls customer records from a CRM to generate a summary report. If those records were never tagged at ingestion, the agent's policy layer has no structured signal. It may have heuristic content inspection, but heuristic inspection runs after the data is already in the context window.
Tagging at source means the policy gate receives a structured attribute before the query returns. The agent's runtime control can then apply a specific rule: allow, block, or require approval, based on the classification label rather than inferring sensitivity from the content after the fact.
This is the difference between proactive enforcement and reactive detection. Proactive enforcement can stop an action. Reactive detection can only report it.
How runtime policy connects to classification
Vaikora sits inline between an AI agent and the tools or models it calls. Before each action executes, Vaikora checks the action against policy and returns an allow, block, modify, or require-approval decision. At P50 that decision adds 8ms. At P99 it adds 45ms.
The policy rules that make that gate meaningful depend on structured metadata. A rule like "block any tool call that references records labeled PCI-scope" is deterministic and auditable. A rule like "block any tool call that might contain card data" requires content inspection on every call, is slower, and produces more false positives.
Classification at the source feeds the first type of rule. That's what makes enforcement predictable at throughput. Vaikora processes 10,000+ actions per second; at that volume, deterministic label-based policy is the only approach that stays accurate without becoming a bottleneck.
What to classify and where
Not everything needs a label, and over-classification creates noise that teams ignore. Focus first on:
- Data that maps to a specific regulatory scope (health records, payment data, personal identifiers)
- Data that feeds AI agents, since agents act autonomously and can exfiltrate or expose data faster than a human workflow
- Data that crosses a trust boundary (from internal systems to a hosted model API, for example)
For structured data, classification happens at the schema or column level. A database column marked as "restricted-PII" passes that attribute to any query result, so the agent runtime knows what it received. For unstructured data, classification happens at creation or on first ingestion, before the file is indexed or made available for search.
The audit chain
Every Vaikora policy decision is written to a SHA-256 hash-chained, tamper-evident audit log. That log is only as useful as the metadata attached to each decision. When a decision references a classification label, the log entry carries that label: you can answer "which agent actions touched restricted data, over what time window, and what was decided each time."
Without source classification, the log captures actions and outcomes but not the data sensitivity dimension. That makes it harder to answer the specific questions that matter during an investigation.
What to check next
Start by inventorying which systems create or ingest sensitive data and whether those systems write a classification attribute to the record at creation time. If they don't, that's the first gap to close. Then map which AI agents query those systems and whether the agent's policy layer can read and act on that attribute. The policy gate is only as precise as the metadata it receives.
See Vaikora enforce policy on your AI
Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.
Get a demo Self-host the gateway
Vaikora