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.
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? 94 finding(s).
Are imports declared and package/API names verified? 2 finding(s).
Are wrappers, guards, and repeated structures necessary? 1 finding(s).
Which changes need focused human review? 97 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | os_run_tester.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | build_bpf_modules_opensource.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | build_katran.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | install_xdproot.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | collect_debug_real.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | collect_debug_lb.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | start_katran_grpc_server.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | start_katran_simple_server.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/tcpdump_encap_helper/tcpdump_encap_helper.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | tools/xdpdump/XdpDumpKern.h | 21 | COMMENT | |
| LOW | tools/start_katran/build_start_katran.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | example_grpc/build_grpc_client.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | example_grpc/katran_server.cpp | 21 | #include <thread> | COMMENT |
| LOW | katran/decap/tc_bpf/tc_decap_kern_helpers.h | 21 | #include <linux/ip.h> | COMMENT |
| LOW | katran/decap/tc_bpf/tc_decap_stats_maps.h | 21 | #include "katran/lib/linux_includes/bpf_helpers.h" | COMMENT |
| LOW | katran/decap/tc_bpf/tc_decap_info.bpf.c | 21 | #include <linux/pkt_cls.h> | COMMENT |
| LOW | katran/decap/tc_bpf/tc_decap_stats.bpf.c | 21 | #include <linux/ipv6.h> | COMMENT |
| LOW | katran/decap/testing/tc_srcmatch_tester.cpp | 21 | #include <folly/base64.h> | COMMENT |
| LOW | katran/lib/KatranLb.h | 21 | #include <memory> | COMMENT |
| LOW | katran/lib/KatranLb.cpp | 21 | #include <folly/lang/Bits.h> | COMMENT |
| LOW | katran/lib/KatranLb.cpp | 61 | globalLruMapsFd_(kMaxForwardingCores) { | COMMENT |
| LOW | katran/lib/KatranLb.cpp | 81 | // Example 1: | COMMENT |
| LOW | katran/lib/KatranLb.cpp | 101 | // CH_ring = {0, 0, 1, 1, 2, 2, 2} | COMMENT |
| LOW | katran/lib/Netlink.cpp | 21 | #include <libmnl/libmnl.h> | COMMENT |
| LOW | katran/lib/BaseBpfAdapter.cpp | 21 | #include <folly/CppAttributes.h> | COMMENT |
| LOW | katran/lib/MonitoringStructs.h | 1 | // Copyright 2004-present Facebook. All Rights Reserved. | COMMENT |
| LOW | katran/lib/BpfBatchUtil.h | 21 | #include <folly/Function.h> | COMMENT |
| LOW | katran/lib/linux_includes/bpf_endian.h | 21 | */ | COMMENT |
| LOW | katran/lib/linux_includes/bpf.h | 21 | #define BPF_DW 0x18 /* double word (64-bit) */ | COMMENT |
| LOW | katran/lib/linux_includes/bpf.h | 2881 | */ | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 381 | #define bpf_target_x86 | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 401 | #else | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 421 | #endif | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 441 | #define PT_REGS_PARM2(x) ((x)->edx) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 461 | #endif | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 481 | #elif defined(bpf_target_arm) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 501 | #define PT_REGS_PARM2(x) (((PT_REGS_ARM64*)(x))->regs[1]) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 521 | */ | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 541 | #define PT_REGS_PARM3(x) ((x)->u_regs[UREG_I2]) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_helpers.h | 561 | #define BPF_KPROBE_READ_RET_IP(ip, ctx) ({ (ip) = PT_REGS_RET(ctx); }) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_common.h | 1 | #ifndef __LINUX_BPF_COMMON_H__ | COMMENT |
| LOW | katran/lib/linux_includes/bpf_common.h | 21 | #define BPF_MODE(code) ((code) & 0xe0) | COMMENT |
| LOW | katran/lib/linux_includes/bpf_common.h | 41 | #define BPF_XOR 0xa0 | COMMENT |
| LOW | katran/lib/testing/tools/PacketBuilder.cpp | 21 | #include <folly/base64.h> | COMMENT |
| LOW | katran/lib/testing/tools/PacketBuilderTest.cpp | 601 | // Verifies PacketBuilder correctly implements QUIC long header format for 0-RTT | COMMENT |
| LOW | katran/lib/testing/python/fplane_testing.py | 1 | # Copyright (C) 2018-present, Facebook, Inc. | COMMENT |
| LOW | katran/lib/testing/framework/KatranTesterCli.h | 41 | // Returns true when argv selects the canonical subcommand interface. Legacy | COMMENT |
| LOW | katran/lib/testing/framework/katran_tester.cpp | 21 | COMMENT | |
| LOW | katran/lib/bpf/healthchecking_consts.h | 21 | // position of ifindex of main interface inside hc ctrl array | COMMENT |
| LOW | katran/lib/bpf/healthchecking_consts.h | 41 | #define STATS_SIZE 1 | COMMENT |
| LOW | katran/lib/bpf/introspection.h | 21 | // constants which does not depend on the introspection flag | COMMENT |
| LOW | katran/lib/bpf/healthchecking_helpers.h | 21 | #include <linux/ip.h> | COMMENT |
| LOW | katran/lib/bpf/pckt_parsing.h | 21 | * This file contains generic packet parsing routines (e.g. tcp/udp headers | COMMENT |
| LOW | katran/lib/bpf/balancer_consts.h | 21 | */ | COMMENT |
| LOW | katran/lib/bpf/balancer_consts.h | 41 | COMMENT | |
| LOW | katran/lib/bpf/balancer_consts.h | 61 | COMMENT | |
| LOW | katran/lib/bpf/balancer_consts.h | 81 | // maximum number of prefixes in lpm map for src based routing. | COMMENT |
| LOW | katran/lib/bpf/balancer_consts.h | 101 | #endif | COMMENT |
| LOW | katran/lib/bpf/balancer_consts.h | 121 | COMMENT | |
| LOW | katran/lib/bpf/balancer_consts.h | 141 | COMMENT | |
| 31 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | katran/tpr/bpf_util/SystemError.h | 79 | // Example usage: | COMMENT |
| LOW | katran/tpr/bpf_util/SystemError.h | 123 | // Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | katran/lib/tests/EventPipeCallbackTest.cpp | 19 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras at sem nec tortor aliquet ullamcorper."; | CODE |
| LOW | katran/lib/tests/EventPipeCallbackTest.cpp | 19 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras at sem nec tortor aliquet ullamcorper."; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | build_katran.sh | 560 | #on centos the cp -fpR used was throwing an error, so just use a regular cp -R | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | katran/lib/testing/python/fplane_testing.py | 258 | except Exception: | STRING |