OUTPUT #633 | 1898 karakter | 37 satır
/home/hermes/.hermes/plugins/shorts-production-guard/__init__.py
639-        raw = image_url[7:] if image_url.startswith("file://") else image_url
640-        image_path = Path(raw).expanduser()
641-
642-        # Normal production gets exactly the two canonical visual judgment surfaces:
643-        # proof/casting before render and final semantic QA after render. Source-sheet,
644:        # range-sheet and ad-hoc asset-sheet inspections duplicate evidence and create
645-        # expensive main-agent loops. This block does not abort the job; the agent
646-        # continues with deterministic discovery and the canonical proof sheet.
647-        if (
648-            not alternate_method
649-            and not explicit_system_change
--
702-
703-        with _LOCK:
704-            if signature in _VISION_SEEN:
705-                return _block(
706-                    "Shorts production guard: this exact visual evidence has already been "
707:                    "asked the same question. Reuse the existing result. If evidence was repaired "
708-                    "or the verification question genuinely needs correction, change the evidence "
709-                    "or question rather than repeating the same call."
710-                )
711-        return None
712-
--
875-    question = str(args.get("question") or "")
876-    if not image_url:
877-        return
878-
879-    # A provider failure is not reviewed evidence. Mark only completed Vision
880:    # calls as seen so the provider's explicit retry can reuse the exact sheet
881-    # and question instead of forcing a meaningless evidence mutation.
882-    raw_identity = image_url[7:] if image_url.startswith("file://") else image_url
883-    try:
884-        image_identity = _sha_file(Path(raw_identity).expanduser().resolve())
885-    except Exception:
root@213-238-170-219:~#