AI Slop Code Risk Monitor

pomerium/pomerium

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

Pomerium is an identity and context-aware access proxy.

1.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for pomerium/pomerium, a Go project with 5,083 GitHub stars. SynthScan examined 341,764 lines of code across 1671 source files, recording 389 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 1.6 (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.

1.6
Adjusted Signal
1.6
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
5.1K
Stars
Go
Language
341.8K
Lines of Code
1.7K
Files
389
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 4.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 1.6/100 · LOW

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

Agent Over-Engineering Ratio 1.8/100 · LOW

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

PR Review Velocity Impact 6.9/100 · LOW

Which changes need focused human review? 389 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 2HIGH 1MEDIUM 39LOW 347

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 389 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 Block206 hits · 190 pts
SeverityFileLineSnippetContext
LOWui/src/util/base64.ts1// The MIT License (MIT)COMMENT
LOWauthenticate/handlers.go201COMMENT
LOWconfig/identity_provider.go21 "github.com/pomerium/pomerium/pkg/health"COMMENT
LOWconfig/identity_provider.go41 // The special value `kubernetes:///` selects the API server of theCOMMENT
LOWconfig/identity_provider.go161COMMENT
LOWconfig/identity_provider.go281// providers that would have used it, rather than the whole map — kubernetes://COMMENT
LOWconfig/identity_provider.go301 deferred []*deferredKubernetesProviderCOMMENT
LOWconfig/identity_provider.go321 cacheKey uint64COMMENT
LOWconfig/identity_provider.go521 ProviderName: rp.Name,COMMENT
LOWconfig/identity_provider.go581// fetches.COMMENT
LOWconfig/identity_provider.go601 // automatically. The CA bundle is written to the digest directly: routingCOMMENT
LOWconfig/options.go161 // non-interactive workloads on routes whose BearerTokenFormat isCOMMENT
LOWconfig/options.go241 // If multiple keys are given, they must each have unique algorithms.COMMENT
LOWconfig/policy.go101COMMENT
LOWconfig/policy.go141 SetRequestHeaders map[string]string `mapstructure:"set_request_headers" yaml:"set_request_headers,omitempty"`COMMENT
LOWconfig/identity_provider_kubernetes.go1package configCOMMENT
LOWconfig/identity_provider_kubernetes.go21//COMMENT
LOWconfig/identity_provider_kubernetes.go61 kubernetesIssuerScheme = "kubernetes"COMMENT
LOWconfig/identity_provider_kubernetes.go161 return &http.Client{Transport: &kubernetesAuthRoundTripper{COMMENT
LOWconfig/autocert.go41 // MustStaple will cause autocert to request a certificate withCOMMENT
LOWconfig/mtls.go21// DownstreamMTLSSettings specify the downstream client certificate requirements.COMMENT
LOWconfig/envoyconfig/websocket_int_test.go21COMMENT
LOWconfig/envoyconfig/websocket_int_test.go61 // without upgrade_configs). Asserting the status pins the factCOMMENT
LOWinternal/middleware/responsewriter/wrap_writer.go41// WrapResponseWriter is a proxy around an http.ResponseWriter that allows you to hookCOMMENT
LOWinternal/httputil/headers.go21 // HeaderPomeriumAuthorization is the header key for a pomerium authorization JWT. ItCOMMENT
LOWinternal/recording/protocol.go61COMMENT
LOWinternal/mcp/cors.go1package mcpCOMMENT
LOWinternal/mcp/cors.go21// endpoints should "support the necessary CORS headers to allow the responses toCOMMENT
LOWinternal/mcp/client_id_metadata.go101// - MUST NOT contain a fragment componentCOMMENT
LOWinternal/mcp/handler_token.go41// enumerate registered clients.COMMENT
LOWinternal/mcp/upstream_auth_prm_resource_test.go21//COMMENT
LOWinternal/mcp/upstream_discovery.go41//COMMENT
LOWinternal/mcp/handler_connect.go261 if redirectHostname != stripPort(requestHost) &&COMMENT
LOWinternal/mcp/handler_connect.go281//COMMENT
LOWinternal/mcp/e2e/mcp_cors_test.go21 "github.com/pomerium/pomerium/internal/testenv/snippets"COMMENT
LOW…rnal/mcp/e2e/ext_proc_databroker_config_update_test.go41// The handler wraps a *mcp.HostInfo whose map of hostname -> ServerHostInfo isCOMMENT
LOWinternal/mcp/extproc/handler.go21 // HandleUpstreamResponse processes a 401/403 response from upstream.COMMENT
LOWinternal/opaquetoken/payload.pb.go81}COMMENT
LOWinternal/testenv/types.go21}COMMENT
LOWinternal/testenv/types.go81// to make additional modifications. The aggregate's Modify() is called first.COMMENT
LOWinternal/testenv/ports.go21// silently land on whichever server won the race.COMMENT
LOWinternal/testenv/environment.go81 CACert() *tls.CertificateCOMMENT
LOWinternal/testenv/environment.go121 AddOption(pomerium.Option)COMMENT
LOWinternal/testenv/environment.go141 // given, but can be called at any time.COMMENT
LOWinternal/testenv/environment.go161 // before continuing, after triggering the state change.COMMENT
LOWinternal/testenv/upstreams/http.go101// be the actual client used for that request. It can be the same as the inputCOMMENT
LOWinternal/acceptance/acceptance_test.go1//go:build acceptanceCOMMENT
LOW…cceptance/suites/upstream-tls/setup/pomerium-config.ts1// Pomerium configuration generator for the upstream TLS/mTLS suite.COMMENT
LOW…nal/acceptance/suites/upstream-tls/setup/containers.ts1// testcontainers orchestration for the upstream TLS/mTLS e2e stack.COMMENT
LOW…al/acceptance/suites/upstream-tls/scripts/gen-certs.sh1#!/bin/shCOMMENT
LOW…rnal/acceptance/suites/upstream-tls/upstream/server.js1"use strict";COMMENT
LOW…ptance/suites/downstream-mtls/setup/pomerium-config.ts1// Pomerium configuration generator for per-test-group variants.COMMENT
LOW…/acceptance/suites/downstream-mtls/setup/containers.ts1// testcontainers orchestration for the downstream mTLS e2e stack.COMMENT
LOW…al/acceptance/suites/downstream-mtls/tests/crl.spec.ts81 // DEVIATION FROM THE MANUAL TEST PLAN, confirmed against the source: theCOMMENT
LOW…acceptance/suites/downstream-mtls/scripts/gen-certs.sh1#!/bin/shCOMMENT
LOWinternal/acceptance/suites/mcp/setup/certs.ts1// mkcert-based certificate generation.COMMENT
LOWinternal/acceptance/suites/mcp/setup/containers.ts1// testcontainers orchestration for the MCP e2e stack.COMMENT
LOWinternal/acceptance/suites/mcp/mcp-client/connect.ts1// Connect an MCP client to a Pomerium-fronted MCP server, performing the OAuthCOMMENT
LOWinternal/zero/controller/config.go61 }COMMENT
LOWinternal/zero/controller/config.go81// Example: "file:///path/to/file" would write the config to "/path/to/file"COMMENT
146 more matches not shown…
Decorative Section Separators31 hits · 112 pts
SeverityFileLineSnippetContext
MEDIUM⚡internal/recording/protocol.go67// ├──► RecordingData(Metadata) ───────►│ 1. Receive metadataCOMMENT
MEDIUM⚡internal/recording/protocol.go71// │◄─── RecordingSession ──────────────┤ 2. Send manifestCOMMENT
MEDIUM⚡internal/recording/protocol.go74// ├──► RecordingData(Chunk) ──────────►│ 3. Stream chunksCOMMENT
MEDIUM⚡internal/recording/protocol.go75// ├──► ... ──────────►│COMMENT
MEDIUM⚡internal/recording/protocol.go76// ├──► RecordingData(Checksum) ───────►│ 4. Verify checksumCOMMENT
MEDIUM⚡internal/recording/protocol.go78// │◄─── RecordingSession ──────────────┤ 5. Send updated manifestCOMMENT
MEDIUM⚡internal/recording/protocol.go80// ├──► RecordingData(Chunk) ──────────►│ 6. Continue streaming until done...COMMENT
MEDIUM…acceptance/suites/downstream-mtls/scripts/gen-certs.sh35# ============================================================================COMMENT
MEDIUM…acceptance/suites/downstream-mtls/scripts/gen-certs.sh37# ============================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml52 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml54 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml81 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml83 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml123 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml125 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml137 # ===========================================================================COMMENT
MEDIUMinternal/acceptance/pomerium/config.yaml139 # ===========================================================================COMMENT
MEDIUM⚡internal/acceptance/scripts/gen-mtls-certs.sh35# ============================================================================COMMENT
MEDIUM⚡internal/acceptance/scripts/gen-mtls-certs.sh37# ============================================================================COMMENT
MEDIUM⚡internal/acceptance/scripts/gen-mtls-certs.sh46# ============================================================================COMMENT
MEDIUM⚡internal/acceptance/scripts/gen-mtls-certs.sh48# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh78# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh80# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh114# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh116# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh149# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh151# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh182# ============================================================================COMMENT
MEDIUMinternal/acceptance/scripts/gen-mtls-certs.sh184# ============================================================================COMMENT
MEDIUM⚡.github/workflows/acceptance.yaml17# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡.github/workflows/acceptance.yaml36# ---------------------------------------------------------------------------COMMENT
Fake / Example Data90 hits · 92 pts
SeverityFileLineSnippetContext
LOWproxy/handlers_test.go282 assert.Equal(t, `{"admin":true,"name":"John Doe","sub":"1234567890"}`, string(b))CODE
LOWconfig/policy_test.go235 &Policy{From: "https://pomerium.io", To: mustParseWeightedURLs(t, "http://localhost"), AllowedUsers: []string{"foo@baCODE
LOWconfig/policy_test.go272 p := &Policy{From: "https://pomerium.io", To: mustParseWeightedURLs(t, "http://localhost"), AllowedUsers: []string{"fooCODE
LOWconfig/policy_test.go317 AllowedUsers: []string{"foo@bar.com"},CODE
LOWconfig/options_test.go591 "AUTOCERT_EAB_MAC_KEY": "fake-key",CODE
LOWconfig/options_test.go606 EABMACKey: "fake-key",CODE
LOWconfig/options_test.go622 "AUTOCERT_EAB_MAC_KEY": "fake-key",CODE
LOWconfig/options_test.go637 EABMACKey: "fake-key",CODE
LOWinternal/authenticateflow/stateful_test.go463 "name": "John Doe",CODE
LOWinternal/authenticateflow/stateful_test.go480 "name": {Values: []*structpb.Value{structpb.NewStringValue("John Doe")}},CODE
LOWinternal/authenticateflow/identityprofile_test.go38 "name": structpb.NewStringValue("John Doe"),CODE
LOWinternal/authenticateflow/identityprofile_test.go65 "name": {Values: []*structpb.Value{structpb.NewStringValue("John Doe")}},CODE
LOW…ternal/authenticateflow/jwt_claims_headers_int_test.go33 Email: "user@example.com",CODE
LOW…ternal/authenticateflow/jwt_claims_headers_int_test.go77 upstreams.AuthenticateAs("user@example.com"),CODE
LOW…ternal/authenticateflow/jwt_claims_headers_int_test.go88 assert.Equal(t, "user@example.com", hdrs["x-pomerium-claim-email"])CODE
LOW…ternal/authenticateflow/jwt_claims_headers_int_test.go98 assert.Equal(t, "user@example.com", payload["email"])CODE
LOWinternal/mcp/e2e/mcp_test.go36 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_test.go166 userToken := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/mcp_upstream_pre_registered_test.go53 idp := scenarios.NewIDP([]*scenarios.User{{Email: "user@example.com"}})CODE
LOWinternal/mcp/e2e/mcp_upstream_pre_registered_test.go224 upstreams.AuthenticateAs("user@example.com"),CODE
LOWinternal/mcp/e2e/mcp_upstream_pre_registered_test.go267 authResp, err := upstreams.AuthenticateFlow(t.Context(), browser, authReq, "user@example.com", true)CODE
LOWinternal/mcp/e2e/mcp_auth_flow_test.go51 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_auth_flow_test.go247 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go170 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go309 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go342 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go372 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go411 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go437 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_handler_test.go457 token := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/mcp_upstream_dcr_fallback_test.go46 idp := scenarios.NewIDP([]*scenarios.User{{Email: "user@example.com"}})CODE
LOWinternal/mcp/e2e/mcp_upstream_dcr_fallback_test.go221 upstreams.AuthenticateAs("user@example.com"),CODE
LOWinternal/mcp/e2e/mcp_upstream_dcr_fallback_test.go263 authResp, err := upstreams.AuthenticateFlow(t.Context(), browser, authReq, "user@example.com", true)CODE
LOWinternal/mcp/e2e/service_account_test.go60 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/service_account_test.go146 userToken := getToken("user@example.com")CODE
LOW⚡internal/mcp/e2e/service_account_test.go162 UserId: "user@example.com",CODE
LOWinternal/mcp/e2e/service_account_test.go211 UserId: "user@example.com",CODE
LOWinternal/mcp/e2e/service_account_test.go341 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/service_account_test.go418 UserId: "user@example.com",CODE
LOWinternal/mcp/e2e/mcp_client_routes_test.go56 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_client_routes_test.go134 resp, err := upstreams.AuthenticateFlow(ctx, client, authReq, "user@example.com", true)CODE
LOWinternal/mcp/e2e/mcp_cors_test.go54 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_cors_test.go312 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/mcp_echo_only_server_test.go56 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_echo_only_server_test.go148 upstreams.AuthenticateAs("user@example.com"),CODE
LOWinternal/mcp/e2e/ext_proc_test.go54 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/ext_proc_test.go162 userToken := getToken("user@example.com")CODE
LOWinternal/mcp/e2e/ext_proc_test.go198 upstreams.AuthenticateAs("user@example.com"),CODE
LOWinternal/mcp/e2e/mcp_dcr_disabled_test.go38 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_conformance_test.go51 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_conformance_test.go169 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go47 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go222 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go314 {Email: "user@example.com"},CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go409 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go452 resp, err := upstreams.AuthenticateFlow(ctx, authClient, req, "user@example.com", false)CODE
LOWinternal/mcp/e2e/mcp_client_id_metadata_test.go479 {Email: "user@example.com"},CODE
LOWinternal/databroker/config_source_test.go62 }, AllowedUsers: []string{"foo@bar.com"},CODE
LOWinternal/rfc7591/format_test.go49 "contacts": ["admin@example.com", "support@example.com"],CODE
LOWinternal/rfc7591/format_test.go72 Contacts: []string{"admin@example.com", "support@example.com"},CODE
30 more matches not shown…
Structural Annotation Overuse19 hits · 38 pts
SeverityFileLineSnippetContext
LOWinternal/mcp/DESIGN.md535### Step 1: Protected Resource Metadata (PRM)COMMENT
LOWinternal/mcp/DESIGN.md562### Step 2: Authorization Server MetadataCOMMENT
LOWinternal/mcp/upstream_oauth_setup.go254 // Step 1: Fetch Protected Resource Metadata (RFC 9728)COMMENT
LOW⚡internal/mcp/upstream_oauth_setup.go292 // Step 2: If PRM succeeded, use PRM → AS metadata flowCOMMENT
LOW⚡internal/mcp/upstream_oauth_setup.go297 // Step 3: PRM not available — fall back to direct AS metadata discovery.COMMENT
LOWinternal/mcp/handler_connect.go417 // Step 1: Check for pending upstream auth from ext_proc.COMMENT
LOWinternal/mcp/handler_connect.go466 // Step 2: Proactive discovery — fetch PRM to check if upstream needs OAuth.COMMENT
LOWinternal/mcp/e2e/service_account_test.go124 // Step 1: First, establish an interactive session to provision upstream tokens.COMMENT
LOW⚡internal/mcp/e2e/service_account_test.go158 // Step 2: Create a service account for the same user in the databroker.COMMENT
LOWinternal/acceptance/suites/mcp/mcp-client/connect.ts50 // Step 1: probe — expected to throw UnauthorizedError after the SDK hasCOMMENT
LOW⚡internal/acceptance/suites/mcp/mcp-client/connect.ts70 // Step 2: browser sign-in.COMMENT
LOW⚡internal/acceptance/suites/mcp/mcp-client/connect.ts76 // Step 3: exchange the code, then reconnect with the stored token.COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go310 // Step 1: Initial SyncLatest returns records k0, k1COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go314 // Step 2: Sync returns k2, then Canceled errorCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go319 // Step 3: Canceled doesn't reset serverVersion, so Sync is retried (not SyncLatest)COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go323 // Step 4: Retry Sync, returns k3, k4, k5, then Aborted errorCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go328 // Step 5: Aborted resets serverVersion, so SyncLatest is calledCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go332 // Step 6: Retry SyncLatest, returns all 6 recordsCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go336 // Step 7: Sync is called. We need to handle retries to avoid gomock errors.COMMENT
Verbosity Indicators17 hits · 34 pts
SeverityFileLineSnippetContext
LOWinternal/mcp/upstream_oauth_setup.go254 // Step 1: Fetch Protected Resource Metadata (RFC 9728)COMMENT
LOW⚡internal/mcp/upstream_oauth_setup.go292 // Step 2: If PRM succeeded, use PRM → AS metadata flowCOMMENT
LOW⚡internal/mcp/upstream_oauth_setup.go297 // Step 3: PRM not available — fall back to direct AS metadata discovery.COMMENT
LOWinternal/mcp/handler_connect.go417 // Step 1: Check for pending upstream auth from ext_proc.COMMENT
LOWinternal/mcp/handler_connect.go466 // Step 2: Proactive discovery — fetch PRM to check if upstream needs OAuth.COMMENT
LOWinternal/mcp/e2e/service_account_test.go124 // Step 1: First, establish an interactive session to provision upstream tokens.COMMENT
LOW⚡internal/mcp/e2e/service_account_test.go158 // Step 2: Create a service account for the same user in the databroker.COMMENT
LOWinternal/acceptance/suites/mcp/mcp-client/connect.ts50 // Step 1: probe — expected to throw UnauthorizedError after the SDK hasCOMMENT
LOW⚡internal/acceptance/suites/mcp/mcp-client/connect.ts70 // Step 2: browser sign-in.COMMENT
LOW⚡internal/acceptance/suites/mcp/mcp-client/connect.ts76 // Step 3: exchange the code, then reconnect with the stored token.COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go310 // Step 1: Initial SyncLatest returns records k0, k1COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go314 // Step 2: Sync returns k2, then Canceled errorCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go319 // Step 3: Canceled doesn't reset serverVersion, so Sync is retried (not SyncLatest)COMMENT
LOW⚡pkg/databrokerutil/syncer_test.go323 // Step 4: Retry Sync, returns k3, k4, k5, then Aborted errorCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go328 // Step 5: Aborted resets serverVersion, so SyncLatest is calledCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go332 // Step 6: Retry SyncLatest, returns all 6 recordsCOMMENT
LOW⚡pkg/databrokerutil/syncer_test.go336 // Step 7: Sync is called. We need to handle retries to avoid gomock errors.COMMENT
AI Slop Vocabulary7 hits · 25 pts
SeverityFileLineSnippetContext
LOW…nfig/testdata/main_http_connection_manager_filter.json283 "inlineString": "-- This filter interprets the accept header of an incoming request and attempts to map it tCODE
MEDIUMinternal/acceptance/pomerium/config.yaml2# This configuration is designed for use with the acceptance test harnessCOMMENT
MEDIUM⚡.github/workflows/acceptance.yaml18# Each e2e harness runs as an INDEPENDENT job (own runner, own stack, ownCOMMENT
MEDIUM⚡.github/workflows/acceptance.yaml19# timeout) so they run in parallel and can't break each other. Every harnessCOMMENT
MEDIUM⚡.github/workflows/acceptance.yaml22# merges each harness's committed feature-map.json fragment, and renders ONECOMMENT
MEDIUM⚡.github/workflows/acceptance.yaml26# To add a harness: add a job below that uploads an `e2e-results-<name>`COMMENT
MEDIUMpkg/mcp/configapi/sensitive_test.go727 // Match by proto identity, not Go type — robust to vendoredCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALauthorize/evaluator/headers_evaluator_evaluation.go172 if e.request.Policy.LoadBalancingPolicy.Value.ToEnvoy() == envoy_config_cluster_v3.Cluster_RING_HASH ||CODE
CRITICALauthorize/evaluator/headers_evaluator_evaluation.go173 e.request.Policy.LoadBalancingPolicy.Value.ToEnvoy() == envoy_config_cluster_v3.Cluster_MAGLEV {CODE
Hyper-Verbose Identifiers10 hits · 10 pts
SeverityFileLineSnippetContext
LOWui/src/components/UserInfoPage.tsx30 function handleCloseDeviceEnrolled() {CODE
LOW…nal/acceptance/suites/upstream-tls/setup/containers.ts348export async function startPomeriumExpectingConfigError(opts: {CODE
LOW…eptance/browser/tests/authz/pomerium-endpoints.spec.ts55function expectUnauthenticatedDenied(CODE
LOWinternal/acceptance/browser/helpers/csrf.ts55export async function getCSRFTokenFromAuthenticate(page: Page): Promise<string | null> {CODE
LOWinternal/acceptance/browser/helpers/csrf.ts142export async function verifyOAuthStateContainsCSRF(page: Page): Promise<void> {CODE
LOWinternal/acceptance/browser/helpers/csrf.ts177export function createTamperedCallbackUrl(CODE
LOWinternal/acceptance/browser/helpers/csrf.ts199export function buildLogoutUrlWithoutCSRF(): string {CODE
LOWinternal/acceptance/browser/helpers/cors.ts255export async function verifyCrossOriginRequestWorks(CODE
LOWinternal/acceptance/browser/helpers/cookies.ts135export async function verifySessionCookieSecurity(page: Page): Promise<void> {CODE
LOWinternal/acceptance/browser/helpers/cookies.ts177export async function verifySessionCookieAbsent(page: Page): Promise<void> {CODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHinternal/rfc7591/rfc7591_types.pb.go839 // Contains the client metadata as requested by the client.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/config/route.example.yaml1# This file contains only route and policy configuration details. OtherCOMMENT
MEDIUMexamples/config/policy.example.yaml1# This file contains only policy and route configuration details. OtherCOMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinternal/testenv/values/value.go127// Example usage:COMMENT
LOWinternal/testenv/values/value.go147// Example usage:COMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinternal/acceptance/scripts/gen-mtls-certs.sh13 # Check if cert is still valid (not expired)COMMENT
LOWinternal/acceptance/scripts/gen-certs.sh13 # Check if cert is still valid (not expired)COMMENT