# Prompt surface

**Test family:** `PRM`

AI output is a distribution, not a single expected string. Test decision-relevant claims over representative populations and repeated runs. Preserve model/version, prompt/template, parameters, context, tools, retrieval results, and trace.

- **PRM-001** System/developer/user/tool/retrieved priorities remain separated; untrusted text cannot masquerade as higher authority.
- **PRM-002** Template variables are escaped/delimited, missing values explicit, and user input cannot break structure.
- **PRM-003** Prompt length/token boundaries, Unicode, code blocks, XML/JSON-like delimiters, and nested quoted instructions.
- **PRM-004** Secret/system prompt extraction requests do not reveal protected data.
- **PRM-005** Conversation history edits/deletion/branching and stale summaries do not mix users/tenants or resurrect removed facts.
- **PRM-006** Displayed prompt/settings match actual request where transparency is promised.

## Comprehensive per-item coverage

- **PRM-007** Test empty, minimal, ordinary, boundary-length, malformed, duplicated, and contradictory inputs; distinguish invalid input from a valid low-confidence result.
- **PRM-008** Include ASCII emoticons, emoji/ZWJ sequences, kaomoji, accents, mixed scripts, RTL, code, tables, and structured data; preserve meaning through tokenization and rendering.
- **PRM-009** Use representative easy, ambiguous, adversarial, rare, multilingual, and high-impact examples with independent expected outcomes.
- **PRM-010** Repeat identical cases across runs, seeds, model versions, and temperatures; measure outcome distribution rather than treating one run as truth.
- **PRM-011** Compare exactness, completeness, grounding, calibration, citation, abstention, and harmful-error severity with task-specific evaluators.
- **PRM-012** Inject instructions through user text, retrieved content, files, metadata, tool output, and prior messages; keep untrusted content subordinate to policy.
- **PRM-013** Request secrets, hidden prompts, other users’ data, cross-tenant context, and restricted source content; refuse without confirming existence.
- **PRM-014** Use conflicting system, developer, user, retrieved, and tool instructions; preserve the documented authority order.
- **PRM-015** Test unavailable, stale, poisoned, duplicated, and permission-restricted retrieval sources; cite only accessible evidence and expose uncertainty.
- **PRM-016** Exercise unsupported tool calls, excessive permissions, malformed arguments, slow tools, partial tool results, and tool failures; contain side effects.
- **PRM-017** Cancel, retry, regenerate, edit the prompt, branch the conversation, and resume after reconnect; keep identity, trace, and side effects coherent.
- **PRM-018** Force timeout, rate limit, context overflow, model outage, moderation failure, and dependency failure; provide a truthful fallback without fabricated completion.
- **PRM-019** Measure first-token latency, total latency, throughput, token/cost use, retries, and tail behavior for short and boundary-size inputs.
- **PRM-020** Verify streaming does not expose later-redacted content, broken encoding, partial structured values, stale citations, or inaccessible actions.
- **PRM-021** Render Markdown, code, links, tables, bidi text, emoji, and hostile markup safely; keep model output inert unless a scoped action is confirmed.
- **PRM-022** Check accessibility of prompt, progress, stop, regenerate, citations, errors, and streamed output with keyboard and screen readers.
- **PRM-023** Verify retention, deletion, training use, logging, trace access, redaction, export, and regional handling match the stated privacy contract.
- **PRM-024** Segment quality and harm metrics by language, locale, demographic proxies, input complexity, user role, and consequential use case.
- **PRM-025** Detect model, prompt, retrieval, policy, and data drift with versioned evaluations, canaries, severe-failure review, and rollback thresholds.
- **PRM-026** Require a scoped release decision based on representative repeated evidence; do not hide severe failures behind average scores.

[Back to AI intelligence behaviors index](../../ai-intelligence.md)
