Files
civitai__civitai/docs
Briant Diehl 69fa598974 refactor(xguard): drop redis-backed policy overrides; use orchestrator policyHash
The original reason for the civitai-side policy override system was that
the orchestrator wasn't surfacing a policy hash, so we couldn't record a
meaningful policyVersion in the audit log. The latest @civitai/client now
includes results[number].policyHash, so we can read it directly and let
the orchestrator stay the source of truth for policy text + thresholds.

- Delete /moderator/xguard-policies page + tRPC router + service + schema
- Remove XGUARD.POLICIES_TEXT / POLICIES_PROMPT Redis key constants
- createXGuardModerationRequest no longer fetches policies from Redis or
  builds labelOverrides; just passes the caller's labels filter through
- recordXGuardScan reads policyHash from each result instead of from
  a metadata-stamped policyVersions map
- @civitai/client bump (typing brings the new field along)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-13 11:55:39 -06:00
..
2025-11-19 13:39:55 -07:00
2026-04-21 17:28:15 -06:00
2025-08-25 12:23:45 -06:00
2026-03-27 11:25:47 -04:00
2026-03-13 17:31:05 -04:00
2026-04-24 15:34:42 -06:00
2025-11-20 15:16:40 -07:00
2026-01-27 14:25:06 -04:00
2026-03-23 19:49:29 -06:00
2026-01-27 14:25:06 -04:00