Fully automatic censorship removal for language models
This report summarizes scanner evidence for p-e-w/heretic, a Python project with 34,499 GitHub stars. SynthScan examined 8,212 lines of code across 37 source files, recording 55 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 10.2 (Moderate 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 40 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 33 finding(s).
Which changes need focused human review? 55 finding(s).
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.
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.
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.
The scanner identified 55 distinct pattern matches across 8 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/heretic/system.py | 76 | except (subprocess.CalledProcessError, FileNotFoundError): | CODE |
| HIGH | src/heretic/system.py | 89 | except (subprocess.CalledProcessError, FileNotFoundError): | CODE |
| HIGH | src/heretic/system.py | 99 | except Exception: # noqa: S110 | CODE |
| HIGH | src/heretic/main.py | 696 | except KeyboardInterrupt: | CODE |
| HIGH | src/heretic/main.py | 843 | except KeyboardInterrupt: | CODE |
| HIGH | src/heretic/main.py | 1385 | except KeyboardInterrupt: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_keyword_rate.py | 26 | def test_print_responses_shows_brackets_literally(self) -> None: | CODE |
| LOW⚡ | tests/test_config.py | 12 | def test_accepts_slug_like_instance_name(self) -> None: | CODE |
| LOW⚡ | tests/test_config.py | 21 | def test_rejects_empty_instance_name(self) -> None: | CODE |
| LOW⚡ | tests/test_config.py | 29 | def test_rejects_whitespace_in_instance_name(self) -> None: | CODE |
| LOW | tests/test_config.py | 41 | def test_rejects_dot_in_instance_name(self) -> None: | CODE |
| LOW | src/heretic/system.py | 50 | def get_nvidia_driver_version() -> str | None: | CODE |
| LOW | src/heretic/system.py | 64 | def get_amdgpu_driver_version() -> str | None: | CODE |
| LOW | src/heretic/system.py | 240 | def get_accelerator_info_dict() -> dict[str, Any]: | CODE |
| LOW | src/heretic/config.py | 560 | def settings_customise_sources( | CODE |
| LOW | src/heretic/reproduce.py | 115 | def load_reproduction_information(path: str) -> dict[str, Any]: | CODE |
| LOW | src/heretic/reproduce.py | 151 | def get_package_mismatch_severity(package_name: str) -> MismatchSeverity: | CODE |
| LOW | src/heretic/reproduce.py | 175 | def format_version_information(version_information: dict[str, Any]) -> str: | CODE |
| LOW | src/heretic/model.py | 453 | def get_abliterable_components(self) -> list[str]: | CODE |
| LOW | src/heretic/utils.py | 278 | def format_dataset_specification(specification: DatasetSpecification) -> str: | CODE |
| LOW | src/heretic/utils.py | 291 | def is_dataset_specification_reproducible(specification: DatasetSpecification) -> bool: | CODE |
| LOW | src/heretic/utils.py | 381 | def generate_requirements_txt() -> str: | CODE |
| LOW | src/heretic/utils.py | 406 | def generate_reproduce_readme( | CODE |
| LOW | src/heretic/plugin.py | 341 | def get_dataset_specifications(self) -> list[DatasetSpecification]: | CODE |
| LOW | src/heretic/evaluator.py | 115 | def get_dataset_specifications(self) -> list[DatasetSpecification]: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/heretic/system.py | 26 | CODE | |
| LOW | src/heretic/system.py | 64 | CODE | |
| LOW | src/heretic/system.py | 423 | CODE | |
| LOW | src/heretic/reproduce.py | 35 | CODE | |
| LOW | src/heretic/model.py | 192 | CODE | |
| LOW | src/heretic/model.py | 720 | CODE | |
| LOW | src/heretic/utils.py | 172 | CODE | |
| LOW | src/heretic/utils.py | 406 | CODE | |
| LOW | src/heretic/main.py | 195 | CODE | |
| LOW | src/heretic/modifiers/ara.py | 255 | CODE | |
| LOW | src/heretic/modifiers/abliteration.py | 310 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/heretic/system.py | 99 | except Exception: # noqa: S110 | CODE |
| LOW | src/heretic/system.py | 175 | except Exception: | CODE |
| LOW | src/heretic/model.py | 159 | except Exception as error: | CODE |
| LOW | src/heretic/utils.py | 204 | except Exception as error: | CODE |
| LOW | src/heretic/plugin.py | 126 | except Exception: | CODE |
| LOW | src/heretic/main.py | 159 | except Exception: | CODE |
| LOW | src/heretic/main.py | 448 | except Exception as error: | CODE |
| LOW | src/heretic/main.py | 1394 | except Exception as error: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | config.default.toml | 1 | # Rename this file to config.toml, place it in the working directory | COMMENT |
| LOW | config.default.toml | 121 | COMMENT | |
| LOW | config.default.toml | 141 | # Example instance override: | COMMENT |
| LOW | config.default.toml | 261 | [modifier.Abliteration] | COMMENT |
| LOW | src/heretic/main.py | 521 | print( | COMMENT |
| LOW | src/heretic/modifiers/abliteration.py | 361 | for module in modules: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/run_tests.py | 15 | # Read the file in 64 kB blocks. | COMMENT |
| LOW | src/heretic/model.py | 270 | # Check if we need special handling for quantized models | COMMENT |
| LOW | src/heretic/utils.py | 674 | # Read the file in 64 kB blocks. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/heretic/model.py | 198 | # This is more robust than splitting component keys (e.g. "attn.o_proj" -> "o_proj") | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/heretic/utils.py | 4 | CODE |