AI Slop Code RIsk Monitor

MDX-Tom/gpt-instruct

A Codex jailbreak prompt and test pack for gpt. 针对 gpt 系列的 Codex 破甲提示词与测试包。

15.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for MDX-Tom/gpt-instruct, a Python project with 9,822 GitHub stars. SynthScan examined 4,528 lines of code across 17 source files, recording 53 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 15.9 (Elevated 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.

15.9
Adjusted Signal
15.9
Raw Pattern Score
100%
Time Factor
2026-10-04
Last Push
9.8K
Stars
Python
Language
4.5K
Lines of Code
17
Files
53
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 33.5/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 8.4/100 · LOW

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

Agent Over-Engineering Ratio 49.0/100 · MEDIUM

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

PR Review Velocity Impact 53.3/100 · HIGH

Which changes need focused human review? 53 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 0MEDIUM 8LOW 45

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 53 distinct pattern matches across 4 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.

Hyper-Verbose Identifiers34 hits · 34 pts
SeverityFileLineSnippetContext
LOWcodex-instruct.py190def is_valid_instruction_line(line: object) -> bool:STRING
LOWcodex-instruct.py199def top_level_model_instructions_line(text: str) -> str | None:STRING
LOWcodex-instruct.py210def line_references_managed_prompt(line: str | None, filenames: set[str]) -> bool:CODE
LOWcodex-instruct.py224def replace_top_level_model_instructions(text: str, replacement: str | None) -> str:CODE
LOWcodex-instruct.py340def previous_instruction_from_legacy_baseline(config_path: Path) -> str | None:CODE
LOWcodex-instruct.py399def restore_managed_model_instructions(config_path: Path) -> tuple[bool, str]:CODE
LOWsync-archives.py77def write_single_file_archive(source: Path, destination: Path, archive_name: str) -> None:CODE
LOWunit-tests/test_codex_instruct.py146 def test_interactive_menu_selects_each_packaged_version(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py169 def test_round_trip_restores_previous_instruction_entry(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py192 def test_nested_assignment_is_not_rewritten(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py215 def test_legacy_baseline_migrates_only_previous_instruction(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py240 def test_full_reset_removes_state_and_prompt_without_reverting_provider(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py275 def test_crlf_line_endings_are_preserved(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py285 def test_tampered_state_cannot_nominate_config_for_deletion(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py315 def test_modified_custom_prompt_is_preserved_on_reset(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py341 def test_atomic_config_update_preserves_symlink(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py359 def test_external_path_with_managed_basename_is_not_owned(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py369 def test_preexisting_unowned_prompt_is_not_overwritten(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py386 def test_explicit_snapshot_restore_keeps_manual_recovery(self) -> None:CODE
LOWunit-tests/test_codex_instruct.py403 def test_legacy_preexisting_prompt_is_preserved(self) -> None:CODE
LOWunit-tests/test_archive_sync.py21 def test_archive_specs_never_target_examples(self) -> None:CODE
LOWunit-tests/test_archive_sync.py26 def test_matching_archive_is_detected_without_metadata_rewrite(self) -> None:CODE
LOWunit-tests/test_archive_sync.py43 def test_changed_source_marks_archive_stale(self) -> None:CODE
LOWunit-tests/test_star_history.py112 def test_renderer_fallback_and_annotation_policy(self) -> None:CODE
LOWunit-tests/test_star_history.py157 def test_repository_seed_passes_schema_validation(self) -> None:CODE
LOWunit-tests/test_star_history.py169 def test_metadata_request_does_not_list_stargazers(self) -> None:CODE
LOWunit-tests/test_star_history.py200 def test_current_record_coalesces_same_day_and_appends_next_day(self) -> None:CODE
LOWunit-tests/test_star_history.py235 def test_deployed_data_preferred_with_guarded_seed_fallbacks(self) -> None:CODE
LOWunit-tests/test_star_history.py339 def test_pipeline_contains_no_hosted_service_or_stargazer_listing(self) -> None:CODE
LOWunit-tests/test_star_history.py353 def test_patch_seeds_local_cache_and_is_idempotent(self) -> None:CODE
LOWunit-tests/test_star_history.py370 def test_patch_rejects_unexpected_upstream_source(self) -> None:CODE
LOW.github/scripts/star_history.py295def fetch_repository_star_count(repository: str, token: str) -> int:CODE
LOW⚡.github/scripts/star_history.py466def validate_local_backend_url(value: str) -> str:CODE
LOW⚡.github/scripts/star_history.py475def validate_fallback_base_url(value: str) -> str:CODE
Decorative Section Separators8 hits · 27 pts
SeverityFileLineSnippetContext
MEDIUM.github/scripts/star_history.py86# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/star_history.py88# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/star_history.py150# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/star_history.py152# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/star_history.py399# ---------------------------------------------------------------------------COMMENT
MEDIUM.github/scripts/star_history.py401# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/scripts/star_history.py461# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/scripts/star_history.py463# ---------------------------------------------------------------------------COMMENT
Unused Imports8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcodex-instruct.py11CODE
LOWsync-archives.py4CODE
LOWunit-tests/test_codex_instruct.py1CODE
LOWunit-tests/test_archive_sync.py1CODE
LOWunit-tests/test_star_history.py1CODE
LOW.github/scripts/star_history.py15CODE
LOW.github/scripts/build_pages_readme.py4CODE
LOW.github/scripts/build_pages_readme.py10CODE
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWcodex-instruct.py620CODE
LOWcodex-instruct.py726CODE
LOW.github/scripts/build_pages_readme.py178CODE