AI Slop Code RIsk Monitor

apache/brpc

brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".

6.5 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for apache/brpc, a C++ project with 17,628 GitHub stars. SynthScan examined 341,804 lines of code across 1325 source files, recording 2222 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 6.5 (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.

6.5
Adjusted Signal
6.5
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
17.6K
Stars
C++
Language
341.8K
Lines of Code
1.3K
Files
2.2K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 27.6/100 · MEDIUM

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 27.9/100 · MEDIUM

Which changes need focused human review? 2222 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 3LOW 2218

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 2222 distinct pattern matches across 12 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 Block2165 hits · 2140 pts
SeverityFileLineSnippetContext
LOWCMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWconfig_brpc.sh1#!/usr/bin/env shCOMMENT
LOWconfig_brpc.sh681fiCOMMENT
LOW.licenserc.yaml1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWCHANGES.md1<!--COMMENT
LOWtools/print_gcc_version.sh1#!/usr/bin/env bashCOMMENT
LOWtools/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/lldb_bthread_stack.py1#!/usr/bin/env pythonCOMMENT
LOWtools/get_brpc_revision.sh1#!/usr/bin/env bashCOMMENT
LOWtools/gdb_bthread_stack.py1#!/usr/bin/env pythonCOMMENT
LOWtools/add_syntax_equal_proto2_to_all.sh1#!/usr/bin/env bashCOMMENT
LOWtools/rpc_replay/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_replay/info_thread.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_replay/info_thread.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_replay/rpc_replay.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_replay/rpc_replay.cpp21#include <butil/time.h>COMMENT
LOWtools/parallel_http/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/parallel_http/parallel_http.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/trackme_server/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/trackme_server/trackme_server.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/pb_util.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/pb_util.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/json_loader.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/client.py1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/rpc_press_impl.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/rpc_press_impl.cpp21#include <sys/time.h>COMMENT
LOWtools/rpc_press/info_thread.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/rpc_press.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/json_loader.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/rpc_press_impl.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_press/info_thread.h1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_view/rpc_view.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtools/rpc_view/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/bvar_mvariable_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/bvar_mvariable_unittest.cpp21#include <string_view>COMMENT
LOWtest/brpc_http_message_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_channel_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_channel_unittest.cpp21COMMENT
LOWtest/bthread_setconcurrency_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/bvar_multi_dimension_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/bvar_multi_dimension_unittest.cpp21#include <cstddef>COMMENT
LOWtest/bthread_id_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/baidu_thread_local_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/bvar_status_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_mysql_auth_packet_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_http_rpc_protocol_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_http_rpc_protocol_unittest.cpp21COMMENT
LOWtest/brpc_http_rpc_protocol_unittest.cpp41#include "butil/files/scoped_file.h"COMMENT
LOWtest/bvar_lock_timer_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_load_balancer_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_load_balancer_unittest.cpp21COMMENT
LOWtest/brpc_load_balancer_unittest.cpp1421// Regression for #3268's incomplete migration of LocalityAwareLoadBalancer.COMMENT
LOWtest/brpc_load_balancer_unittest.cpp1441// `lb=la` and 2 backends occasionally fail RPCs with `EHOSTDOWN`COMMENT
LOWtest/CMakeLists.txt1# Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_mcpack2pb_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/string_splitter_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_hulu_pbrpc_protocol_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
LOWtest/brpc_hulu_pbrpc_protocol_unittest.cpp21COMMENT
LOWtest/brpc_snappy_compress_unittest.cpp1// Licensed to the Apache Software Foundation (ASF) under oneCOMMENT
2105 more matches not shown…
Example Usage Blocks14 hits · 21 pts
SeverityFileLineSnippetContext
LOWtest/multiprocess_func_list.h20// Example usage:COMMENT
LOWcommunity/skills/brpc-release/scripts/bump_version.sh22# Usage:COMMENT
LOWcommunity/skills/brpc-release/scripts/make_package.sh23# Usage:COMMENT
LOWcommunity/skills/brpc-release/scripts/release_notes.sh24# Usage:COMMENT
LOWcommunity/skills/brpc-release/scripts/verify_package.sh23# Usage:COMMENT
LOWsrc/brpc/versioned_ref_with_id.h185// Example usage:COMMENT
LOWsrc/butil/lazy_instance.h26// Example usage:COMMENT
LOWsrc/butil/gtest_prod_util.h33// Example usage:COMMENT
LOWsrc/butil/gtest_prod_util.h63// Example usage:COMMENT
LOWsrc/butil/compiler_specific.h47// Example usage:COMMENT
LOWsrc/butil/memory/singleton.h166// Example usage:COMMENT
LOWsrc/butil/mac/foundation_util.h251// Example usage:COMMENT
LOWsrc/butil/mac/foundation_util.h312// Example usage:COMMENT
LOWsrc/butil/threading/thread_local.h32// Example usage:COMMENT
AI Slop Vocabulary8 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMcommunity/skills/brpc-release/scripts/release_notes.sh110# avoids one request per commit and remains robust when a subject contains anCOMMENT
MEDIUMsrc/brpc/span.h189 // However, returning by value is more robust: it prevents potential data races ifCOMMENT
LOWsrc/brpc/builtin/pprof_perl.cpp1210 "# names. You show the name the first time, and just use its number\n"CODE
LOWsrc/brpc/builtin/pprof_perl.cpp3642 " # Since we know one of the pair is 0, it's fine to just add them.\n"CODE
LOWsrc/brpc/builtin/pprof_perl.cpp4264 "# If all else fails, just return the name of the library unmodified.\n"CODE
LOWsrc/brpc/builtin/pprof_perl.cpp4753 " # If \"addr2line\" isn't installed on the system at all, just use\n"CODE
LOWsrc/brpc/builtin/pprof_perl.cpp4885 " # No symbols: just use addresses\n"CODE
MEDIUMsrc/butil/safe_strerror_posix.h34// more robust in the case of heap corruption errors, since it doesn't need toCOMMENT
Slop Phrases9 hits · 14 pts
SeverityFileLineSnippetContext
LOWexample/dynamic_partition_echo_c++/server.cpp162 // Don't forget to stop and join the server otherwise still-runningCOMMENT
LOWexample/selective_echo_c++/server.cpp161 // Don't forget to stop and join the server otherwise still-runningCOMMENT
LOWexample/multi_threaded_echo_fns_c++/server.cpp177 // Don't forget to stop and join the server otherwise still-runningCOMMENT
LOWexample/partition_echo_c++/server.cpp162 // Don't forget to stop and join the server otherwise still-runningCOMMENT
LOWsrc/bthread/task_group.cpp192 // Don't forget to add elapse of last wait_task.COMMENT
LOWsrc/brpc/parallel_channel.cpp315 // NOTE: Don't forget to set "nfailed = _ndone" when the _cntl is setCOMMENT
LOWsrc/brpc/health_reporter.h35 // Don't forget to call done->Run() at the end.COMMENT
LOWsrc/brpc/controller.cpp1491 // Don't forget to signal waiters on authenticationCOMMENT
LOWsrc/brpc/http_header.cpp34 // NOTE: don't forget to clear the field in Clear() as well.COMMENT
Structural Annotation Overuse8 hits · 12 pts
SeverityFileLineSnippetContext
LOWsrc/bthread/rwlock.cpp235 // Step 1: announce ourselves before doing anything else, so thatCOMMENT
LOWsrc/bthread/rwlock.cpp251 // Step 2: serialize with other writers. At most one writer holdsCOMMENT
LOWsrc/bthread/rwlock.cpp275 // Step 3: with `writer_queue_mutex' held, wait for all readers to drainCOMMENT
LOWsrc/bthread/butex.cpp518 // NOTE: This function must be no-op when bw->container is nullptr.COMMENT
LOWsrc/bthread/unstable.h76// NOTE: This function does not wake up pthread waiters.(tested on linux 2.6.32)COMMENT
LOWsrc/brpc/uri.h87 // NOTE: This method is not thread-safe because it may re-generate theCOMMENT
LOWsrc/butil/endpoint.h76// NOTE: This function caches result on first call.COMMENT
LOWsrc/butil/endpoint.h80// NOTE: This function caches result on first call.COMMENT
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippetContext
LOWtest/iobuf_unittest.cpp1175 void* dummy_data = nullptr;CODE
LOWtest/iobuf_unittest.cpp1177 ASSERT_TRUE(dummy_stream.Next(&dummy_data, &dummy_size));CODE
LOWexample/couchbase_c++/couchbase_client.cpp34 R"({"name": "John Doe", "age": 30, "email": "john@example.com"})";CODE
LOWexample/couchbase_c++/couchbase_client.cpp121 R"({"name": "Jane Doe", "age": 28, "email": "jane.doe@example.com"})";CODE
LOW…le/couchbase_c++/traditional_brpc_couchbase_client.cpp93 R"({"name": "John Doe", "age": 30, "email": "john@example.com"})",CODE
LOWdocs/en/couchbase_example.md328 R"({"name": "John Doe", "age": 30, "email": "john@example.com"})", // valueCODE
LOWdocs/en/couchbase_example.md519std::string add_value = R"({"name": "John Doe", "age": 30, "email": "john@example.com"})";CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHtools/gdb_bthread_stack.py173except Exception as e:CODE
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippetContext
LOWsrc/bthread/rwlock.cpp235 // Step 1: announce ourselves before doing anything else, so thatCOMMENT
LOWsrc/bthread/rwlock.cpp251 // Step 2: serialize with other writers. At most one writer holdsCOMMENT
LOWsrc/bthread/rwlock.cpp275 // Step 3: with `writer_queue_mutex' held, wait for all readers to drainCOMMENT
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/lldb_bthread_stack.py128CODE
LOWtools/gdb_bthread_stack.py73CODE
Redundant / Tautological Comments2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/brpc/builtin/pprof_perl.cpp3753 " # Check if the file contains a symbol-section marker.\n"CODE
LOWsrc/brpc/builtin/pprof_perl.cpp5178 " # Verify if addr2line can find the $sep_symbol. If not, we use objdump\n"CODE
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/brpc/builtin/flot_min_js.cpp46 return "(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;oCODE
LOWsrc/brpc/builtin/flot_min_js.cpp46 return "(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;oCODE
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/gdb_bthread_stack.py173 except Exception as e:CODE