From a791f599ef5ca1e3bfda80b33f267ef6e212209b Mon Sep 17 00:00:00 2001 From: digital-garbage <133010426+digital-garbage@users.noreply.github.com> Date: Fri, 15 May 2026 18:33:41 +0300 Subject: [PATCH] Remove spurious prompt length rejection from advisor validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The too-long check rejected valid advisor repairs when the repaired prompt was longer than 3x the current prompt. Length is not a useful safety signal — the legitimate guards are refusal text, intent distance, and protected-category injection. Co-Authored-By: Claude Sonnet 4.6 --- conditioning.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/conditioning.py b/conditioning.py index ec1fe661..f831023f 100644 --- a/conditioning.py +++ b/conditioning.py @@ -8974,8 +8974,6 @@ class FunPackVideoRefinerV2(FunPackVideoRefiner): return False, "refusal text" if advised == current: return True, "unchanged" - if len(advised) > max(180, len(current) * 3 + 320): - return False, "too long" body_similarity = self._v2_prompt_body_similarity(advised, intent) semantic_similarity = self._v2_text_semantic_similarity(clip, advised, intent, encode_cache=encode_cache) if clip is not None else 0.0 if body_similarity < 0.30 and semantic_similarity < 0.58: