AI Slop Code Risk Monitor

facebookincubator/katran

SlopCodeMonitor badge for facebookincubator/katran Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
2.1 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for facebookincubator/katran. SynthScan examined 47,454 lines of code across 229 source files, recording 97 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.1 (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.1
Adjusted Signal
2.1
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
47.5K
Lines of Code
229
Files
97
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 9.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 9.7/100 · LOW

Which changes need focused human review? 97 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 97

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 97 distinct pattern matches across 5 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 Block91 hits · 91 pts
SeverityFileLineSnippetContext
LOWos_run_tester.sh1#!/usr/bin/env bashCOMMENT
LOWbuild_bpf_modules_opensource.sh1#!/usr/bin/env bashCOMMENT
LOWbuild_katran.sh1#!/usr/bin/env bashCOMMENT
LOWinstall_xdproot.sh1#!/usr/bin/env bashCOMMENT
LOWcollect_debug_real.sh1#!/usr/bin/env bashCOMMENT
LOWcollect_debug_lb.sh1#!/usr/bin/env bashCOMMENT
LOWstart_katran_grpc_server.sh1#!/usr/bin/env bashCOMMENT
LOWstart_katran_simple_server.sh1#!/usr/bin/env bashCOMMENT
LOWtools/tcpdump_encap_helper/tcpdump_encap_helper.py1#!/usr/bin/env python3COMMENT
LOWtools/xdpdump/XdpDumpKern.h21COMMENT
LOWtools/start_katran/build_start_katran.sh1#!/usr/bin/env bashCOMMENT
LOWexample_grpc/build_grpc_client.sh1#!/usr/bin/env bashCOMMENT
LOWexample_grpc/katran_server.cpp21#include <thread>COMMENT
LOWkatran/decap/tc_bpf/tc_decap_kern_helpers.h21#include <linux/ip.h>COMMENT
LOWkatran/decap/tc_bpf/tc_decap_stats_maps.h21#include "katran/lib/linux_includes/bpf_helpers.h"COMMENT
LOWkatran/decap/tc_bpf/tc_decap_info.bpf.c21#include <linux/pkt_cls.h>COMMENT
LOWkatran/decap/tc_bpf/tc_decap_stats.bpf.c21#include <linux/ipv6.h>COMMENT
LOWkatran/decap/testing/tc_srcmatch_tester.cpp21#include <folly/base64.h>COMMENT
LOWkatran/lib/KatranLb.h21#include <memory>COMMENT
LOWkatran/lib/KatranLb.cpp21#include <folly/lang/Bits.h>COMMENT
LOWkatran/lib/KatranLb.cpp61 globalLruMapsFd_(kMaxForwardingCores) {COMMENT
LOWkatran/lib/KatranLb.cpp81 // Example 1:COMMENT
LOWkatran/lib/KatranLb.cpp101 // CH_ring = {0, 0, 1, 1, 2, 2, 2}COMMENT
LOWkatran/lib/Netlink.cpp21#include <libmnl/libmnl.h>COMMENT
LOWkatran/lib/BaseBpfAdapter.cpp21#include <folly/CppAttributes.h>COMMENT
LOWkatran/lib/MonitoringStructs.h1// Copyright 2004-present Facebook. All Rights Reserved.COMMENT
LOWkatran/lib/BpfBatchUtil.h21#include <folly/Function.h>COMMENT
LOWkatran/lib/linux_includes/bpf_endian.h21 */COMMENT
LOWkatran/lib/linux_includes/bpf.h21#define BPF_DW 0x18 /* double word (64-bit) */COMMENT
LOWkatran/lib/linux_includes/bpf.h2881 */COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h381#define bpf_target_x86COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h401#elseCOMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h421#endifCOMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h441#define PT_REGS_PARM2(x) ((x)->edx)COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h461#endifCOMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h481#elif defined(bpf_target_arm)COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h501#define PT_REGS_PARM2(x) (((PT_REGS_ARM64*)(x))->regs[1])COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h521 */COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h541#define PT_REGS_PARM3(x) ((x)->u_regs[UREG_I2])COMMENT
LOWkatran/lib/linux_includes/bpf_helpers.h561#define BPF_KPROBE_READ_RET_IP(ip, ctx) ({ (ip) = PT_REGS_RET(ctx); })COMMENT
LOWkatran/lib/linux_includes/bpf_common.h1#ifndef __LINUX_BPF_COMMON_H__COMMENT
LOWkatran/lib/linux_includes/bpf_common.h21#define BPF_MODE(code) ((code) & 0xe0)COMMENT
LOWkatran/lib/linux_includes/bpf_common.h41#define BPF_XOR 0xa0COMMENT
LOWkatran/lib/testing/tools/PacketBuilder.cpp21#include <folly/base64.h>COMMENT
LOWkatran/lib/testing/tools/PacketBuilderTest.cpp601// Verifies PacketBuilder correctly implements QUIC long header format for 0-RTTCOMMENT
LOWkatran/lib/testing/python/fplane_testing.py1# Copyright (C) 2018-present, Facebook, Inc.COMMENT
LOWkatran/lib/testing/framework/KatranTesterCli.h41// Returns true when argv selects the canonical subcommand interface. LegacyCOMMENT
LOWkatran/lib/testing/framework/katran_tester.cpp21COMMENT
LOWkatran/lib/bpf/healthchecking_consts.h21// position of ifindex of main interface inside hc ctrl arrayCOMMENT
LOWkatran/lib/bpf/healthchecking_consts.h41#define STATS_SIZE 1COMMENT
LOWkatran/lib/bpf/introspection.h21// constants which does not depend on the introspection flagCOMMENT
LOWkatran/lib/bpf/healthchecking_helpers.h21#include <linux/ip.h>COMMENT
LOWkatran/lib/bpf/pckt_parsing.h21 * This file contains generic packet parsing routines (e.g. tcp/udp headersCOMMENT
LOWkatran/lib/bpf/balancer_consts.h21 */COMMENT
LOWkatran/lib/bpf/balancer_consts.h41COMMENT
LOWkatran/lib/bpf/balancer_consts.h61COMMENT
LOWkatran/lib/bpf/balancer_consts.h81// maximum number of prefixes in lpm map for src based routing.COMMENT
LOWkatran/lib/bpf/balancer_consts.h101#endifCOMMENT
LOWkatran/lib/bpf/balancer_consts.h121COMMENT
LOWkatran/lib/bpf/balancer_consts.h141COMMENT
31 more matches not shown…
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWkatran/tpr/bpf_util/SystemError.h79// Example usage:COMMENT
LOWkatran/tpr/bpf_util/SystemError.h123// Example usage:COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWkatran/lib/tests/EventPipeCallbackTest.cpp19 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras at sem nec tortor aliquet ullamcorper.";CODE
LOWkatran/lib/tests/EventPipeCallbackTest.cpp19 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras at sem nec tortor aliquet ullamcorper.";CODE
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbuild_katran.sh560 #on centos the cp -fpR used was throwing an error, so just use a regular cp -RCOMMENT
Excessive Try-Catch Wrapping1 hit · 0 pts
SeverityFileLineSnippetContext
LOWkatran/lib/testing/python/fplane_testing.py258 except Exception:STRING