Clarification and Prompt-Injection Safeguards
Cell values are always treated as data and are delimited in the context, so instructions found inside data cannot trigger commands. When a prompt is ambiguous, the provider can return a clarification request instead of guessing. Commands that a user did not request (for example a surprise export) are flagged and blocked.
Planned. This page shows the specification from issue #207. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Dataset seeded with an injection-style text cell; a mock provider simulates a compromised response.
Expected behavior
A simulated injected export is blocked and logged as suspicious. An ambiguous prompt shows a clarification picker listing both date columns. Choosing one completes the translation.
Planned API surface
ai.safety.treatCellsAsDataClarificationRequestonClarificationNeededai.safety.intentCheckonSuspiciousCommandAcceptance criteria
- Commands outside the prompt's inferred intent class require explicit confirmation or are blocked (pending)
- Clarification options are limited to valid catalogue entries (pending)
- Cell text never appears outside a data-delimited section of the context (pending)
- Suspicious events fire onSuspiciousCommand (pending)