AI Slop Code RIsk Monitor

Flowseal/tg-ws-proxy

Local MTProto proxy server for partial bypassing of Telegram loading

49.5 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for Flowseal/tg-ws-proxy, a Python project with 10,438 GitHub stars. SynthScan examined 16,114 lines of code across 92 source files, recording 491 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 49.5 (High pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

49.5
Adjusted Signal
49.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
10.4K
Stars
Python
Language
16.1K
Lines of Code
92
Files
491
Pattern Hits
2026-10-12
Scan Date
0.75
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 58.2/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 269 finding(s).

Hallucinated Dependency & Supply Chain Risk 11.1/100 · LOW

Are imports declared and package/API names verified? 39 finding(s).

Agent Over-Engineering Ratio 89.3/100 · CRITICAL

Are wrappers, guards, and repeated structures necessary? 410 finding(s).

PR Review Velocity Impact 93.4/100 · CRITICAL

Which changes need focused human review? 491 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 69MEDIUM 21LOW 401

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 491 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Empty Error Handlers69 hits · 345 pts
SeverityFileLineSnippetContext
HIGHmacos.py180except Exception:CODE
HIGHmacos.py203except tk.TclError:CODE
HIGHmacos.py210except tk.TclError:CODE
HIGHwindows.py96except Exception:CODE
HIGHwindows.py262except OSError:CODE
HIGHwindows.py272except OSError:CODE
HIGHwindows.py276except OSError:CODE
HIGHwindows.py394except FileNotFoundError:CODE
HIGHwindows.py644except OSError:CODE
HIGHlinux.py53except Exception:CODE
HIGHui/ctk_theme.py20except (RuntimeError, tkinter.TclError):CODE
HIGHui/ctk_theme.py105except Exception:CODE
HIGHui/ctk_tooltip.py55except Exception:CODE
HIGHui/ctk_tooltip.py37except Exception:CODE
HIGHui/ctk_tooltip.py79except Exception:CODE
HIGHui/ctk_tray_ui.py34except Exception:CODE
HIGHui/i18n/__init__.py78except Exception:CODE
HIGHui/i18n/__init__.py88except ValueError:CODE
HIGHui/i18n/__init__.py76except ValueError:CODE
HIGHproxy/h2_transport.py307except (OSError, asyncio.TimeoutError):CODE
HIGHproxy/h2_transport.py286except StreamClosedError:CODE
HIGHproxy/h2_transport.py295except StreamClosedError:CODE
HIGHproxy/raw_websocket.py64except (OSError, AttributeError):CODE
HIGHproxy/raw_websocket.py70except OSError:CODE
HIGHproxy/raw_websocket.py235except Exception:CODE
HIGHproxy/raw_websocket.py240except Exception:CODE
HIGHproxy/raw_websocket.py196except Exception:CODE
HIGHproxy/raw_websocket.py205except Exception:CODE
HIGHproxy/fake_tls.py250except Exception:CODE
HIGHproxy/fake_tls.py255except Exception:CODE
HIGHproxy/fake_tls.py236except (ConnectionResetError, BrokenPipeError, OSError,CODE
HIGHproxy/fake_tls.py243except Exception:CODE
HIGHproxy/bridge.py439except BaseException:CODE
HIGHproxy/bridge.py444except BaseException:CODE
HIGHproxy/bridge.py469except asyncio.CancelledError:CODE
HIGHproxy/bridge.py313except (OSError, ConnectionError):CODE
HIGHproxy/bridge.py426except BaseException:CODE
HIGHproxy/bridge.py486except BaseException:CODE
HIGHproxy/bridge.py492except BaseException:CODE
HIGHproxy/tg_ws_proxy.py324except Exception:CODE
HIGHproxy/tg_ws_proxy.py353except BaseException:CODE
HIGHproxy/tg_ws_proxy.py396except (OSError, AttributeError):CODE
HIGHproxy/tg_ws_proxy.py472except (asyncio.CancelledError, Exception):CODE
HIGHproxy/tg_ws_proxy.py547except asyncio.CancelledError:CODE
HIGHproxy/tg_ws_proxy.py552except Exception:CODE
HIGHproxy/tg_ws_proxy.py270except Exception:CODE
HIGHproxy/tg_ws_proxy.py304except Exception:CODE
HIGHproxy/tg_ws_proxy.py509except Exception:CODE
HIGHproxy/tg_ws_proxy.py523except (OSError, AttributeError):CODE
HIGHproxy/pool.py197except Exception:CODE
HIGHproxy/pool.py346except Exception:CODE
HIGHtests/test_h2_transport.py146except (ConnectionError, ssl.SSLError):CODE
HIGHtests/test_h2_transport.py152except (ConnectionError, ssl.SSLError):CODE
HIGHutils/linux_update.py156except OSError:CODE
HIGHutils/tray_common.py437except Exception:CODE
HIGHutils/tray_common.py146except Exception:CODE
HIGHutils/tray_common.py151except Exception:CODE
HIGHutils/tray_common.py157except OSError:CODE
HIGHutils/tray_common.py181except Exception:CODE
HIGHutils/tray_common.py301except Exception:CODE
9 more matches not shown…
Hyper-Verbose Identifiers227 hits · 244 pts
SeverityFileLineSnippetContext
LOWui/ctk_theme.py11def install_tkinter_variable_del_guard() -> None:CODE
LOWui/connectivity.py68def _run_cfproxy_connectivity_test(domain: str, *, secure: bool = True) -> dict:CODE
LOWui/connectivity.py76def _run_cfworker_connectivity_test(domain: str, *, secure: bool = True) -> dict:CODE
LOWui/connectivity.py109def show_connectivity_results(title_base: str, results: dict,CODE
LOWui/connectivity.py146def show_multi_connectivity_results(title_base: str, per_domain: dict,CODE
LOWui/ctk_tooltip.py104def attach_tooltip_to_widgets(widgets: List[Any], text: str, **kwargs: Any) -> None:CODE
LOWui/settings_form.py390 def _sync_cfworker_test_button(*_):CODE
LOWui/ctk_tray_ui.py17def tray_settings_scroll_and_footer(CODE
LOWui/ctk_tray_ui.py39def install_tray_config_buttons(CODE
LOWui/ctk_tray_ui.py74def populate_first_run_window(CODE
LOWui/i18n/__init__.py141def language_label_for_config(value: LocaleInput) -> str:CODE
LOWui/i18n/__init__.py150def refresh_language_option_maps() -> None:CODE
LOWproxy/config.py112def _fetch_cfproxy_domain_list() -> List[str]:CODE
LOWproxy/config.py191def start_cfproxy_domain_refresh() -> None:CODE
LOWtests/test_h2_settings.py20 def test_cli_default_opt_out_and_existing_launch_script(self):CODE
LOWtests/test_h2_settings.py47 def test_help_advertises_opt_out_only(self):CODE
LOWtests/test_h2_settings.py56 def test_saved_setting_migration_and_runtime_restart(self):CODE
LOWtests/test_fake_tls.py49 def test_accepts_well_formed_hello(self):CODE
LOW⚡tests/test_fake_tls.py60 def test_rejects_wrong_secret(self):CODE
LOW⚡tests/test_fake_tls.py64 def test_rejects_stale_timestamp(self):CODE
LOW⚡tests/test_fake_tls.py68 def test_rejects_tampered_body(self):CODE
LOW⚡tests/test_fake_tls.py73 def test_rejects_short_and_non_handshake_records(self):CODE
LOWtests/test_fake_tls.py84 def test_echoes_session_id_and_binds_client_random(self):CODE
LOW⚡tests/test_fake_tls.py101 def test_padding_length_varies_between_calls(self):CODE
LOW⚡tests/test_fake_tls.py110 def test_short_payload_becomes_one_record(self):CODE
LOW⚡tests/test_fake_tls.py114 def test_long_payload_is_chunked_to_the_record_limit(self):CODE
LOWtests/test_fake_tls.py128 def test_empty_payload_produces_no_records(self):CODE
LOWtests/test_raw_websocket.py39 def test_matches_bytewise_xor_at_fast_path_and_frame_boundaries(self):CODE
LOWtests/test_raw_websocket.py58 def test_masked_frame_wire_format_across_all_length_encodings(self):CODE
LOWtests/test_raw_websocket.py73 def test_short_unmasked_frame(self):CODE
LOW⚡tests/test_raw_websocket.py84 def test_masked_frame_sets_mask_bit_and_is_reversible(self):CODE
LOW⚡tests/test_raw_websocket.py93 def test_returns_unfragmented_message(self):CODE
LOW⚡tests/test_raw_websocket.py97 def test_reassembles_fragmented_message(self):CODE
LOW⚡tests/test_raw_websocket.py105 def test_control_frame_between_fragments_is_skipped(self):CODE
LOW⚡tests/test_raw_websocket.py113 def test_close_frame_returns_none(self):CODE
LOW⚡tests/test_raw_websocket.py118 def test_oversized_frame_is_rejected_before_reading_payload(self):CODE
LOW⚡tests/test_raw_websocket.py123 def test_reassembled_message_exceeding_limit_is_rejected(self):CODE
LOW⚡tests/test_raw_websocket.py137 def test_known_code_gets_name(self):CODE
LOW⚡tests/test_raw_websocket.py147 def test_redirect_status_codes(self):CODE
LOW⚡tests/test_raw_websocket.py155 async def test_cancelling_pending_upgrade_closes_socket(self):CODE
LOWtests/test_raw_websocket.py174 async def test_failed_upgrade_closes_socket(self):CODE
LOWtests/test_h2_routing.py36 async def test_pool_miss_goes_straight_to_fallback_including_test_dcs(self):CODE
LOWtests/test_h2_routing.py60 async def test_cf_fallback_order_and_route_guards(self):CODE
LOWtests/test_event_loop.py35 def test_eof_replaces_sockets_and_stops_idle_callbacks(self):CODE
LOWtests/test_event_loop.py76 def test_repeated_eof_preserves_existing_tcp_connection(self):CODE
LOWtests/test_event_loop.py120 def test_reset_rebuilds_but_cancelled_and_stale_callbacks_do_not(self):CODE
LOWtests/test_event_loop.py145 def test_reset_on_read_armed_before_installation_is_recovered(self):CODE
LOWtests/test_event_loop.py159 def test_recovery_in_background_proxy_thread(self):CODE
LOWtests/test_event_loop.py184 def test_allocation_failure_retries_without_spinning(self):CODE
LOWtests/test_event_loop.py213 def test_signal_wakeup_fd_is_moved_only_when_owned_by_the_loop(self):CODE
LOWtests/test_tray_common.py8 def test_disabled_check_does_not_start_a_thread(self):CODE
LOWtests/test_tray_common.py17 def test_update_is_reported_to_the_handler(self):CODE
LOWtests/test_tray_common.py32 def test_no_update_means_no_handler_call(self):CODE
LOW⚡tests/test_i18n.py31 def test_en_ru_key_sets_match(self):CODE
LOW⚡tests/test_i18n.py40 def test_ru_has_no_untouched_english_leftovers(self):CODE
LOW⚡tests/test_i18n.py49 def test_format_placeholders_match(self):CODE
LOW⚡tests/test_config.py13 def test_parses_multiple_entries(self):CODE
LOW⚡tests/test_config.py19 def test_last_entry_wins_for_duplicate_dc(self):CODE
LOW⚡tests/test_config.py22 def test_rejects_missing_separator(self):CODE
LOW⚡tests/test_config.py33 def test_rejects_non_numeric_dc(self):CODE
167 more matches not shown…
Excessive Try-Catch Wrapping102 hits · 114 pts
SeverityFileLineSnippetContext
LOWmacos.py129 except Exception as exc:CODE
LOWmacos.py138 except Exception as exc:CODE
LOWmacos.py149 except Exception as exc:CODE
LOWmacos.py153 except Exception as dialog_exc:CODE
LOWmacos.py180 except Exception:CODE
LOWmacos.py250 except Exception as exc:CODE
LOWmacos.py318 except Exception as exc:CODE
LOWmacos.py337 except Exception as exc:CODE
LOWmacos.py476 except Exception as exc:CODE
MEDIUMmacos.py146def invoke() -> None:CODE
MEDIUMwindows.py317def _show() -> None:CODE
MEDIUMwindows.py377def is_autostart_enabled() -> bool:CODE
LOW⚡windows.py249 except Exception as exc:CODE
LOW⚡windows.py258 except Exception as exc:CODE
LOW⚡windows.py268 except Exception as exc:CODE
LOWwindows.py85 except Exception:CODE
LOWwindows.py96 except Exception:CODE
LOWwindows.py301 except Exception as exc:CODE
LOWwindows.py335 except Exception as exc:CODE
LOWwindows.py358 except Exception as exc:CODE
LOWwindows.py411 except Exception:CODE
LOWwindows.py423 except Exception as exc:CODE
LOWwindows.py436 except Exception as exc:CODE
LOWwindows.py456 except Exception as exc:CODE
LOWlinux.py53 except Exception:CODE
LOWlinux.py88 except Exception as exc:CODE
LOWlinux.py98 except Exception as exc:CODE
LOWui/ctk_theme.py105 except Exception:CODE
MEDIUMui/ctk_theme.py102def _safe_destroy():CODE
LOWui/background_task.py34 except Exception:CODE
MEDIUMui/background_task.py31def run():CODE
LOWui/ctk_tooltip.py37 except Exception:CODE
LOWui/ctk_tooltip.py48 except Exception:CODE
LOWui/ctk_tooltip.py55 except Exception:CODE
LOWui/ctk_tooltip.py79 except Exception:CODE
LOWui/ctk_tray_ui.py34 except Exception:CODE
LOWui/i18n/__init__.py78 except Exception:CODE
LOWproxy/raw_websocket.py196 except Exception:CODE
LOWproxy/raw_websocket.py205 except Exception:CODE
LOWproxy/raw_websocket.py235 except Exception:CODE
LOWproxy/raw_websocket.py240 except Exception:CODE
LOWproxy/raw_websocket.py259 except Exception:CODE
LOWproxy/config.py123 except Exception as exc:CODE
MEDIUMproxy/config.py112def _fetch_cfproxy_domain_list() -> List[str]:CODE
LOWproxy/cf_h2.py494 except Exception as exc:CODE
LOWproxy/fake_tls.py215 except Exception as exc:CODE
LOW⚡proxy/fake_tls.py243 except Exception:CODE
LOW⚡proxy/fake_tls.py250 except Exception:CODE
LOW⚡proxy/fake_tls.py255 except Exception:CODE
LOWproxy/bridge.py219 except Exception as exc:CODE
LOWproxy/bridge.py255 except Exception as exc:CODE
LOWproxy/bridge.py291 except Exception as exc:CODE
LOWproxy/bridge.py381 except Exception as e:CODE
LOWproxy/bridge.py412 except Exception as e:CODE
LOWproxy/bridge.py471 except Exception as e:CODE
MEDIUMproxy/bridge.py452def forward(src, dst_w, is_up):CODE
LOWproxy/tg_ws_proxy.py270 except Exception:CODE
LOWproxy/tg_ws_proxy.py304 except Exception:CODE
LOWproxy/tg_ws_proxy.py324 except Exception:CODE
LOWproxy/tg_ws_proxy.py346 except Exception as exc:CODE
42 more matches not shown…
Unused Imports39 hits · 38 pts
SeverityFileLineSnippetContext
LOWmacos.py1CODE
LOWwindows.py1CODE
LOWlinux.py1CODE
LOWui/ctk_theme.py1CODE
LOWui/connectivity.py1CODE
LOWui/ctk_controls.py1CODE
LOWui/background_task.py1CODE
LOWui/ctk_tooltip.py1CODE
LOWui/settings_form.py1CODE
LOWui/settings.py1CODE
LOWui/settings_dialog.py1CODE
LOWui/ctk_tray_ui.py1CODE
LOWui/ctk_tray_ui.py10CODE
LOWui/ctk_tray_ui.py10CODE
LOWui/ctk_tray_ui.py10CODE
LOWui/i18n/__init__.py1CODE
LOWproxy/h2_transport.py1CODE
LOWproxy/cf_h2.py1CODE
LOWproxy/fake_tls.py1CODE
LOWproxy/bridge.py9CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py1CODE
LOWproxy/__init__.py2CODE
LOWproxy/__init__.py2CODE
LOWproxy/tg_ws_proxy.py1CODE
LOWproxy/tg_ws_proxy.py22CODE
LOWproxy/_aes.py11CODE
LOWproxy/_aes.py14CODE
LOWutils/linux_update.py10CODE
LOWutils/tray_common.py1CODE
LOWutils/win32_theme.py1CODE
LOWutils/update_check.py7CODE
LOWutils/diagnostics.py1CODE
LOWutils/__init__.py3CODE
LOWutils/__init__.py3CODE
LOWutils/__init__.py3CODE
LOWutils/default_config.py5CODE
LOWutils/logging_setup.py12CODE
Deep Nesting42 hits · 38 pts
SeverityFileLineSnippetContext
LOWmacos.py254CODE
LOWwindows.py386CODE
LOWui/connectivity.py24CODE
LOWui/connectivity.py93CODE
LOWui/settings_form.py482CODE
LOWui/i18n/__init__.py61CODE
LOWproxy/h2_transport.py138CODE
LOWproxy/config.py88CODE
LOWproxy/cf_h2.py305CODE
LOWproxy/cf_h2.py535CODE
LOWproxy/cf_h2.py680CODE
LOWproxy/cf_h2.py695CODE
LOWproxy/fake_tls.py210CODE
LOWproxy/bridge.py138CODE
LOWproxy/bridge.py317CODE
LOWproxy/bridge.py336CODE
LOWproxy/bridge.py385CODE
LOWproxy/tg_ws_proxy.py247CODE
LOWproxy/tg_ws_proxy.py362CODE
LOWproxy/tg_ws_proxy.py439CODE
LOWproxy/pool.py76CODE
LOWproxy/pool.py135CODE
LOWtests/test_h2_settings.py20CODE
LOWtests/test_h2_settings.py56CODE
LOWtests/test_h2_settings.py85CODE
LOWtests/test_raw_websocket.py58CODE
LOWtests/test_raw_websocket.py174CODE
LOWtests/test_event_loop.py213CODE
LOWtests/test_event_loop.py214CODE
LOWtests/test_cf_h2.py209CODE
LOWtests/test_cf_h2.py333CODE
LOWtests/test_cf_h2.py461CODE
LOWtests/test_h2_transport.py120CODE
LOWtests/test_h2_transport.py532CODE
LOWtests/test_linux_update.py222CODE
LOWtests/test_bridge.py124CODE
LOWtests/test_bridge.py174CODE
LOWtests/test_pool.py45CODE
LOWtests/test_pool.py168CODE
LOWutils/tray_common.py70CODE
LOWutils/update_check.py272CODE
LOWutils/update_check.py331CODE
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMproxy/pool.py332CODE
MEDIUMproxy/pool.py335CODE
MEDIUMproxy/pool.py336CODE
MEDIUMproxy/pool.py338CODE
MEDIUMproxy/pool.py339CODE
MEDIUMproxy/pool.py340CODE
MEDIUMtests/test_cf_h2.py213CODE
Modern Structural Boilerplate5 hits · 5 pts
SeverityFileLineSnippetContext
LOWwindows.py177 def _set_status(msg: str) -> None:CODE
LOWwindows.py386def set_autostart_enabled(enabled: bool) -> None:CODE
LOWproxy/__init__.py6__all__ = ["__version__", "get_link_host", "proxy_config", "parse_dc_ip_list", "build_github_opener", "coerce_domain_lisCODE
LOWproxy/balancer.py12 def update_domains_list(self, domains_list: List[str]) -> None:CODE
LOWutils/__init__.py5__all__ = ["RELEASES_PAGE_URL", "get_status", "run_check"]CODE