AI Slop Code RIsk Monitor

pgsty/pigsty

Enterprise-Grade OSS PostgreSQL Distribution with HA, PITR, IaC, Monitor, 12 kernel forks and 575 PG extensions. Best-of-breed products integrated as a platform. Self-host Postgres like a Pro!

11.8 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pgsty/pigsty, a Shell project with 5,793 GitHub stars. SynthScan examined 190,296 lines of code across 573 source files, recording 910 pattern matches distributed across 16 syntactic categories. The legacy adjusted pattern signal is 11.8 (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.

11.8
Adjusted Signal
11.8
Raw Pattern Score
100%
Time Factor
2026-09-28
Last Push
5.8K
Stars
Shell
Language
190.3K
Lines of Code
573
Files
910
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 12.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 36.9/100 · MEDIUM

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

PR Review Velocity Impact 40.1/100 · MEDIUM

Which changes need focused human review? 910 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 2MEDIUM 515LOW 393

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 910 distinct pattern matches across 16 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.

Decorative Section Separators481 hits · 1744 pts
SeverityFileLineSnippetContext
MEDIUM⚡slim.yml26#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml28#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml37#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml39#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml47#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml49#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml59#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml61#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml69#---------------------------------------------------------------COMMENT
MEDIUM⚡slim.yml71#---------------------------------------------------------------COMMENT
MEDIUM⚡minio.yml23#---------------------------------------------------------------COMMENT
MEDIUM⚡minio.yml25#---------------------------------------------------------------COMMENT
MEDIUM⚡minio.yml32#---------------------------------------------------------------COMMENT
MEDIUM⚡minio.yml34#---------------------------------------------------------------COMMENT
MEDIUMminio.yml50#---------------------------------------------------------------COMMENT
MEDIUMvibe.yml40#---------------------------------------------------------------COMMENT
MEDIUMvibe.yml42#---------------------------------------------------------------COMMENT
MEDIUMvibe.yml61#---------------------------------------------------------------COMMENT
MEDIUMvibe.yml63#---------------------------------------------------------------COMMENT
MEDIUMvibe.yml85#---------------------------------------------------------------COMMENT
MEDIUM⚡node.yml24#---------------------------------------------------------------COMMENT
MEDIUM⚡node.yml26#---------------------------------------------------------------COMMENT
MEDIUMnode.yml49#---------------------------------------------------------------COMMENT
MEDIUMnode.yml51#---------------------------------------------------------------COMMENT
MEDIUMnode.yml64#---------------------------------------------------------------COMMENT
MEDIUMnode.yml66#---------------------------------------------------------------COMMENT
MEDIUMnode.yml114#---------------------------------------------------------------COMMENT
MEDIUMredis.yml15#---------------------------------------------------------------COMMENT
MEDIUMredis.yml17#---------------------------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml15#---------------------------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml17#---------------------------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml25#---------------------------------------------------------------COMMENT
MEDIUMinfra-rm.yml49 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml51 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml99 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml101 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml117 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml119 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml152 #---------------------------------------------COMMENT
MEDIUMinfra-rm.yml154 #---------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml167 #---------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml169 #---------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml179 #---------------------------------------------COMMENT
MEDIUM⚡infra-rm.yml181 #---------------------------------------------COMMENT
MEDIUM⚡deploy.yml38#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml40#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml50#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml52#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml61#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml63#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml72#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml74#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml85#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml87#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml96#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml98#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml107#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml109#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml118#---------------------------------------------------------------COMMENT
MEDIUM⚡deploy.yml120#---------------------------------------------------------------COMMENT
421 more matches not shown…
Over-Commented Block350 hits · 340 pts
SeverityFileLineSnippetContext
LOWpgsql-pitr.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql-pitr.yml21COMMENT
LOWpgsql-pitr.yml41# link_map: {} # Tablespace link mappingsCOMMENT
LOWpgsql-pitr.yml61# ./pgsql-pitr.yml -l pg-test -e '{"pg_pitr": {"cluster": "pg-meta", "name": "some_restore_point"}}'COMMENT
LOWpgsql-pitr.yml81# - start : # start patroni and postgres serviceCOMMENT
LOWpigsty.yml1---COMMENT
LOWpigsty.yml81 etcd:COMMENT
LOWpigsty.yml161 #----------------------------------------------#COMMENT
LOWpigsty.yml181 # storage_port: 9000 # minio port, 9000 by defaultCOMMENT
LOWkafka.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWkafka.yml21 - { role: kafka ,tags: kafka ,when: kafka_cluster is defined } # init & converge kafka clusterCOMMENT
LOWkafka.yml41# # join the dynamic quorum, one at a timeCOMMENT
LOWkafka.yml61# vars: { kafka_cluster: kf-main }COMMENT
LOWkafka.yml81# - kafka_format : format uninitialized storage (dynamic-quorum mode)COMMENT
LOWredis-rm.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWredis-rm.yml21 - { role: redis_remove ,when: redis_cluster is defined }COMMENT
LOWredis-rm.yml41# redis-rm.yml -l 10.10.10.13COMMENT
LOWredis-rm.yml61# redis_exporter : stop and disable redis_exporterCOMMENT
LOWslim.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql.yml21 - { role: pgsql ,tags: pgsql ,when: pg_cluster is defined } # init postgres cluster/instanceCOMMENT
LOWpgsql.yml41# ./pgsql.yml -l pg-test --tags=pg_serviceCOMMENT
LOWpgsql.yml61# - pg_dbsu_create : exchange dbsu ssh keysCOMMENT
LOWpgsql.yml81# - pg_cert_issue : signing pg server certsCOMMENT
LOWpgsql.yml101#COMMENT
LOWpgsql.yml121# - pg_dns : register dns name to infra dnsmasqCOMMENT
LOWminio.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWminio.yml21COMMENT
LOWminio.yml41# - minio_conf : minio main configCOMMENT
LOWjuice.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWjuice.yml21#--------------------------------------------------------------#COMMENT
LOWjuice.yml41#--------------------------------------------------------------#COMMENT
LOWjuice.yml61# juice_dir : create mountpointCOMMENT
LOWpgsql-user.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql-user.yml21# `all.children.<pg_cluster>.vars.pg_users[i]`COMMENT
LOWpgsql-user.yml41#--------------------------------------------------------------#COMMENT
LOWpgsql-user.yml61# parameters: {} # optional, role level parameters with `ALTER ROLE SET`COMMENT
LOWvibe.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWvibe.yml21 #code_data: /data/code # code-server user data directoryCOMMENT
LOWvibe.yml41# UsageCOMMENT
LOWvibe.yml61#---------------------------------------------------------------COMMENT
LOWvibe.yml81# - claude_install : install claude-code packageCOMMENT
LOWkafka-rm.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWkafka-rm.yml41 - { role: kafka_remove ,when: kafka_cluster is defined }COMMENT
LOWkafka-rm.yml61# under-replicated until a replacement with the same kafka_seq rejoins viaCOMMENT
LOWpgsql-db.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql-db.yml21#COMMENT
LOWpgsql-db.yml41# vars:COMMENT
LOWpgsql-db.yml61# icu_rules: '' # optional, icu rules for icu locale provider (PG16+)COMMENT
LOWnode.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWnode.yml21 - { role: node_monitor , tags: monitor } # init node monitorCOMMENT
LOWnode.yml41#--------------------------------------------------------------#COMMENT
LOWnode.yml61# 1. node identity can be specified by nodename or node_cluster explicitly (override all)COMMENT
LOWnode.yml81# node_alias : write /etc/profile.d/node.alias.shCOMMENT
LOWnode.yml101# - node_exporterCOMMENT
LOWpgsql-rm.yml1#!/usr/bin/env ansible-playbookCOMMENT
LOWpgsql-rm.yml21 #pg_rm_data: true # remove postgres data during remove? true by defaultCOMMENT
LOWpgsql-rm.yml41# pgsql-rm.yml -l 10.10.10.13 # remove instance `10.10.10.13` from cluster `pg-test`COMMENT
LOWpgsql-rm.yml61# - pgbackrest_exporter : remove pgbackrest_exporter (pgbackrest monitoring)COMMENT
LOWmysql.yml1#!/usr/bin/env ansible-playbookCOMMENT
290 more matches not shown…
Modern AI Meta-Vocabulary20 hits · 57 pts
SeverityFileLineSnippetContext
MEDIUMroles/pg_remove/README.md44 ├── main.yml # Entry point: orchestrates removalCODE
MEDIUMroles/kafka/README.md62│ ├── main.yml # Entry point: orchestrates all subtasksCODE
MEDIUMroles/node_id/vars/el8.x86_64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/d13.aarch64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el8.aarch64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u24.aarch64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u26.x86_64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el7.x86_64.yml260 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/d12.x86_64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u22.aarch64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u24.x86_64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el9.aarch64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/d12.aarch64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el9.x86_64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u22.x86_64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el10.x86_64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/d13.x86_64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/u26.aarch64.yml381 # RAG: extensionCOMMENT
MEDIUMroles/node_id/vars/el10.aarch64.yml383 # RAG: extensionCOMMENT
MEDIUMroles/pgsql/README.md55│ ├── main.yml # Entry point: orchestrates all subtasksCODE
Slop Phrases18 hits · 48 pts
SeverityFileLineSnippetContext
MEDIUMpigsty.yml165 # you can also use external object storage as backup repoCOMMENT
LOW⚡node.yml27# 1. make sure you have nopass ssh & sudo access to target nodeCOMMENT
LOW⚡node.yml28# 2. make sure you have defined these nodes in your inventoryCOMMENT
MEDIUMpgsql-monitor.yml55# pg_exporter_config: pg_exporter.yml # pg_exporter configuration file name, you can use other filename under filCOMMENT
MEDIUM⚡docker.yml40# you can add registry mirror to `docker_registry_mirrors` to accelerateCOMMENT
MEDIUMconf/slim.yml37 #10.10.10.11: { pg_seq: 2, pg_role: replica } # you can add more!COMMENT
MEDIUMconf/fat.yml252 # you can also use external object storage as backup repoCOMMENT
MEDIUMconf/fat.yml278 s3: # you can use cloud object storage as backup repoCODE
MEDIUMconf/rich.yml302 # you can also use external object storage as backup repoCOMMENT
MEDIUMconf/rich.yml328 s3: # you can use cloud object storage as backup repoCODE
MEDIUMconf/supabase.yml302 s3: # you can use cloud object storage as backup repoCODE
MEDIUMconf/meta.yml165 # you can also use external object storage as backup repoCOMMENT
MEDIUM⚡conf/infra.yml25 #10.10.10.11: { infra_seq: 2 } # you can add more nodes if you wantCOMMENT
LOW⚡conf/infra.yml26 #10.10.10.12: { infra_seq: 3 } # don't forget to assign unique infra_seq for each nodeCOMMENT
LOW⚡conf/infra.yml26 #10.10.10.12: { infra_seq: 3 } # don't forget to assign unique infra_seq for each nodeCOMMENT
LOWconf/infra.yml45 # DON't FORGET TO CHANGE DEFAULT PASSWORDS!COMMENT
MEDIUMconf/app/supa.yml302 s3: # you can use cloud object storage as backup repoCODE
MEDIUMconf/ha/safe.yml104 cipher_pass: 'pgBR.${pg_cluster}' # <-------- CHANGE THIS, you can use cluster name as part of passwordCODE
Example Usage Blocks25 hits · 38 pts
SeverityFileLineSnippetContext
LOWpigsty.yml17# Usage:COMMENT
LOWcert.yml16# Usage:COMMENT
LOWterraform/spec/qcloud.tf18# Usage:COMMENT
LOWbin/psql.py18# Usage:COMMENT
LOWconf/mssql.yml16# Usage:COMMENT
LOWconf/oriole.yml16# Usage:COMMENT
LOWconf/polar.yml16# Usage:COMMENT
LOWconf/slim.yml15# Usage:COMMENT
LOWconf/pgsql.yml16# Usage:COMMENT
LOWconf/vibe.yml16# Usage:COMMENT
LOWconf/fat.yml14# Usage:COMMENT
LOWconf/mysql.yml16# Usage:COMMENT
LOWconf/pgtde.yml16# Usage:COMMENT
LOWconf/rich.yml20# Usage:COMMENT
LOWconf/supabase.yml14# Usage:COMMENT
LOWconf/ivory.yml17# Usage:COMMENT
LOWconf/mongo.yml17# Usage:COMMENT
LOWconf/meta.yml17# Usage:COMMENT
LOWconf/pgedge.yml16# Usage:COMMENT
LOWconf/agens.yml16# Usage:COMMENT
LOWconf/pg19.yml15# Usage:COMMENT
LOW⚡conf/infra.yml15# Usage:COMMENT
LOWconf/docker.yml15# Usage:COMMENT
LOWconf/app/supa.yml14# Usage:COMMENT
LOWconf/ha/citus.yml25# Usage:COMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHterraform/README.md262export VULTR_API_KEY="<your_api_key>"CODE
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippetContext
LOWbin/parse_nginx.py18CODE
LOWbin/parse_nginx.py62CODE
LOWbin/psql.py53CODE
LOWbin/psql.py75CODE
LOWroles/kafka/files/kafka_health.py182CODE
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHroles/kafka/files/kafka_provision.py40except FileNotFoundError:CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMconf/demo/mysql.yml16# This file is a template, not the active deployment inventory. Replace everyCOMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbin/psql.py12CODE
LOWfiles/grafana/mysql/generate.py9CODE
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWterraform/spec/qcloud.tf179# WARNING: This security group allows all inbound/outbound traffic.COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWapp/dify/nginx/docker-entrypoint.sh6 # Check if the certificate and key files for the specified domain existCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWroles/pg_pitr/tasks/stop.yml20 # if postmaster.pid file not exists, just returnCOMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbin/psql.py39 except Exception:CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfiles/grafana/grafana.py208def get_datasource_id_by_name(name):CODE
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWfiles/grafana/mysql/generate.py75CODE