This report summarizes scanner evidence for multimodal-art-projection/YuE. SynthScan examined 16,808 lines of code across 107 source files, recording 373 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 25.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.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 307 finding(s).
Are imports declared and package/API names verified? 40 finding(s).
Are wrappers, guards, and repeated structures necessary? 295 finding(s).
Which changes need focused human review? 373 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 373 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 |
|---|---|---|---|---|
| LOW⚡ | tests/test_text_encoding.py | 49 | def test_shipped_text_io_declares_an_encoding(): | CODE |
| LOW⚡ | tests/test_text_encoding.py | 59 | def test_saved_plan_round_trips_non_ascii(tmp_path): | CODE |
| LOW⚡ | tests/test_text_encoding.py | 67 | def test_result_manifest_round_trips_non_ascii(tmp_path): | CODE |
| LOW⚡ | tests/test_text_encoding.py | 73 | def test_write_json_round_trips_without_mojibake(tmp_path, text): | CODE |
| LOW | tests/test_model.py | 32 | def test_inputs_embeds_and_tail_logits(model): | CODE |
| LOW | tests/test_model.py | 55 | def test_cached_chunks_equal_full(model, kind): | CODE |
| LOW | tests/test_model.py | 68 | def test_left_padding_and_decode(model, kind): | CODE |
| LOW | tests/test_model.py | 86 | def test_hf_generate_padding_and_embeddings(model, cache_implementation): | CODE |
| LOW | tests/test_model.py | 99 | def test_explicit_position_ids(model): | CODE |
| LOW | tests/test_model.py | 110 | def test_save_load_and_remote_auto_class(model, tmp_path): | CODE |
| LOW | tests/test_model.py | 121 | def test_bounded_cache_overflow_and_reset(model): | CODE |
| LOW | tests/test_model.py | 132 | def test_training_labels_and_causality(model): | CODE |
| LOW | tests/test_model.py | 141 | def test_release_tensor_names_and_shapes_when_source_available(): | CODE |
| LOW | tests/test_model.py | 167 | def test_append_only_cache_refuses_explicit_nonappend_slots_without_mutating(tmp_path, positions): | CODE |
| LOW | tests/test_model.py | 178 | def test_append_positions_and_hf_rewrites_match_fresh_sequence_oracle(): | CODE |
| LOW | tests/test_model.py | 194 | def test_loss_rejects_logit_selection_before_populating_cache(selector): | CODE |
| LOW | tests/test_model.py | 204 | def test_full_causal_loss_matches_shifted_logits_and_backpropagates(): | CODE |
| LOW | tests/test_public_export.py | 18 | def test_unknown_metadata_is_not_loaded_or_reserialized(config_class): | CODE |
| LOW | tests/test_public_export.py | 27 | def test_model_export_omits_unlisted_code_reports_and_cache(tmp_path): | CODE |
| LOW⚡ | tests/test_public_export.py | 52 | def test_export_refuses_nonempty_destination(tmp_path): | CODE |
| LOW⚡ | tests/test_public_export.py | 59 | def test_pipeline_export_refuses_residue_at_the_root(tmp_path): | CODE |
| LOW⚡ | tests/test_public_export.py | 67 | def test_hf_download_is_restricted_to_inference_files(monkeypatch, tmp_path): | CODE |
| LOW | tests/test_public_export.py | 83 | def test_export_auto_classes_resolve_to_exported_reviewed_code(tmp_path, kind, redirect): | CODE |
| LOW | tests/test_example_generate.py | 20 | def test_example_preserves_external_score(newline, device, tmp_path, monkeypatch): | CODE |
| LOW | tests/test_example_generate.py | 53 | def test_instrumental_clip_rejects_invalid_duration_before_loading(tmp_path): | CODE |
| LOW | tests/test_cli_decode.py | 61 | def test_decoder_only_cli_matches_native_full_waveform(tmp_path, native, layout): | CODE |
| LOW | tests/test_cli_decode.py | 80 | def test_decoder_cli_preserves_existing_audio_before_loading_weights(tmp_path): | CODE |
| LOW | tests/test_cli_decode.py | 88 | def test_decoder_cli_refuses_nonfinite_latents_without_creating_audio(tmp_path, native): | CODE |
| LOW | tests/test_cli_decode.py | 99 | def test_existing_decoder_only_python_api_control(native): | CODE |
| LOW | tests/test_cli_decode.py | 108 | def test_bad_latent_file_is_rejected_before_resolving_model(tmp_path, monkeypatch, invalid): | CODE |
| LOW | tests/test_cli_decode.py | 134 | def test_decoder_refuses_nonfinite_output_and_releases_model(tmp_path, native, monkeypatch): | CODE |
| LOW | tests/test_instrumental_delivery.py | 15 | def test_instrumental_share_only_exports_receipted_audio(tmp_path, optional): | CODE |
| LOW | tests/test_instrumental_delivery.py | 95 | def test_generated_receipts_take_precedence_over_preparation_receipts(tmp_path, variant): | CODE |
| LOW | tests/test_protocol.py | 17 | def test_defaults_and_native_instructions(): | CODE |
| LOW | tests/test_protocol.py | 28 | def test_cfg_keeps_exact_score_and_removes_only_text(): | CODE |
| LOW | tests/test_protocol.py | 43 | def test_external_abc_retains_crlf(tmp_path): | CODE |
| LOW | tests/test_protocol.py | 54 | def test_window_count_sign_and_window_expiry(): | CODE |
| LOW | tests/test_protocol.py | 60 | def test_top_p_off_keeps_three_and_symbolic_one(): | CODE |
| LOW⚡ | tests/test_protocol.py | 71 | def test_vocab_and_eos_minimum(): | CODE |
| LOW⚡ | tests/test_protocol.py | 81 | def test_integrity_rejects_incomplete_outputs(tmp_path): | CODE |
| LOW⚡ | tests/test_protocol.py | 87 | def test_invalid_hyperparameters(): | CODE |
| LOW⚡ | tests/test_protocol.py | 97 | def test_partial_abc_override_keeps_abc_defaults(): | CODE |
| LOW⚡ | tests/test_protocol.py | 103 | def test_saved_plan_preserves_exact_ids_and_rejects_edits(tmp_path): | CODE |
| LOW | tests/test_protocol.py | 117 | def test_invalid_generation_contract_is_rejected_immediately(field, value): | CODE |
| LOW | tests/test_protocol.py | 120 | def test_dictionary_overrides_still_resolve_sampling_defaults(): | CODE |
| LOW | tests/test_tokenizer.py | 23 | def test_bpe_rank_table_rejects_duplicate_missing_or_negative_ranks( | CODE |
| LOW | tests/test_tokenizer.py | 35 | def test_native_bpe_encode_decode_and_export_roundtrip(native_merge_file, tmp_path): | CODE |
| LOW | tests/test_skill_listen.py | 38 | def test_html_escaping_and_exact_artifacts(self): | CODE |
| LOW⚡ | tests/test_skill_listen.py | 51 | def test_failures_are_visible(self): | CODE |
| LOW⚡ | tests/test_skill_listen.py | 61 | def test_mismatch_withholds_player(self): | CODE |
| LOW⚡ | tests/test_skill_listen.py | 67 | def test_secret_metadata_withheld(self): | CODE |
| LOW | tests/test_skill_listen.py | 84 | def test_metadata_changed_after_validation_is_not_exported(tmp_path, monkeypatch): | CODE |
| LOW | tests/test_fast.py | 33 | def test_optional_imports_do_not_load_cuda_extensions(): | CODE |
| LOW | tests/test_fast.py | 48 | def test_derived_ar_subset_and_hash_validation(tmp_path): | STRING |
| LOW⚡ | tests/test_fast.py | 61 | def test_missing_ar_tensor_fails(tmp_path): | STRING |
| LOW⚡ | tests/test_fast.py | 69 | def test_full_context_kv_budget(): | STRING |
| LOW⚡ | tests/test_fast.py | 78 | def test_cfg_and_device_fallback_preserve_protocol(monkeypatch, cfg, legacy, reason): | STRING |
| LOW | tests/test_fast.py | 97 | def test_worker_transport_handles_many_buffered_lines(monkeypatch): | STRING |
| LOW | tests/test_fast.py | 137 | def test_window_processor_counting_and_request_moves(): | STRING |
| LOW | tests/test_fast.py | 188 | def test_cached_derivative_cannot_bypass_verification_by_omitting_hashes(tmp_path,missing): | STRING |
| 199 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/build_release.py | 7 | CODE | |
| LOW | tests/test_model.py | 2 | CODE | |
| LOW | tests/test_public_export.py | 3 | CODE | |
| LOW | tests/test_protocol.py | 1 | CODE | |
| LOW | tests/test_protocol.py | 2 | CODE | |
| LOW | tests/test_protocol.py | 5 | CODE | |
| LOW | tests/test_protocol.py | 8 | CODE | |
| LOW | tests/test_tokenizer.py | 2 | CODE | |
| LOW | tests/test_skill_listen.py | 1 | CODE | |
| LOW | tests/test_skill_listen.py | 10 | CODE | |
| LOW | tests/test_skill_listen.py | 11 | CODE | |
| LOW | tests/test_skill_release.py | 11 | CODE | |
| LOW | tests/test_storage.py | 2 | CODE | |
| LOW | tests/test_skill_abc_tools.py | 7 | CODE | |
| LOW | tests/test_cli_public.py | 5 | CODE | |
| LOW | tests/test_devices.py | 2 | CODE | |
| LOW | tests/test_sampling.py | 4 | CODE | |
| LOW | tests/test_sampling.py | 4 | CODE | |
| LOW | …lls/yue2-music/instrumental/scripts/instrumentalize.py | 3 | CODE | |
| LOW | …lls/yue2-music/instrumental/scripts/instrumentalize.py | 5 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/abc_tools.py | 9 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/compile_score.py | 8 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/instrumental.py | 3 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/setup_runtime.py | 3 | CODE | |
| LOW | skills/yue2-music/scripts/abc_tools.py | 9 | CODE | |
| LOW | skills/yue2-music/scripts/listen.py | 9 | CODE | |
| LOW | src/yue2/cuda_graph.py | 7 | CODE | |
| LOW | src/yue2/modeling_vae.py | 7 | CODE | |
| LOW | src/yue2/quantization.py | 7 | CODE | |
| LOW | src/yue2/protocol.py | 2 | CODE | |
| LOW | src/yue2/cli.py | 2 | CODE | |
| LOW | src/yue2/pipeline.py | 2 | CODE | |
| LOW | src/yue2/pipeline.py | 13 | CODE | |
| LOW | src/yue2/pipeline.py | 16 | CODE | |
| LOW | src/yue2/nar.py | 7 | CODE | |
| LOW | src/yue2/sampling.py | 2 | CODE | |
| LOW | src/yue2/storage.py | 2 | CODE | |
| LOW | src/yue2/modeling_yue2.py | 7 | CODE | |
| LOW | src/yue2/tokenization_yue2.py | 2 | CODE | |
| LOW | src/yue2/progress.py | 9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/yue2/modeling_yue2.py | 75 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 77 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 139 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 141 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 339 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 341 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 384 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 386 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 448 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 450 | # ══════════════════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 537 | # ── AR forward (standard causal LM, KV cached) ─────────────────── | COMMENT |
| MEDIUM | src/yue2/modeling_yue2.py | 654 | # ── NAR velocity (flow matching, no KV cache) ──────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_cli_decode.py | 108 | CODE | |
| LOW | …ls/yue2-music/instrumental/scripts/transcribe_cover.py | 15 | CODE | |
| LOW | …lls/yue2-music/instrumental/scripts/instrumentalize.py | 35 | CODE | |
| LOW | …lls/yue2-music/instrumental/scripts/instrumentalize.py | 51 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/abc_tools.py | 87 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/abc_tools.py | 153 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/abc_tools.py | 292 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/instrumental.py | 29 | CODE | |
| LOW | skills/yue2-music/instrumental/scripts/test_tools.py | 141 | CODE | |
| LOW | skills/yue2-music/scripts/run_yue2.py | 122 | CODE | |
| LOW | skills/yue2-music/scripts/abc_tools.py | 87 | CODE | |
| LOW | skills/yue2-music/scripts/abc_tools.py | 153 | CODE | |
| LOW | skills/yue2-music/scripts/abc_tools.py | 292 | CODE | |
| LOW | skills/yue2-music/scripts/transcribe.py | 14 | CODE | |
| LOW | skills/yue2-music/scripts/listen.py | 90 | CODE | |
| LOW | src/yue2/cuda_graph.py | 131 | CODE | |
| LOW | src/yue2/modeling_vae.py | 401 | CODE | |
| LOW | src/yue2/fast.py | 57 | CODE | |
| LOW | src/yue2/fast.py | 301 | CODE | |
| LOW | src/yue2/fast.py | 350 | CODE | |
| LOW | src/yue2/fast.py | 251 | CODE | |
| LOW | src/yue2/cli.py | 262 | CODE | |
| LOW | src/yue2/cli.py | 310 | CODE | |
| LOW | src/yue2/pipeline.py | 233 | CODE | |
| LOW | src/yue2/pipeline.py | 355 | CODE | |
| LOW | src/yue2/nar.py | 218 | CODE | |
| LOW | src/yue2/nar.py | 243 | CODE | |
| LOW | src/yue2/sampling.py | 89 | CODE | |
| LOW | src/yue2/storage.py | 64 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | README.md | 93 | | [Listen and inspect the score](https://map-yue2.github.io/#abc-cot-gen) | [Hear zero-shot covers](https://map-yue2.git | CODE |
| MEDIUM⚡ | README.md | 93 | | [Listen and inspect the score](https://map-yue2.github.io/#abc-cot-gen) | [Hear zero-shot covers](https://map-yue2.git | CODE |
| MEDIUM⚡ | README.md | 93 | | [Listen and inspect the score](https://map-yue2.github.io/#abc-cot-gen) | [Hear zero-shot covers](https://map-yue2.git | CODE |
| MEDIUM | README.md | 239 | **Zero-shot covers.** On 948 works, full-score YuE2 reaches **0.647 CLEWS mAP**, compared with **0.006 without a score** | CODE |
| MEDIUM | docs/covers.md | 62 | For a complete score with fixed harmony, use `cot="full"`. Melody-only is recommended for changing styles because it giv | CODE |
| MEDIUM | docs/benchmarks.md | 136 | The results support selective control of musical content through the score. Editing regenerates the entire recording; pr | CODE |
| MEDIUM | docs/benchmarks.md | 136 | The results support selective control of musical content through the score. Editing regenerates the entire recording; pr | CODE |
| MEDIUM | docs/editing.md | 57 | [Explore the 9-step, 14-version editing demo](https://map-yue2.github.io/#agentic-music-editing), where each version inc | CODE |
| MEDIUM | docs/editing.md | 57 | [Explore the 9-step, 14-version editing demo](https://map-yue2.github.io/#agentic-music-editing), where each version inc | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | src/yue2/progress.py | 50 | except ValueError: | CODE |
| HIGH | src/yue2/progress.py | 56 | except (AttributeError, OSError, ValueError): | CODE |
| HIGH | src/yue2/progress.py | 99 | except (AttributeError, OSError, ValueError): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ls/yue2-music/instrumental/scripts/transcribe_cover.py | 90 | except Exception as exc: | CODE |
| LOW | …ls/yue2-music/instrumental/scripts/transcribe_cover.py | 114 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/instrumental/scripts/instrumental.py | 213 | except Exception: | CODE |
| LOW | skills/yue2-music/instrumental/scripts/instrumental.py | 275 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/instrumental/scripts/instrumental.py | 365 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/scripts/run_yue2.py | 173 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/scripts/run_yue2.py | 180 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/scripts/run_yue2.py | 207 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/scripts/transcribe.py | 89 | except Exception as exc: | CODE |
| LOW | skills/yue2-music/scripts/transcribe.py | 112 | except Exception as exc: | CODE |
| LOW | src/yue2/cli.py | 296 | except Exception as exc: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/yue2/modeling_vae.py | 209 | CODE | |
| LOW | src/yue2/modeling_vae.py | 291 | CODE | |
| LOW | src/yue2/modeling_vae.py | 401 | CODE | |
| LOW | src/yue2/pipeline.py | 146 | CODE | |
| LOW | src/yue2/pipeline.py | 191 | CODE | |
| LOW | src/yue2/pipeline.py | 423 | CODE | |
| LOW | src/yue2/nar.py | 243 | CODE | |
| LOW | src/yue2/modeling_yue2.py | 98 | CODE | |
| LOW | src/yue2/modeling_yue2.py | 463 | CODE | |
| LOW | src/yue2/modeling_yue2.py | 539 | CODE |