AI Slop Code Risk Monitor

terralang/terra

SlopCodeMonitor badge for terralang/terra Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Terra is a low-level system programming language that is embedded in and meta-programmed by the Lua programming language.

3.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for terralang/terra, a C++ project with 2,925 GitHub stars. SynthScan examined 41,963 lines of code across 120 source files, recording 126 pattern matches distributed across 3 syntactic categories. The legacy adjusted pattern signal is 3.0 (Low 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.

3.0
Adjusted Signal
3.0
Raw Pattern Score
100%
Time Factor
2026-08-19
Last Push
2.9K
Stars
C++
Language
42.0K
Lines of Code
120
Files
126
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 13.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.7/100 · LOW

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

PR Review Velocity Impact 13.9/100 · LOW

Which changes need focused human review? 126 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 0MEDIUM 0LOW 126

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 126 distinct pattern matches across 3 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 Block118 hits · 115 pts
SeverityFileLineSnippetContext
LOWappveyor.yml41artifacts:COMMENT
LOWmsvc/ext/inttypes.h1// ISO C9x compliant inttypes.h for Microsoft Visual StudioCOMMENT
LOWmsvc/ext/inttypes.h21// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NOCOMMENT
LOWmsvc/ext/inttypes.h61#define PRIdFAST8 "d"COMMENT
LOWmsvc/ext/inttypes.h81#define PRIiLEAST64 "I64i"COMMENT
LOWmsvc/ext/inttypes.h101#define PRIuFAST8 "u"COMMENT
LOWmsvc/ext/inttypes.h121#define PRIX32 "I32X"COMMENT
LOWmsvc/ext/inttypes.h141#define PRIxFAST64 "I64x"COMMENT
LOWmsvc/ext/inttypes.h161COMMENT
LOWmsvc/ext/inttypes.h181#define SCNiFAST64 "I64i"COMMENT
LOWmsvc/ext/inttypes.h201#define SCNxLEAST8 "x"COMMENT
LOWmsvc/ext/inttypes.h221#define SCNo32 "lo"COMMENT
LOWmsvc/ext/inttypes.h241#define SCNXLEAST64 "I64X"COMMENT
LOWmsvc/ext/inttypes.h261# define SCNXPTR "lX"COMMENT
LOWmsvc/ext/setjmp.h1#include <setjmp.h>COMMENT
LOWtests/reference/matmuls.cpp1//#include<Accelerate/Accelerate.h>COMMENT
LOWdocs/_terraforcpp.txt821// class T { // A new typeCOMMENT
LOWdocs/_terraforcpp.txt841// T& operator=(const T& t) {x=t.x; return *this; } // Assignment operatorCOMMENT
LOWdocs/_terraforcpp.txt861// classCOMMENT
LOWdocs/_terraforcpp.txt941 using namespace N;COMMENT
LOWdocs/javascripts/codemirror.js1001 function measureLineInner(cm, line) {COMMENT
LOWdocs/javascripts/codemirror.js5421 // that this (partially) implements.COMMENT
LOW.github/workflows/main.yml321 # multiarch:COMMENT
LOW.github/workflows/main.yml341 # DOCKER_DISTRO: ${{ matrix.distro }}COMMENT
LOWsrc/lparser.cpp1/*COMMENT
LOWsrc/lparser.cpp21// #include "lmem.h"COMMENT
LOWsrc/tcompilerstate.h1#ifndef _tcompilerstate_hCOMMENT
LOWsrc/tdebug.cpp1#include "llvmheaders.h"COMMENT
LOWsrc/tdebug.cpp101#ifdef _WIN32COMMENT
LOWsrc/tcompiler.cpp1/* See Copyright Notice in ../LICENSE.txt */COMMENT
LOWsrc/tcompiler.cpp21#include "tobj.h"COMMENT
LOWsrc/tcompiler.cpp441#endifCOMMENT
LOWsrc/tcompiler.cpp1401 // so a later, smaller argument can still be passed in registers. ReturnCOMMENT
LOWsrc/tcompiler.cpp2761COMMENT
LOWsrc/llvmheaders_200.h1#include "llvm/IR/CallingConv.h"COMMENT
LOWsrc/llvmheaders_200.h21COMMENT
LOWsrc/tcwrapper.cpp1/* See Copyright Notice in ../LICENSE.txt */COMMENT
LOWsrc/tcwrapper.cpp761 return std::error_code();COMMENT
LOWsrc/tcwrapper.cpp781// Clang in some scenarios with (2) alone. Of course, because we'reCOMMENT
LOWsrc/tcwrapper.cpp861 const std::vector<const char *> &args,COMMENT
LOWsrc/llvmheaders_140.h1#include "llvm/IR/CallingConv.h"COMMENT
LOWsrc/llvmheaders_140.h21COMMENT
LOWsrc/llvmheaders_210.h1#include "llvm/IR/CallingConv.h"COMMENT
LOWsrc/llvmheaders_210.h21COMMENT
LOWsrc/llvmheaders_150.h1#include "llvm/IR/CallingConv.h"COMMENT
LOWsrc/llvmheaders_150.h21COMMENT
LOWsrc/llvmheaders_110.h1#include "llvm/IR/CallingConv.h"COMMENT
LOWsrc/llvmheaders_110.h21COMMENT
LOWsrc/tcuda.cpp1/* See Copyright Notice in ../LICENSE.txt */COMMENT
LOWsrc/tcuda.cpp21#include "tobj.h"COMMENT
LOWsrc/tcuda.cpp181#endifCOMMENT
LOWsrc/llvmheaders.h1#ifndef _llvmheaders_hCOMMENT
LOWsrc/llvmheaders.h21COMMENT
LOWsrc/llvmheaders.h41#endifCOMMENT
LOWsrc/llvmheaders.h61#elif LLVM_VERSION < 140COMMENT
LOWsrc/llvmheaders.h81#elseCOMMENT
LOWsrc/lj_strscan.c21#define LJ_LIKELY(cond) (cond)COMMENT
LOWsrc/lj_strscan.c521#undef DNEXTCOMMENT
LOWsrc/tinline.cpp61 // add invalid callsites as inlining candidatesCOMMENT
LOWsrc/tinline.cpp81#include "llvm/Analysis/InlineAdvisor.h"COMMENT
58 more matches not shown…
Hyper-Verbose Identifiers6 hits · 6 pts
SeverityFileLineSnippetContext
LOWdocs/javascripts/codemirror.js372 function maybeUpdateLineNumberWidth(cm) {CODE
LOWdocs/javascripts/codemirror.js2311 function makeChangeSingleDocInEditor(cm, change, spans, selAfter) {CODE
LOWsrc/terralib.lua779local function createoptimizationprofile(profile)CODE
LOWsrc/terralib.lua3673local function createfenceattributetable(q)CODE
LOWsrc/terralib.lua3699local function createcmpxchgattributetable(q)CODE
LOWsrc/terralib.lua3738local function createatomicattributetable(q)CODE
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/main.yml188 # Assign variants to the basic configurations:COMMENT
LOW.github/workflows/main.yml307 # Assign variants to the basic configurations:COMMENT