Skip to content

chore: Remove deprecated score & threshold from prompt injection docs#801

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/update-detect-prompt-injection-docs
Draft

chore: Remove deprecated score & threshold from prompt injection docs#801
Copilot wants to merge 5 commits intomainfrom
copilot/update-detect-prompt-injection-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

  • Investigate CI failures - 74 screenshot tests failing due to 44px height difference from environment mismatch
  • Root cause: screenshots were regenerated locally but don't match CI rendering environment
  • Merge latest main (59bf9ae) which has CI-validated screenshots
  • Build site successfully (1093 pages, all internal links valid)
  • Verify all 163 tests pass with main's CI-compatible screenshots
  • Push merge commit with proper two parents

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arcjet-docs Ready Ready Preview, Comment Apr 9, 2026 11:36pm

Request Review

@qw-in qw-in requested a review from Copilot April 7, 2026 16:07
@qw-in qw-in changed the title Remove deprecated score & threshold from prompt injection docs chore: Remove deprecated score & threshold from prompt injection docs Apr 7, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the prompt injection detection documentation to reflect the deprecation of score/threshold, clarifying that Arcjet now makes ALLOW/DENY decisions automatically.

Changes:

  • Replaces “scores/scoring” language with “analyzes/analysis” across prompt injection intro and “how it works” sections.
  • Removes threshold references from framework code snippets (Next.js, Flask, FastAPI).
  • Replaces threshold-focused configuration guidance with detectPromptInjectionMessage + mode, and adds deprecation callouts.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/snippets/ai-protection/prompt-injection/python-flask/Example.py Removes deprecated threshold snippet and updates comment wording to “check” vs “score”.
src/snippets/ai-protection/prompt-injection/python-fastapi/Example.py Removes deprecated threshold snippet and updates comment wording to “check” vs “score”.
src/snippets/ai-protection/prompt-injection/nextjs/ChatRoute.ts Removes deprecated threshold comment from detectPromptInjection config example.
src/content/docs/prompt-injection/quick-start.mdx Updates intro prose from “scores” to “analyzes”.
src/content/docs/prompt-injection/index.mdx Updates “how it works” flow to analysis + ALLOW/DENY decision, removes threshold section, adds deprecation note.
src/content/docs/ai-protection/prompt-injection.mdx Removes threshold config docs, updates detectPromptInjectionMessage language, adds deprecation note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@qw-in qw-in marked this pull request as ready for review April 7, 2026 16:44
@qw-in qw-in requested a review from a team April 7, 2026 16:44
Comment thread src/content/docs/ai-protection/prompt-injection.mdx Outdated
Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
Co-authored-by: qw-in <19194187+qw-in@users.noreply.github.com>
@qw-in qw-in marked this pull request as draft April 10, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants