Google analytics are off.

Promptective journal / Guide

Designing the AI security boundary

Controls for prompts, data, outputs and tools.

Paper, translucent data, woven tool cable and a metal output capsule cross a smoked-glass partition through one cobalt checkpoint
Prompts, data, outputs and actions cross boundaries in different forms and need controls suited to each path.

Production LLM security should ask what can cross the boundary between an AI system and the organisation. Prompts can carry secrets to a provider, retrieved documents can carry instructions, output can expose data and tool calls can trigger real actions.

A four-zone trust model

Scroll horizontally to compare columns

Zone comparison table
ZoneExamplesDefault trust
Control planeSystem instructions, policy, permissions, identityTrusted and tightly managed
User planePrompts, uploads, pasted codeUntrusted input
Knowledge planePages, tickets, documents, tool resultsUntrusted data
Action planeOutput, tool arguments, API requestsUntrusted until validated

Text does not become trusted because it arrived through a trusted component. A retrieved document remains external content, and a model-generated argument remains a proposed action.

Four zones, explicit trust

Control plane

Managed policy, identity, permissions and system instructions.

User plane

Prompts, files and pasted content from the person using the system.

Knowledge plane

Retrieved documents, web content, search results and tool output.

Action plane

Model responses, tool arguments, writes and external effects.

Every piece of content keeps its source and every proposed action remains untrusted until a deterministic control approves it.


Normalise and preserve provenance

Convert interactions into typed parts such as system text, user text, retrieval, code, tool calls and tool results. Attach identity, application, model, environment and action risk. This common vocabulary makes detection and policy decisions explainable without storing whole conversations.

Bound request size, nesting, arrays and argument complexity before expensive parsing. Keep policy outside user-editable context, pass only required fields and treat retrieval and tool results as hostile input on the next turn. Delimiters help interpretation but cannot authorise an action.

Inspect both directions

Scroll horizontally to compare columns

Boundary comparison table
BoundaryChecksResponse
User to modelSecrets, personal data, injection, sizeWarn, redact or block
Retrieval to modelProvenance, encoding, scopeQuarantine, omit or annotate
Model to userSensitive or unsafe content, unsupported claimsRedact, block or review
Model to toolSchema, authority, scope, risk and rateAllow, approve or deny

Detection informs enforcement. A confirmed credential can be redacted before forwarding. A destructive tool call from untrusted context should be denied regardless of the model's confidence.

The prompt injection examples and defences guide shows how user input, retrieved documents and tool output can cross these trust boundaries.

Four inspection points around one model

User to model

Secrets, personal data, injection signals and oversized input.

Retrieval to model

Provenance, suspicious instructions, encoding and scope.

Model to user

Sensitive data, unsafe content and prompt leakage.

Model to tool

Schema, authorisation, resource scope and action risk.

The right response depends on both the finding and the boundary: warn, omit, redact, approve or deny.


Keep tools narrow

Give each tool a typed operation, permitted resources, rate limit and approval rule. Validate arguments against a strict schema, resolve resource identifiers on the server and check the caller's entitlement outside the model. Bind approval to the exact tool, arguments, identity and expiry.

Destructive and privileged actions need an allowlist plus independently enforced approval or change control. These barriers limit impact when a model, source or session is compromised.

Make actions boring and explicit

1

Name the operation

Use a specific tool and distinguish read, write, delete and execute.

2

Validate arguments

Apply a strict schema and resolve resource identifiers on the server.

3

Bind authority

Check identity, resource scope, environment, rate and action risk.

4

Enforce outcome

Allow, request exact approval or deny before execution.

A narrow, deterministic contract turns an open-ended model suggestion into a bounded and reviewable system operation.


Keep evidence content-minimised

Routine records can include trace, tenant, identity, application, model, policy and detector versions, reason codes, action risk, outcome, content-part hashes, sizes and delivery state. Raw content should require review, access controls, encryption, retention limits and deletion.

The record should explain what happened, why the decision occurred and which policy was active without becoming a transcript archive. Retained metadata can support controlled replay with synthetic content without recovering the original prompt or response.

Roll out by impact

  1. Inventory providers, models, applications, tools, identities and environments.
  2. Observe payloads, findings, tool use and false positives.
  3. Block high-confidence, high-impact cases such as credentials and unauthorised tools.
  4. Redact recoverable sensitive data.
  5. Require exact-action approval for irreversible actions.
  6. Define behaviour for policy outages, detector timeouts and malformed output.
  7. Review exceptions, missed detections and policy drift.

A low-risk drafting assistant may use a verified policy cache during an outage. Payment and deletion tools should fail closed. Document the choice per surface.

Move from visibility to enforcement

Inventory

Map providers, applications, identities, tools and environments.

Observe

Measure real paths, findings, latency and exceptions.

Enforce

Block clear high-impact cases and redact recoverable exposures.

Approve

Add exact human review for irreversible operations.

Tune

Test failures and review false positives, misses and policy drift.

Start with an accurate inventory and evidence, then increase intervention where confidence and impact justify it.


Final checklist

  • Every interaction carries identity, application, model and environment.
  • Prompts, retrieval, output and tools retain provenance.
  • Sizes and complexity are bounded before inspection.
  • Input and output checks use stable reason codes.
  • Tool authority is deterministic and model-independent.
  • Privileged actions receive stronger controls than reads.
  • Routine telemetry stores metadata and hashes, excluding raw content.
  • Outage behaviour is explicit per surface.
  • Policies, detectors and exceptions are versioned.
  • Tests cover injection, leakage and tool misuse.

For risk mapping, testing, monitoring and incident response, use the LLM security best-practices guide.

Security review

Map policy to the AI paths your team uses.

See where Promptective can apply organisation policy and record content-minimised evidence.

Map your AI workflows