AI Slop Code Risk Monitor

erincatto/box2d

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

Box2D is a 2D physics engine for games

2.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for erincatto/box2d, a C project with 10,462 GitHub stars. SynthScan examined 142,687 lines of code across 193 source files, recording 307 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.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.

2.0
Adjusted Signal
2.0
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
10.5K
Stars
C
Language
142.7K
Lines of Code
193
Files
307
Pattern Hits
2026-10-31
Scan Date
0.01
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 9.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 10.4/100 · LOW

Which changes need focused human review? 307 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 1MEDIUM 1LOW 305

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 307 distinct pattern matches across 6 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 Block284 hits · 248 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt161COMMENT
LOWbenchmark/main.c1// SPDX-FileCopyrightText: 2024 Erin CattoCOMMENT
LOWtest/test_determinism.c1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWtest/test_snapshot.c1// SPDX-FileCopyrightText: 2026 Erin CattoCOMMENT
LOWtest/test_world.c1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWtest/test_restitution.c1// SPDX-FileCopyrightText: 2025 Erin CattoCOMMENT
LOWtest/test_restitution.c861 continuous ? 1 : 0, result.firstApex, dropHeight, bounceHeight, result.speedRatio, result.firstEnergyRatio,COMMENT
LOWtest/test_recording.c1// SPDX-FileCopyrightText: 2026 Erin CattoCOMMENT
LOWtest/main.c1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWtest/test_large_world.c1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWinclude/box2d/math_functions.h361 return qn;COMMENT
LOWinclude/box2d/math_functions.h741}COMMENT
LOWinclude/box2d/config.h1// SPDX-FileCopyrightText: 2026 Erin CattoCOMMENT
LOWinclude/box2d/config.h21// #define BOX2D_DISABLE_SIMDCOMMENT
LOWinclude/box2d/types.h1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWinclude/box2d/types.h21COMMENT
LOWinclude/box2d/types.h241 /// Linear damping is used to reduce the linear velocity. The damping parameter can be largerCOMMENT
LOWinclude/box2d/types.h281COMMENT
LOWinclude/box2d/types.h321typedef struct b2FilterCOMMENT
LOWinclude/box2d/types.h341 /// maskBits = Static | Player;COMMENT
LOWinclude/box2d/types.h441 /// the interior, which may have other considerations, such as being hollow. For example a woodCOMMENT
LOWinclude/box2d/types.h481 /// Warning: if this is false, you MUST call b2Body_UpdateMassFromShapes or b2Body_SetMassDataCOMMENT
LOWinclude/box2d/types.h501/// - an open chain shape needs a leading and trailing ghost point.COMMENT
LOWinclude/box2d/types.h1061COMMENT
LOWinclude/box2d/types.h1121{COMMENT
LOWinclude/box2d/types.h1181COMMENT
LOWinclude/box2d/types.h1261 /// The second shape id.COMMENT
LOWinclude/box2d/types.h1281/// allows you to inspect a manifold before it goes to the solver. If you are careful, you canCOMMENT
LOWinclude/box2d/types.h1301/// - this is not called for sensors Return false if you want to disable the time of impact event.COMMENT
LOWinclude/box2d/types.h1321/// @param point the point of initial intersectionCOMMENT
LOWinclude/box2d/collision.h221/// Make a box (rectangle) polygon, bypassing the need for a convex hull.COMMENT
LOWinclude/box2d/collision.h321/// - all points very close togetherCOMMENT
LOWinclude/box2d/collision.h781/// filtering. This has performance roughly equal to k * log(n), where k is the number of collisionsCOMMENT
LOWinclude/box2d/collision.h801 /// The sweep translation.COMMENT
LOWinclude/box2d/box2d.h1// SPDX-FileCopyrightText: 2026 Erin CattoCOMMENT
LOWinclude/box2d/box2d.h41COMMENT
LOWinclude/box2d/box2d.h81COMMENT
LOWinclude/box2d/box2d.h121/// Collide a capsule mover with the world, gathering collision planes that can be fed toCOMMENT
LOWinclude/box2d/box2d.h181 b2PreContinuousCallbackFcn* preContinuousFcn,COMMENT
LOWinclude/box2d/box2d.h301/// seed, then logs every mutating call. Call at a step boundary, before or after creating bodies.COMMENT
LOWinclude/box2d/box2d.h341/// image == NULL to get the required size, then again with a buffer of at least that size. Must beCOMMENT
LOWinclude/box2d/box2d.h461/// Get the linear velocity of a local point attached to a body. Usually in meters per second.COMMENT
LOWinclude/box2d/box2d.h481B2_API void b2Body_ApplyForceToCenter( b2BodyId bodyId, b2Vec2 force, bool wake );COMMENT
LOWinclude/box2d/box2d.h501/// @param point the world position of the point of application.COMMENT
LOWinclude/box2d/box2d.h621COMMENT
LOWinclude/box2d/box2d.h701/// cloned. Contacts are not created until the next time step.COMMENT
LOWinclude/box2d/box2d.h881/// @note Box2D uses speculative collision so some contact points may be separated.COMMENT
LOWinclude/box2d/box2d.h901/// Get the current world AABBCOMMENT
LOWinclude/box2d/box2d.h1601 * @{COMMENT
LOWinclude/box2d/id.h81 int16_t padding;COMMENT
LOWinclude/box2d/constants.h21#elseCOMMENT
LOWinclude/box2d/constants.h41/// @warning modifying this can have a significant impact on stabilityCOMMENT
LOWinclude/box2d/constants.h61#define B2_SPECULATIVE_DISTANCE ( 4.0f * B2_LINEAR_SLOP )COMMENT
LOWinclude/box2d/base.h1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
LOWinclude/box2d/base.h21// clang-format offCOMMENT
LOWinclude/box2d/base.h41COMMENT
LOWinclude/box2d/base.h61COMMENT
LOWinclude/box2d/base.h161// Unknown compilerCOMMENT
LOWshared/determinism.h1// SPDX-FileCopyrightText: 2025 Erin CattoCOMMENT
LOWshared/utils.c1// SPDX-FileCopyrightText: 2023 Erin CattoCOMMENT
224 more matches not shown…
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡src/snapshot.c641 // Step 1: world scalarsCOMMENT
LOW⚡src/snapshot.c644 // Step 2: 7 id pools (overwrite entirely, including solverSetIdPool from the 3 pre-createdCOMMENT
LOW⚡src/snapshot.c654 // Step 3: solver setsCOMMENT
LOW⚡src/snapshot.c687 // Step 4: sparse arrays. userData was written as NULL by the serializer, so a plain copyCOMMENT
LOW⚡src/snapshot.c695 // Step 5: chain shapesCOMMENT
LOWsrc/snapshot.c746 // Step 6: sensorsCOMMENT
LOWsrc/snapshot.c780 // Step 7: islandsCOMMENT
LOWsrc/snapshot.c815 // Step 8: broad phaseCOMMENT
LOWsrc/snapshot.c829 // Step 9: constraint graphCOMMENT
Structural Annotation Overuse9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡src/snapshot.c641 // Step 1: world scalarsCOMMENT
LOW⚡src/snapshot.c644 // Step 2: 7 id pools (overwrite entirely, including solverSetIdPool from the 3 pre-createdCOMMENT
LOW⚡src/snapshot.c654 // Step 3: solver setsCOMMENT
LOW⚡src/snapshot.c687 // Step 4: sparse arrays. userData was written as NULL by the serializer, so a plain copyCOMMENT
LOW⚡src/snapshot.c695 // Step 5: chain shapesCOMMENT
LOWsrc/snapshot.c746 // Step 6: sensorsCOMMENT
LOWsrc/snapshot.c780 // Step 7: islandsCOMMENT
LOWsrc/snapshot.c815 // Step 8: broad phaseCOMMENT
LOWsrc/snapshot.c829 // Step 9: constraint graphCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/build.yml136 # Build-only: running the wasm test needs a node + pthread/SharedArrayBuffer harness.COMMENT
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippetContext
LOWapi/api_dump.py95CODE
LOWapi/api_dump.py286CODE
LOWapi/api_dump.py399CODE
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHapi/api_dump.py24- enums: name, values [{name, value (integer or null), expr, brief}], header, briefSTRING