Technical Guide

Identifying Nonpublic Personal Information in LLM Prompts and Enforcing Runtime Controls

Treat any non-public personal information that relates to a customer, consumer, or account relationship as potential NPI when it appears in a prompt, retrieved context, tool-call argument, or agent memory. That includes combinations of fields and inferred or aggregated data.

Classify content at every point where it enters the prompt path, enforce policy at runtime with detection, redaction, blocking, routing, and logging before content reaches a model or tool, and keep decision records as audit evidence. Exact definitions differ by regulation, so confirm scope with legal counsel.

A working definition of NPI for prompt content

Treat any non-public personal information that relates to a customer, consumer, or account relationship as potential NPI. For prompt content, the definition applies wherever that information appears:

  • In a prompt
  • In retrieved context
  • In a tool-call argument
  • In agent memory

Combined, derived, and inferred data

NPI is not limited to single identifiers. Classify identifiers, account details, and combinations of fields in every input, and treat inferred or aggregated data as potential NPI as well.

Detection should therefore support combined and inferred data, with configurable categories that match your NPI definition.

NPI handling across the prompt path

Handling follows three stages, applied to every input.

  1. Identify

    Classify identifiers, account details, and combinations in every input.

  2. Enforce

    Redact, block, or route content before it reaches a model or tool.

  3. Evidence

    Record each decision so policy can be audited later.

Where NPI enters the prompt path and which controls apply

Classify content at every point where it enters the prompt path, not only the initial prompt. Runtime inspection should cover each of these points:

  • User input
  • Retrieved context
  • Tool-call arguments
  • Tool outputs
  • Memory writes

At each point, the controls that apply are detection, redaction, blocking, routing, and logging, enforced before content reaches a model or tool.

Choosing runtime controls and accepting the tradeoffs

Enforce policy inline, before data reaches a model or tool, rather than only reporting afterward. Redaction, blocking, and routing actions can differ by data category, user, agent, and destination.

Tie each action to an agent or user identity, and support least-privilege permissions and tool approval workflows.

Audit evidence the policy implies

Keep decision records as audit evidence. Each decision should be recorded so that policy can be audited later.

Audit logs should record decisions and policy versions without retaining raw sensitive values.

Criteria for evaluating runtime governance tooling

  • Inspects user input, retrieved context, tool-call arguments, tool outputs, and memory writes, not only the initial prompt.
  • Supports detection of combined and inferred data, with configurable categories that match your NPI definition.
  • Offers redaction, blocking, and routing actions that can differ by data category, user, agent, and destination.
  • Enforces policy inline, before data reaches a model or tool, rather than only reporting afterward.
  • Ties each action to an agent or user identity and supports least-privilege permissions and tool approval workflows.
  • Produces audit logs that record decisions and policy versions without retaining raw sensitive values.

Put NPI policy into runtime enforcement

Trussed AI provides runtime governance for enterprise AI agents, including runtime policy enforcement, tool approval workflows, and audit logging. Talk to an expert about applying your NPI definition across prompts and tools.

Talk to an Expert