基于 Claude Code 的长篇网文辅助创作系统,解决 AI 写作中的「遗忘」和「幻觉」问题,支持 200 万字量级 连载创作。
This report summarizes scanner evidence for lingfengQAQ/webnovel-writer, a Python project with 7,421 GitHub stars. SynthScan examined 114,111 lines of code across 436 source files, recording 1525 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 17.5 (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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1065 finding(s).
Are imports declared and package/API names verified? 181 finding(s).
Are wrappers, guards, and repeated structures necessary? 1216 finding(s).
Which changes need focused human review? 1525 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 1525 distinct pattern matches across 14 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 |
|---|---|---|---|---|
| LOW | sitecustomize.py | 8 | def _looks_like_pytest_process() -> bool: | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 93 | def test_story_event_supports_power_breakthrough(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 113 | def test_event_log_store_writes_per_chapter_file_and_sqlite_mirror(tmp_path): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 258 | def test_router_maps_power_breakthrough_to_state_and_memory(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 264 | def test_router_maps_relationship_changed_to_index(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 341 | def test_normalize_override_record_sets_record_type(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 353 | def test_normalize_override_record_supports_amend_proposal(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 364 | def test_world_rule_broken_generates_amend_proposal(): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 405 | def normalize_override_record(*, record_type: str, field: str, base_value: str, override_value: str, source_level: str) | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 489 | def ensure_override_ledger_columns(conn) -> None: | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 556 | def test_webnovel_story_events_forwards(monkeypatch, tmp_path): | CODE |
| LOW | …2-story-system-phase4-event-log-and-override-ledger.md | 577 | def test_story_events_cli_reads_chapter_file(tmp_path, monkeypatch, capsys): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 110 | def test_story_contract_paths_live_under_project_root(tmp_path): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 120 | def test_merge_contract_layers_respects_lock_categories(): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 156 | def test_merge_anti_patterns_deduplicates_by_text(): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 181 | def story_system_chapters_dir(self) -> Path: | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 189 | def story_system_anti_patterns_json(self) -> Path: | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 323 | def test_story_system_routes_explicit_genre_and_collects_anti_patterns(tmp_path): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 409 | def test_story_system_falls_back_to_explicit_genre(tmp_path): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 621 | def _extract_route_anti_patterns(self, row: Dict[str, Any]) -> List[Dict[str, Any]]: | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 727 | def test_story_system_persist_writes_master_chapter_and_anti_patterns(tmp_path, monkeypatch): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 799 | def test_markdown_writer_preserves_manual_notes_outside_markers(tmp_path): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 820 | def test_webnovel_story_system_forwards_with_resolved_project_root(monkeypatch, tmp_path): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 881 | def render_anti_patterns_markdown(anti_patterns: list[dict]) -> str: | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 981 | def test_context_manager_includes_story_contract_section_before_genre_profile(temp_project): | CODE |
| LOW | …/plans/2026-04-12-story-system-phase1-contract-seed.md | 1033 | def test_build_chapter_context_payload_includes_story_contract(tmp_path): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 77 | def test_review_issue_blocking_defaults(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 88 | def test_review_issue_non_critical_not_blocking(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 99 | def test_review_result_counts(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 115 | def test_review_result_no_issues(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 121 | def test_review_result_to_dict_roundtrip(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 138 | def test_parse_review_output_from_dict(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 151 | def test_parse_review_output_tolerates_missing_fields(): | CODE |
| LOW | …archive/superpowers/plans/2026-04-03-phase1-cleanup.md | 163 | def test_review_result_to_metrics_dict(): | CODE |
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 93 | def test_chapter_commit_accepts_required_sections(): | CODE |
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 184 | def test_commit_service_rejects_when_missed_nodes_exist(tmp_path): | CODE |
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 196 | def test_commit_service_accepts_when_all_checks_pass(tmp_path): | CODE |
| LOW⚡ | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 352 | def test_state_projection_writer_skips_rejected_commit(tmp_path): | CODE |
| LOW⚡ | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 358 | def test_state_projection_writer_applies_accepted_commit(tmp_path): | CODE |
| LOW⚡ | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 368 | def test_accepted_commit_updates_state_json_end_to_end(tmp_path): | CODE |
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 496 | def test_webnovel_commit_forwards(monkeypatch, tmp_path): | CODE |
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 515 | def test_chapter_commit_cli_builds_and_persists_commit(tmp_path, monkeypatch): | CODE |
| LOW⚡ | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 90 | def test_load_json_arg_rejects_file_outside_base_dir(tmp_path): | CODE |
| LOW⚡ | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 100 | def test_load_json_arg_allows_file_inside_base_dir(tmp_path): | CODE |
| LOW⚡ | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 109 | def test_load_json_arg_stdin_ignores_base_dir(monkeypatch, tmp_path): | CODE |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 257 | def test_apply_projections_updates_state_for_rejected_commit(tmp_path): | CODE |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 548 | def test_set_chapter_status_uses_locked_save_state(temp_project, monkeypatch): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 567 | def test_set_chapter_status_preserves_existing_disk_state(temp_project): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 686 | def test_collect_chunks_includes_summary_and_scenes(): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 783 | async def test_run_store_coro_works_inside_active_event_loop(): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 956 | def test_dashboard_cors_allows_localhost_origin(tmp_path): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 973 | def test_dashboard_cors_rejects_untrusted_origin(tmp_path): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 1036 | def test_backup_manager_gitignore_excludes_env(tmp_path, monkeypatch): | STRING |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 1099 | def test_style_sampler_ignores_corrupt_tag_json(temp_project): | STRING |
| LOW⚡ | …ers/plans/2026-04-15-story-system-final-convergence.md | 1153 | def test_router_maps_power_breakthrough_to_state_memory_vector(): | CODE |
| LOW⚡ | …ers/plans/2026-04-15-story-system-final-convergence.md | 1163 | def test_router_maps_relationship_changed_to_index_and_vector(): | CODE |
| LOW⚡ | …ers/plans/2026-04-15-story-system-final-convergence.md | 1172 | def test_required_writers_includes_vector_for_key_events(): | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 271 | def test_csv_config_columns_exist_in_csv_header(table_name: str, config: dict): | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 294 | def test_csv_config_file_field_matches_filename(): | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 314 | def test_different_tables_use_different_search_weights(self): | CODE |
| 875 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ers/plans/2026-04-15-story-system-final-convergence.md | 69 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ers/plans/2026-04-15-story-system-final-convergence.md | 71 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …rpowers/plans/2026-04-16-references-genre-alignment.md | 70 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …rpowers/plans/2026-04-16-references-genre-alignment.md | 72 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 26 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 252 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 254 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 288 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 290 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 301 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 303 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 661 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 663 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 822 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 824 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 865 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 867 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 886 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 888 | # =========================================================== | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 914 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/dashboard/app.py | 916 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/reference_search.py | 111 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/reference_search.py | 113 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 27 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 29 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 58 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 60 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 127 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 129 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 225 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 227 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 316 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 318 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 359 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 361 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 467 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/reference_search.py | 469 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/archive_manager.py | 44 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/archive_manager.py | 46 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/archive_manager.py | 81 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/archive_manager.py | 85 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/backup_manager.py | 60 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/backup_manager.py | 62 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/backup_manager.py | 254 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/backup_manager.py | 258 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/update_state.py | 57 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/update_state.py | 59 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/update_state.py | 163 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | webnovel-writer/scripts/update_state.py | 167 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 228 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 230 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 337 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 339 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 548 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/security_utils.py | 550 | # ============================================================================ | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/memory_contract.py | 17 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/memory_contract.py | 19 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/memory_contract.py | 105 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/memory_contract.py | 107 | # --------------------------------------------------------------------------- | COMMENT |
| 55 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sitecustomize.py | 1 | CODE | |
| LOW | webnovel-writer/dashboard/watcher.py | 12 | CODE | |
| LOW | webnovel-writer/dashboard/watcher.py | 14 | CODE | |
| LOW | webnovel-writer/dashboard/watcher.py | 14 | CODE | |
| LOW | webnovel-writer/hooks/session_start.py | 3 | CODE | |
| LOW | webnovel-writer/hooks/guard_runtime_write.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/reference_search.py | 13 | CODE | |
| LOW | webnovel-writer/scripts/reference_search.py | 20 | CODE | |
| LOW | webnovel-writer/scripts/reference_search.py | 24 | CODE | |
| LOW | webnovel-writer/scripts/story_system.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/chapter_paths.py | 12 | CODE | |
| LOW | webnovel-writer/scripts/init_project.py | 16 | CODE | |
| LOW | webnovel-writer/scripts/runtime_compat.py | 7 | CODE | |
| LOW | webnovel-writer/scripts/conftest.py | 1 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 82 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 88 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 95 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 106 | CODE | |
| LOW | webnovel-writer/scripts/review_pipeline.py | 9 | CODE | |
| LOW | webnovel-writer/scripts/update_master_outline.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/chapter_commit.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/validate_release_notes.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/genre_taxonomy.py | 11 | CODE | |
| LOW | webnovel-writer/scripts/project_locator.py | 13 | CODE | |
| LOW | webnovel-writer/scripts/archive_manager.py | 36 | CODE | |
| LOW | webnovel-writer/scripts/story_events.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/quality_trend_report.py | 11 | CODE | |
| LOW | webnovel-writer/scripts/chapter_outline_loader.py | 4 | CODE | |
| LOW | webnovel-writer/scripts/project_memory.py | 4 | CODE | |
| LOW | webnovel-writer/scripts/validate_csv.py | 8 | CODE | |
| LOW | webnovel-writer/scripts/webnovel.py | 16 | CODE | |
| LOW | webnovel-writer/scripts/memory_cli.py | 9 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 50 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 51 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 58 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 63 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 63 | CODE | |
| LOW | webnovel-writer/scripts/validate_plugin_package.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/validate_plugin_package.py | 8 | CODE | |
| LOW | webnovel-writer/scripts/extract_chapter_context.py | 13 | CODE | |
| LOW | webnovel-writer/scripts/update_state.py | 55 | CODE | |
| LOW | webnovel-writer/scripts/run_behavior_evals.py | 3 | CODE | |
| LOW | …vel-writer/scripts/tests/test_security_utils_atomic.py | 1 | CODE | |
| LOW | …vel-writer/scripts/tests/test_security_utils_atomic.py | 6 | CODE | |
| LOW | …bnovel-writer/scripts/tests/test_dashboard_security.py | 1 | CODE | |
| LOW | webnovel-writer/scripts/tests/test_backup_manager.py | 1 | CODE | |
| LOW | webnovel-writer/scripts/tests/test_reference_search.py | 12 | CODE | |
| LOW | …-writer/scripts/data_modules/chapter_commit_service.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/memory_contract.py | 11 | CODE | |
| LOW | …iter/scripts/data_modules/summary_projection_writer.py | 3 | CODE | |
| LOW | …l-writer/scripts/data_modules/amend_proposal_schema.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/context_weights.py | 7 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 21 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/cli_args.py | 18 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/context_manager.py | 6 | CODE | |
| LOW | …ovel-writer/scripts/data_modules/story_event_schema.py | 3 | CODE | |
| LOW | …ovel-writer/scripts/data_modules/artifact_validator.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/knowledge_query.py | 3 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/knowledge_query.py | 7 | CODE | |
| LOW | …bnovel-writer/scripts/data_modules/commit_artifacts.py | 3 | CODE | |
| 120 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | webnovel-writer/dashboard/app.py | 879 | except asyncio.CancelledError: | CODE |
| HIGH | webnovel-writer/dashboard/watcher.py | 88 | except ValueError: | CODE |
| HIGH | webnovel-writer/hooks/guard_runtime_write.py | 58 | except Exception: | CODE |
| HIGH | webnovel-writer/scripts/conftest.py | 70 | except sqlite3.DatabaseError: | CODE |
| HIGH | webnovel-writer/scripts/status_reporter.py | 788 | except Exception: | CODE |
| HIGH | webnovel-writer/scripts/project_locator.py | 343 | except Exception: | CODE |
| HIGH | webnovel-writer/scripts/archive_manager.py | 261 | except (TypeError, ValueError): | CODE |
| HIGH | webnovel-writer/scripts/archive_manager.py | 253 | except ValueError: | CODE |
| HIGH | webnovel-writer/scripts/archive_manager.py | 272 | except ValueError: | CODE |
| HIGH | webnovel-writer/scripts/archive_manager.py | 278 | except ValueError: | CODE |
| HIGH | webnovel-writer/scripts/update_state.py | 582 | except ValueError: | CODE |
| HIGH | webnovel-writer/scripts/security_utils.py | 580 | except ValueError: | CODE |
| HIGH | webnovel-writer/scripts/security_utils.py | 481 | except OSError: | CODE |
| HIGH | webnovel-writer/scripts/security_utils.py | 453 | except OSError: | CODE |
| HIGH | …-writer/scripts/data_modules/chapter_commit_service.py | 160 | except Exception: | CODE |
| HIGH | webnovel-writer/scripts/data_modules/rag_adapter.py | 1047 | except (TypeError, ValueError): | CODE |
| HIGH | webnovel-writer/scripts/data_modules/state_manager.py | 136 | except ImportError: | CODE |
| HIGH | …writer/scripts/data_modules/migrate_state_to_sqlite.py | 377 | except Exception: | CODE |
| HIGH | …writer/scripts/data_modules/migrate_state_to_sqlite.py | 370 | except Exception: | CODE |
| HIGH | …writer/scripts/data_modules/migrate_state_to_sqlite.py | 362 | except Exception: | CODE |
| HIGH | …vel-writer/scripts/data_modules/index_reading_mixin.py | 354 | except (TypeError, ValueError): | CODE |
| HIGH | …vel-writer/scripts/data_modules/index_reading_mixin.py | 358 | except (TypeError, ValueError): | CODE |
| HIGH | …vel-writer/scripts/data_modules/index_reading_mixin.py | 212 | except (TypeError, ValueError): | CODE |
| HIGH | …riter/scripts/data_modules/tests/test_dashboard_app.py | 33 | except Exception: | CODE |
| HIGH | …riter/scripts/data_modules/tests/test_dashboard_app.py | 336 | except Exception: | CODE |
| HIGH | …ter/scripts/data_modules/tests/test_project_locator.py | 55 | except FileNotFoundError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …2026-04-12-story-system-phase3-chapter-commit-chain.md | 290 | except Exception as exc: | CODE |
| LOW | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 825 | except Exception as exc: | STRING |
| MEDIUM | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 822 | def runner() -> None: | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 1251 | except Exception as exc: | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 1451 | except Exception as exc: | CODE |
| LOW | …ers/plans/2026-04-15-story-system-final-convergence.md | 1544 | except Exception as exc: | CODE |
| LOW | …ans/2026-04-13-story-system-phase5-legacy-downgrade.md | 759 | except Exception as exc: | CODE |
| LOW | webnovel-writer/dashboard/app.py | 233 | except Exception: | CODE |
| LOW | webnovel-writer/hooks/session_start.py | 56 | except Exception: | CODE |
| LOW | webnovel-writer/hooks/guard_runtime_write.py | 58 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/init_project.py | 690 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/runtime_compat.py | 40 | except Exception: | CODE |
| LOW⚡ | webnovel-writer/scripts/status_reporter.py | 885 | except Exception: | CODE |
| LOW⚡ | webnovel-writer/scripts/status_reporter.py | 888 | except Exception: | CODE |
| LOW⚡ | webnovel-writer/scripts/status_reporter.py | 895 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/status_reporter.py | 316 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/status_reporter.py | 367 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/status_reporter.py | 406 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/status_reporter.py | 443 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/status_reporter.py | 788 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 57 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 67 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 90 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 113 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 204 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 219 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 337 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/project_locator.py | 343 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/archive_manager.py | 320 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/archive_manager.py | 501 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/archive_manager.py | 508 | except Exception as e: | CODE |
| MEDIUM | webnovel-writer/scripts/sync_plugin_version.py | 227 | print(f"Error: {error}") | CODE |
| LOW | webnovel-writer/scripts/chapter_outline_loader.py | 43 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/validate_csv.py | 57 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/validate_plugin_package.py | 156 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/extract_chapter_context.py | 224 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/extract_chapter_context.py | 289 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/extract_chapter_context.py | 380 | except Exception as exc: | CODE |
| LOW⚡ | webnovel-writer/scripts/update_state.py | 176 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/update_state.py | 194 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/update_state.py | 624 | except Exception as e: | STRING |
| LOW | webnovel-writer/scripts/run_behavior_evals.py | 423 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/security_utils.py | 473 | except Exception as e: | CODE |
| LOW | …-writer/scripts/data_modules/chapter_commit_service.py | 147 | except Exception as exc: | CODE |
| LOW | …-writer/scripts/data_modules/chapter_commit_service.py | 160 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 105 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 109 | except Exception as restore_exc: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 428 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 515 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 1042 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 1533 | except Exception: | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 461 | except Exception as e: | STRING |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 468 | except Exception as e: | STRING |
| LOW⚡ | webnovel-writer/scripts/data_modules/state_manager.py | 452 | except Exception as exc: | CODE |
| LOW⚡ | webnovel-writer/scripts/data_modules/state_manager.py | 460 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 612 | except Exception as e: | CODE |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 1213 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/data_modules/context_manager.py | 177 | except Exception as exc: | CODE |
| LOW | webnovel-writer/scripts/data_modules/context_manager.py | 581 | except Exception as exc: | CODE |
| LOW⚡ | webnovel-writer/scripts/data_modules/context_manager.py | 819 | except Exception as exc: | CODE |
| 55 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | webnovel-writer/dashboard/app.py | 163 | CODE | |
| LOW | webnovel-writer/scripts/reference_search.py | 266 | CODE | |
| LOW | webnovel-writer/scripts/reference_search.py | 298 | CODE | |
| LOW | webnovel-writer/scripts/init_project.py | 234 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 342 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 552 | CODE | |
| LOW | webnovel-writer/scripts/status_reporter.py | 777 | CODE | |
| LOW | webnovel-writer/scripts/genre_taxonomy.py | 178 | CODE | |
| LOW | webnovel-writer/scripts/project_locator.py | 118 | CODE | |
| LOW | webnovel-writer/scripts/archive_manager.py | 297 | CODE | |
| LOW | webnovel-writer/scripts/validate_csv.py | 83 | CODE | |
| LOW | webnovel-writer/scripts/backup_manager.py | 439 | CODE | |
| LOW | webnovel-writer/scripts/extract_chapter_context.py | 110 | CODE | |
| LOW | webnovel-writer/scripts/update_state.py | 393 | CODE | |
| LOW | webnovel-writer/scripts/run_behavior_evals.py | 318 | CODE | |
| LOW | webnovel-writer/scripts/security_utils.py | 375 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 1391 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 262 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 379 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 560 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 663 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 1341 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 229 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 423 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 464 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 754 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 786 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 862 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 1023 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 1112 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/config.py | 30 | CODE | |
| LOW | …ovel-writer/scripts/data_modules/artifact_validator.py | 109 | CODE | |
| LOW | …ovel-writer/scripts/data_modules/artifact_validator.py | 244 | CODE | |
| LOW | …writer/scripts/data_modules/state_projection_writer.py | 253 | CODE | |
| LOW | …writer/scripts/data_modules/memory_contract_adapter.py | 159 | CODE | |
| LOW | …ovel-writer/scripts/data_modules/index_entity_mixin.py | 58 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/state_validator.py | 214 | CODE | |
| LOW | …writer/scripts/data_modules/index_projection_writer.py | 332 | CODE | |
| LOW | …writer/scripts/data_modules/migrate_state_to_sqlite.py | 40 | CODE | |
| LOW | …bnovel-writer/scripts/data_modules/index_debt_mixin.py | 241 | CODE | |
| LOW | …bnovel-writer/scripts/data_modules/index_debt_mixin.py | 338 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/schemas.py | 149 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/entity_linker.py | 181 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/index_manager.py | 721 | CODE | |
| LOW | …iter/scripts/data_modules/index_observability_mixin.py | 19 | CODE | |
| LOW | …novel-writer/scripts/data_modules/sql_state_manager.py | 519 | CODE | |
| LOW | …novel-writer/scripts/data_modules/sql_state_manager.py | 284 | CODE | |
| LOW | …riter/scripts/data_modules/vector_projection_writer.py | 139 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/project_phase.py | 316 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/style_sampler.py | 320 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/style_sampler.py | 207 | CODE | |
| LOW | …vel-writer/scripts/data_modules/index_reading_mixin.py | 88 | CODE | |
| LOW | …vel-writer/scripts/data_modules/index_reading_mixin.py | 190 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/api_client.py | 119 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/story_contracts.py | 78 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/memory/store.py | 65 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/memory/store.py | 100 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/memory/store.py | 138 | CODE | |
| LOW | …bnovel-writer/scripts/data_modules/memory/compactor.py | 24 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/memory/writer.py | 273 | CODE | |
| 2 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 0 | select from_entity, to_entity, relationship_type, description, chapter from relationship_events where (from_entity = ? o | STRING |
| HIGH | webnovel-writer/scripts/data_modules/knowledge_query.py | 0 | select from_entity, to_entity, relationship_type, description, chapter from relationship_events where (from_entity = ? o | STRING |
| HIGH | …ers/plans/2026-04-15-story-system-final-convergence.md | 0 | select from_entity, to_entity, relationship_type, description, chapter from relationship_events where (from_entity = ? o | STRING |
| HIGH | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 0 | insert into samples (id, chapter, scene_type, content, score, tags, created_at) values (?, ?, ?, ?, ?, ?, current_timest | STRING |
| HIGH | webnovel-writer/scripts/data_modules/style_sampler.py | 0 | insert into samples (id, chapter, scene_type, content, score, tags, created_at) values (?, ?, ?, ?, ?, ?, current_timest | STRING |
| HIGH | …r/scripts/data_modules/tests/test_style_sampler_cli.py | 0 | insert into samples (id, chapter, scene_type, content, score, tags, created_at) values (?, ?, ?, ?, ?, ?, current_timest | STRING |
| HIGH | …ers/plans/2026-04-15-story-system-final-convergence.md | 0 | create table if not exists state_changes ( id integer primary key autoincrement, entity_id text, chapter integer, field | STRING |
| HIGH | …ter/scripts/data_modules/tests/test_knowledge_query.py | 0 | create table if not exists state_changes ( id integer primary key autoincrement, entity_id text, chapter integer, field | STRING |
| HIGH | webnovel-writer/scripts/data_modules/tests/mock_demo.py | 0 | create table if not exists state_changes ( id integer primary key autoincrement, entity_id text, chapter integer, field | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | webnovel-writer/scripts/backup_manager.py | 245 | # Step 1: git add . | COMMENT |
| LOW⚡ | webnovel-writer/scripts/backup_manager.py | 251 | # Step 2: git commit | COMMENT |
| LOW | webnovel-writer/scripts/backup_manager.py | 280 | # Step 3: git tag | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 58 | # Step 1: 仅保留基础文件名(移除所有路径) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 61 | # Step 2: 移除路径分隔符(双重保险) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 64 | # Step 3: 只保留安全字符 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 68 | # Step 4: 移除连续的下划线(美化) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 71 | # Step 5: 长度限制 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 75 | # Step 6: 移除首尾下划线 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 78 | # Step 7: 确保非空(防御性编程) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 110 | # Step 1: 移除换行符(防止多行参数注入) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 113 | # Step 2: 移除Git特殊标志(--开头的参数) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 116 | # Step 3: 移除引号(防止参数分隔符混淆) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 119 | # Step 4: 移除前导的-(防止单字母标志如-m) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 122 | # Step 5: 移除连续空格(美化) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 125 | # Step 6: 长度限制 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 129 | # Step 7: 移除首尾空格 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 132 | # Step 8: 确保非空 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 435 | # Step 1: 写入临时文件 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 441 | # Step 2: 获取锁(如果可用且启用) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 448 | # Step 3: 备份原文件(如果存在且启用备份) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 456 | # Step 4: 原子重命名(Windows 上目标被瞬时占用会 WinError 5,带退避重试) | COMMENT |
| LOW⚡ | webnovel-writer/templates/golden-finger-templates.md | 387 | ### Step 1: 确定核心定位 | COMMENT |
| LOW⚡ | webnovel-writer/templates/golden-finger-templates.md | 394 | ### Step 2: 设定获得方式 | COMMENT |
| LOW⚡ | webnovel-writer/templates/golden-finger-templates.md | 402 | ### Step 3: 设计面板/界面 | COMMENT |
| LOW⚡ | webnovel-writer/templates/golden-finger-templates.md | 406 | ### Step 4: 规划升级路线 | COMMENT |
| LOW⚡ | webnovel-writer/templates/golden-finger-templates.md | 413 | ### Step 5: 嵌入爽点节点 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | README.md | 170 | ### 4. 配置 RAG | COMMENT |
| MEDIUM | …/superpowers/plans/2026-06-01-review-critical-fixes.md | 50 | ### Vector Projection/RAG | COMMENT |
| MEDIUM | …rpowers/plans/2026-04-16-dashboard-frontend-rebuild.md | 45 | /api/env-status # RAG/Rerank 环境配置状态(PR #50) | CODE |
| MEDIUM | …rpowers/plans/2026-04-16-dashboard-frontend-rebuild.md | 46 | /api/env-status/probe # RAG/Rerank 主动探测(PR #50) | CODE |
| MEDIUM | …e/superpowers/specs/2026-04-30-system-quality-fixes.md | 118 | ### Phase 4 — placeholder guardrails / cross-volume anchor writeback(Issues #6 #7) | COMMENT |
| MEDIUM | …architecture/multi-agent-adaptation-spec-2026-06-05.md | 13 | PR #110 的方向是对的:Webnovel Writer 不应该永远只被 Claude Code 的表达方式绑定。它已经有完整的写作运行时、Story System、RAG、Dashboard、Agent 分工和发布校验,下一步可以考虑 | CODE |
| MEDIUM | …chitecture/plugin-runtime-hardening-plan-2026-06-04.md | 1014 | ### 14.5 对 RAG 的影响 | COMMENT |
| MEDIUM | …chitecture/plugin-runtime-hardening-spec-2026-06-04.md | 642 | #### 6.6.2 RAG 配置 | COMMENT |
| MEDIUM | docs/guides/rag-and-config.md | 1 | # RAG 与配置说明 | COMMENT |
| MEDIUM | docs/guides/rag-and-config.md | 3 | ## RAG 检索流程 | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/config.py | 187 | # ================= Graph-RAG 配置 ================= | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/config.py | 332 | # ================= RAG 存储 ================= | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/__init__.py | 43 | # RAG Adapter | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/__init__.py | 85 | # RAG Adapter | COMMENT |
| MEDIUM | webnovel-writer/scripts/data_modules/index_manager.py | 559 | # RAG 查询日志 | STRING |
| MEDIUM | …r/skills/webnovel-query/references/system-data-flow.md | 25 | ├── vectors.db # RAG 向量数据库 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | webnovel-writer/scripts/backup_manager.py | 245 | # Step 1: git add . | COMMENT |
| LOW⚡ | webnovel-writer/scripts/backup_manager.py | 251 | # Step 2: git commit | COMMENT |
| LOW | webnovel-writer/scripts/backup_manager.py | 280 | # Step 3: git tag | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 58 | # Step 1: 仅保留基础文件名(移除所有路径) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 61 | # Step 2: 移除路径分隔符(双重保险) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 64 | # Step 3: 只保留安全字符 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 68 | # Step 4: 移除连续的下划线(美化) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 71 | # Step 5: 长度限制 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 75 | # Step 6: 移除首尾下划线 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 78 | # Step 7: 确保非空(防御性编程) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 110 | # Step 1: 移除换行符(防止多行参数注入) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 113 | # Step 2: 移除Git特殊标志(--开头的参数) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 116 | # Step 3: 移除引号(防止参数分隔符混淆) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 119 | # Step 4: 移除前导的-(防止单字母标志如-m) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 122 | # Step 5: 移除连续空格(美化) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 125 | # Step 6: 长度限制 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 129 | # Step 7: 移除首尾空格 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 132 | # Step 8: 确保非空 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 435 | # Step 1: 写入临时文件 | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 441 | # Step 2: 获取锁(如果可用且启用) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 448 | # Step 3: 备份原文件(如果存在且启用备份) | COMMENT |
| LOW⚡ | webnovel-writer/scripts/security_utils.py | 456 | # Step 4: 原子重命名(Windows 上目标被瞬时占用会 WinError 5,带退避重试) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | webnovel-writer/scripts/__init__.py | 10 | __all__ = [ | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 38 | logger = logging.getLogger(__name__) | CODE |
| LOW | webnovel-writer/scripts/data_modules/rag_adapter.py | 83 | def _update_degraded_mode(self) -> None: | CODE |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | webnovel-writer/scripts/data_modules/state_manager.py | 681 | def set_chapter_status(self, chapter: int, status: str) -> None: | CODE |
| LOW | webnovel-writer/scripts/data_modules/context_manager.py | 55 | logger = logging.getLogger(__name__) | CODE |
| LOW | …writer/scripts/data_modules/state_projection_writer.py | 199 | def _set_path(target: dict, path: str, value: Any) -> None: | CODE |
| LOW⚡ | …writer/scripts/data_modules/memory_contract_adapter.py | 29 | logger = logging.getLogger(__name__) | CODE |
| LOW | webnovel-writer/scripts/data_modules/__init__.py | 21 | __all__ = [ | CODE |
| LOW | webnovel-writer/scripts/data_modules/observability.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ovel-writer/scripts/data_modules/index_entity_mixin.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | …iter/scripts/data_modules/index_observability_mixin.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | …riter/scripts/data_modules/vector_projection_writer.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | webnovel-writer/scripts/data_modules/memory/__init__.py | 18 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | webnovel-writer/scripts/security_utils.py | 200 | 验证并转换整数输入(严格模式) 安全关键函数 - 修复update_state.py弱验证漏洞 Args: value: 输入值(字符串) field_name: 字段名称(用于 | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | webnovel-writer/scripts/init_project.py | 234 | CODE | |
| LOW | webnovel-writer/scripts/data_modules/entity_linker.py | 115 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …er/scripts/data_modules/tests/test_story_system_cli.py | 166 | assert "placeholder" in captured.err | CODE |