AI Slop Code RIsk Monitor

maderix/ANE

Training neural networks on Apple Neural Engine via reverse-engineered private APIs

8.3 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for maderix/ANE, a Objective-C project with 7,261 GitHub stars. SynthScan examined 14,302 lines of code across 54 source files, recording 72 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 8.3 (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.

8.3
Adjusted Signal
8.3
Raw Pattern Score
100%
Time Factor
2026-03-10
Last Push
7.3K
Stars
Objective-C
Language
14.3K
Lines of Code
54
Files
72
Pattern Hits
2026-10-12
Scan Date
0.11
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 23.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

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

Agent Over-Engineering Ratio 12.0/100 · LOW

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

PR Review Velocity Impact 31.0/100 · MEDIUM

Which changes need focused human review? 72 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 6MEDIUM 2LOW 64

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 72 distinct pattern matches across 9 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.

Over-Commented Block25 hits · 25 pts
SeverityFileLineSnippetContext
LOWane_int8_bench.m1// ane_int8_bench.m — INT8 W8A8 benchmark on ANE via _ANEInMemoryModelCOMMENT
LOWbridge/ane_bridge.h1// ane_bridge.h — C-callable bridge to ANE private APIs for Python ctypesCOMMENT
LOWbridge/ane_bridge.h21COMMENT
LOWtraining/train_large.m561 io_copy(kern[L].qkvBwd->ioIn, 0, sdpaBwd2[L]->ioOut, 0, 2*DIM, SEQ);COMMENT
LOWtraining/train_large.m581 // Wait no - dx2 = d(loss)/d(x2), not d(loss)/d(layer_input)COMMENT
LOWtraining/ane_classifier.h1// ane_classifier.h — MIL generators for classifier matmul and softmax on ANECOMMENT
LOWtraining/test_conv_attn3.m1// Grouped conv causal attention with CORRECT layout A: blob[oc*ICg + ic]COMMENT
LOWtraining/test_weight_reload.m1// test_weight_reload.m — Can we skip recompilation by rewriting weight blobs on disk?COMMENT
LOWtraining/tiny_train_old.m1// tiny_train.m — Train a 2-layer linear model on ANE (forward AND backward)COMMENT
LOWtraining/test_dynamic_matmul.m1// test_dynamic_matmul.m — Benchmark dynamic matmul on ANE (no recompile)COMMENT
LOWtraining/test_weight_patch.m1// test_weight_patch.m — Test whether ANE weights can be patched after compileCOMMENT
LOWtraining/ane_rmsnorm_bwd.h1// ane_rmsnorm_bwd.h — MIL generator for RMSNorm backward on ANECOMMENT
LOWtraining/stories_config.h1// stories_config.h — Stories110M model config and structuresCOMMENT
LOWtraining/stories_config.h21#define HD (DIM/HEADS)COMMENT
LOWtraining/train_large_ane.m1// train_large_ane.m — Stories110M training with CPU ops offloaded to ANECOMMENT
LOWtraining/test_fused_qkv.m1// Test: Fused QKV projections in single MIL graph (3 convs → concat output)COMMENT
LOWtraining/model.h1// model.h — Stories110M model struct + weight loading + ANE kernel compilationCOMMENT
LOWtraining/tiny_train.m1// tiny_train.m — Train a 2-layer linear model on ANE (forward AND backward)COMMENT
LOWtraining/test_fused_bwd.m1// Test: fused backward dx kernelsCOMMENT
LOWtraining/test_full_fused.m1// Full fused forward: QKV convs → reshape → matmul(Q,K^T) → scale+mask → softmax → matmul(scores,V) → Wo convCOMMENT
LOWtraining/test_ane_causal_attn.m1// Decomposed causal attention: Q@K^T on ANE, mask+softmax on CPU, scores@V on ANECOMMENT
LOWtraining/training_dynamic/config.h1// config.h — Model-agnostic structs, derived sizes, ANE initCOMMENT
LOWtraining/training_dynamic/config.h21#ifndef MODEL_NAMECOMMENT
LOWtraining/training_dynamic/models/stories110m.h1// stories110m.h — Stories110M (Llama2-style, 12 layers, MHA)COMMENT
LOWtraining/training_dynamic/models/qwen3_06b.h1// qwen3_06b.h — Qwen3-0.6B (28 layers, GQA 16q/8kv, head_dim=128)COMMENT
Empty Error Handlers5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtraining/dashboard.py375except ValueError:CODE
HIGHtraining/dashboard.py462except (json.JSONDecodeError, KeyError):CODE
HIGHtraining/dashboard.py334except (psutil.NoSuchProcess, psutil.AccessDenied):CODE
HIGHtraining/dashboard.py1044except Exception:CODE
HIGHtraining/dashboard.py1103except Exception:CODE
Verbosity Indicators12 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡training/test_conv_attn3.m177 // Step 1: Q@K^TCOMMENT
LOW⚡training/test_conv_attn3.m181 // Step 2: Scale + causal mask + softmax (CPU)COMMENT
LOWtraining/test_conv_attn3.m202 // Step 3: scores@VCOMMENT
LOWtraining/ane_rmsnorm_bwd.h35 // Step 1: Compute rrms = 1/sqrt(mean(x²) + eps)COMMENT
LOW⚡training/ane_rmsnorm_bwd.h51 // Step 2: Load RMSNorm weights w [1, DIM, 1, 1]COMMENT
LOW⚡training/ane_rmsnorm_bwd.h54 // Step 3: Compute dot = sum(dy * w * x, axis=1) * invd * rrms²COMMENT
LOWtraining/ane_rmsnorm_bwd.h68 // Step 4: dx = (dy * w - x * coeff) * rrmsCOMMENT
LOWtraining/test_ane_causal_attn.m97 // Step 1: Q @ K^T → scores [1, HEADS, SEQ, SEQ]COMMENT
LOWtraining/test_ane_causal_attn.m115 // Step 3: scores_softmax @ V → output [1, HEADS, SEQ, HD]COMMENT
LOW⚡training/test_ane_causal_attn.m167 // Step 1: Q@K^T on ANECOMMENT
LOW⚡training/test_ane_causal_attn.m173 // Step 2: Scale + causal mask + softmax on CPUCOMMENT
LOWtraining/test_ane_causal_attn.m197 // Step 3: softmax_scores @ V on ANECOMMENT
Structural Annotation Overuse12 hits · 22 pts
SeverityFileLineSnippetContext
LOW⚡training/test_conv_attn3.m177 // Step 1: Q@K^TCOMMENT
LOW⚡training/test_conv_attn3.m181 // Step 2: Scale + causal mask + softmax (CPU)COMMENT
LOWtraining/test_conv_attn3.m202 // Step 3: scores@VCOMMENT
LOWtraining/ane_rmsnorm_bwd.h35 // Step 1: Compute rrms = 1/sqrt(mean(x²) + eps)COMMENT
LOW⚡training/ane_rmsnorm_bwd.h51 // Step 2: Load RMSNorm weights w [1, DIM, 1, 1]COMMENT
LOW⚡training/ane_rmsnorm_bwd.h54 // Step 3: Compute dot = sum(dy * w * x, axis=1) * invd * rrms²COMMENT
LOWtraining/ane_rmsnorm_bwd.h68 // Step 4: dx = (dy * w - x * coeff) * rrmsCOMMENT
LOWtraining/test_ane_causal_attn.m97 // Step 1: Q @ K^T → scores [1, HEADS, SEQ, SEQ]COMMENT
LOWtraining/test_ane_causal_attn.m115 // Step 3: scores_softmax @ V → output [1, HEADS, SEQ, HD]COMMENT
LOW⚡training/test_ane_causal_attn.m167 // Step 1: Q@K^T on ANECOMMENT
LOW⚡training/test_ane_causal_attn.m173 // Step 2: Scale + causal mask + softmax on CPUCOMMENT
LOWtraining/test_ane_causal_attn.m197 // Step 3: softmax_scores @ V on ANECOMMENT
Excessive Try-Catch Wrapping8 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtraining/dashboard.py141def load_weights_from_ckpt(path):CODE
MEDIUMtraining/dashboard.py1173def force_gen():CODE
LOWtraining/dashboard.py135 except Exception as e:CODE
LOWtraining/dashboard.py172 except Exception as e:CODE
LOWtraining/dashboard.py313 except Exception as e:CODE
LOWtraining/dashboard.py1044 except Exception:CODE
LOWtraining/dashboard.py1103 except Exception:CODE
LOWtraining/dashboard.py1182 except Exception as e:CODE
Deep Nesting7 hits · 6 pts
SeverityFileLineSnippetContext
LOWtraining/dashboard.py186CODE
LOWtraining/dashboard.py290CODE
LOWtraining/dashboard.py418CODE
LOWtraining/dashboard.py590CODE
LOWtraining/dashboard.py651CODE
LOWtraining/dashboard.py947CODE
LOWtraining/tokenize.py12CODE
Cross-Language Confusion1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtraining/dashboard.py910 cmd = f'cd training_dynamic && make{model_arg} 2>&1 && ./train'CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtraining/dashboard.py394def _sync_globals_from_parsed(cfg):CODE
AI Structural Patterns1 hit · 0 pts
SeverityFileLineSnippetContext
LOWtraining/dashboard.py906CODE