Skip to content

Add per-profile anti-spam throttle overrides for AI Profiles - #110

Merged
MikeAlhayek merged 2 commits into
mainfrom
ma/reduce-spam
Jul 16, 2026
Merged

Add per-profile anti-spam throttle overrides for AI Profiles#110
MikeAlhayek merged 2 commits into
mainfrom
ma/reduce-spam

Conversation

@MikeAlhayek

Copy link
Copy Markdown
Member

Reshape PromptSecurityProfileSettings to anti-spam throttle-only (max messages/window, message window, max anonymous sessions/window, anonymous session window). Each unset value falls back to the site-wide PromptSecurityOptions default so AI Profiles and templates can raise or lower quotas per use case. High-level input/output security guards remain global-only.

  • Honor per-profile overrides in DefaultChatRateLimiter (already) and DefaultChatSessionStartRateLimiter (now); keep guards global in DefaultPromptSecurityService and SecurityPromptOrchestrationHandler.
  • Expose the 4 override fields on the Blazor and MVC AI Profile and Template create/edit forms.
  • Add unit coverage for override (raise/lower), disable, and partial fallback (one field overridden, the other inherited from the site).
  • Update prompt-security and ai-profiles docs plus the changelog.

Copilot-Session: 1ebd38d1-431b-47c2-a8c9-f40236a5df35

MikeAlhayek and others added 2 commits July 16, 2026 11:07
Reshape PromptSecurityProfileSettings to anti-spam throttle-only (max
messages/window, message window, max anonymous sessions/window, anonymous
session window). Each unset value falls back to the site-wide
PromptSecurityOptions default so AI Profiles and templates can raise or
lower quotas per use case. High-level input/output security guards remain
global-only.

- Honor per-profile overrides in DefaultChatRateLimiter (already) and
  DefaultChatSessionStartRateLimiter (now); keep guards global in
  DefaultPromptSecurityService and SecurityPromptOrchestrationHandler.
- Expose the 4 override fields on the Blazor and MVC AI Profile and
  Template create/edit forms.
- Add unit coverage for override (raise/lower), disable, and partial
  fallback (one field overridden, the other inherited from the site).
- Update prompt-security and ai-profiles docs plus the changelog.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1ebd38d1-431b-47c2-a8c9-f40236a5df35
Add "?" help icons with hover explanations next to every Prompt Security
setting on the site settings pages and next to the four per-profile
throttle override fields on the AI Profile and AI Profile Template forms.
Applied consistently across both the Blazor.Web and Mvc.Web hosts, matching
the existing Bootstrap tooltip convention (bi-question-circle + data-bs-toggle).
Also wire up the Bootstrap tooltip initializer on the MVC admin settings page.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 1ebd38d1-431b-47c2-a8c9-f40236a5df35
@MikeAlhayek
MikeAlhayek merged commit 2361c8a into main Jul 16, 2026
10 checks passed
@MikeAlhayek
MikeAlhayek deleted the ma/reduce-spam branch July 16, 2026 18:46
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.

1 participant