Indirect Prompt Injection › Key Parameters
Language AI HandbookAll chapters The examples vary inputs to a local decision function. The parameters below record the interpretation of each test input, along with what would have to change for the interpretation to apply to another task.
| Parameter | Value in the fixture | What to check in a deployment |
|---|---|---|
| Source identifier | One stable identifier per artificial row | Resolve canonical resource identity before asking whether the reader is allowed to use it. |
| Content mark | Clear or instruction-like, assigned by the fixture author | Evaluate the real screening system on appropriately reviewed data. Specify how its runtime errors affect the view. |
| Current visibility | Set of source IDs supplied separately to the pure decision | Verify the caller's scope and define when changes are rechecked on the read and display paths. |
| View strategy | Reject marked, restrict marked, or minimize all | Ensure the available fields satisfy the approved task and reach only the intended consumer. |
| Required field | Room, assumed present and typed in every fabricated row | Check missing and invalid room values independently of the authorization and marker logic. |
| Counts | One contribution per row and field key in the view comparison | Use a denominator that matches the comparison and identify any change of unit across versions. |
When a new feature requires richer evidence, extend the test from the task contract. If a question needs two fields, use a specimen that requires both. If current permission is revoked before display, build a separate test for that boundary. If a new source does not provide structured fields, agree on an extraction and validation interface before assuming that its context is comparable to the room-only projection. The policy decisions in this chapter remain testable even when a later design adds its own extraction and rendering checks.
When presenting these checks to a maintainer, give each an expected failure that shows what it protects. For the authorization requirement, the expected failure is denial with an empty view after access is absent. For the narrow evidence requirement, a permitted row still lacks the title under minimum context. For the availability property, an eligible marked source keeps its room under the restricted policy. Keeping these outcomes separate supports changes to any one layer without erasing what the others are expected to enforce.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!