Repository Analysis

Universal-Commerce-Protocol/ucp

Specification and documentation for the Universal Commerce Protocol (UCP)

5.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of Universal-Commerce-Protocol/ucp, a Python project with 3,259 GitHub stars. SynthScan v2.0 examined 44,664 lines of code across 194 source files, recording 144 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 5.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

5.5
Adjusted Score
5.5
Raw Score
100%
Time Factor
2026-08-01
Last Push
3.3K
Stars
Python
Language
44.7K
Lines of Code
194
Files
144
Pattern Hits
2026-08-02
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 0MEDIUM 49LOW 95

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 144 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators39 hits · 117 pts
SeverityFileLineSnippetContext
MEDIUMmain.py1484 # ------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py119# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py121# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py139# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py141# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py177# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py179# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py282# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py284# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py419# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py421# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py492# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py494# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py517# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py519# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py626# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py628# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py671# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py673# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py778# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py780# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py809# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py811# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py1070# -----------------------------------------------------------COMMENT
MEDIUMscripts/validate_examples.py1072# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py39# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py41# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py166# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py168# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py67# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py69# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py212# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py214# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py270# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py272# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py357# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py359# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py574# -----------------------------------------------------------COMMENT
MEDIUMscripts/test_validate_examples.py576# -----------------------------------------------------------COMMENT
Fake / Example Data30 hits · 30 pts
SeverityFileLineSnippetContext
LOWsource/schemas/shopping/types/card_credential.json49 "Jane Doe"CODE
LOWsource/handlers/tokenization/openapi.json43 "name": "Jane Doe"CODE
LOWsource/handlers/tokenization/openapi.json63 "name": "Jane Doe"CODE
LOWsource/handlers/tokenization/openapi.json81 "name": "Jane Doe"CODE
LOWsource/handlers/tokenization/openapi.json191 "name": "Jane Doe"CODE
LOWsource/handlers/tokenization/openapi.json204 "name": "Jane Doe"CODE
LOWdocs/specification/checkout-mcp.md193 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-mcp.md282 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-mcp.md540 "street_address": "123 Main St",CODE
LOWdocs/specification/overview.md1892 "street_address": "123 Main Street",CODE
LOWdocs/specification/ap2-mandates.md380 "street_address": "123 Main St",CODE
LOWdocs/specification/order-mcp.md172 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-a2a.md388 "street_address": "123 Main St",CODE
LOWdocs/specification/playground.md573 "street_address": "123 Main Street",CODE
LOWdocs/specification/playground.md974 req.fulfillment.methods = [{ type: 'shipping', destinations: [{ id: "addr_1", street: "123 Main St", city: "CODE
LOWdocs/specification/playground.md1001 destinations: [{ id: "addr_1", street: "123 Main St", city: "Tech City", country: "US", postal_code: "94103"CODE
LOWdocs/specification/checkout-rest.md408 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md517 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md614 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md716 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md806 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md917 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md1076 "street_address": "123 Main St",CODE
LOWdocs/specification/checkout-rest.md1233 "street_address": "123 Main St",CODE
LOWdocs/specification/order-rest.md145 "street_address": "123 Main St",CODE
LOWdocs/specification/fulfillment.md130 "street_address": "123 Main St",CODE
LOWdocs/specification/fulfillment.md656 "street_address": "123 Main St",CODE
LOWdocs/specification/fulfillment.md727 "street_address": "123 Main St",CODE
LOWdocs/specification/order.md223 "street_address": "123 Main St",CODE
LOWdocs/specification/order.md237 "street_address": "123 Main St",CODE
Deep Nesting23 hits · 20 pts
SeverityFileLineSnippetContext
LOWhooks.py45CODE
LOWhooks.py143CODE
LOWhooks.py332CODE
LOWhooks.py172CODE
LOWmain.py67CODE
LOWmain.py122CODE
LOWmain.py213CODE
LOWmain.py249CODE
LOWmain.py340CODE
LOWmain.py611CODE
LOWmain.py683CODE
LOWmain.py945CODE
LOWmain.py1212CODE
LOWmain.py1326CODE
LOWmain.py1384CODE
LOWmain.py1577CODE
LOWscripts/validate_examples.py182CODE
LOWscripts/validate_examples.py311CODE
LOWscripts/validate_examples.py383CODE
LOWscripts/validate_examples.py561CODE
LOWscripts/validate_examples.py1075CODE
LOWscripts/check_links.py72CODE
LOWscripts/super_linter_local.py29CODE
Structural Annotation Overuse11 hits · 19 pts
SeverityFileLineSnippetContext
LOWhooks.py430 # Step 1: Resolve relative $ref to absolute URLsCOMMENT
LOWhooks.py433 # Step 2: Inject version field for named entitiesCOMMENT
LOWhooks.py437 # Step 3: Rewrite URLs to include versionCOMMENT
LOWdocs/specification/payment-handler-template.md245#### Step 1: Discover HandlerCOMMENT
LOWdocs/specification/ap2-mandates.md269### Step 1: Checkout Creation & SigningCOMMENT
LOWdocs/specification/ap2-mandates.md332### Step 2: User Consent & Mandate GenerationCOMMENT
LOWdocs/specification/ap2-mandates.md359### Step 3: Submission (`complete_checkout`)COMMENT
LOW…cation/examples/processor-tokenizer-payment-handler.md193#### Step 1: Discover HandlerCOMMENT
LOW…cation/examples/processor-tokenizer-payment-handler.md221#### Step 2: Collect Sensitive DataCOMMENT
LOW…cation/examples/processor-tokenizer-payment-handler.md227#### Step 3: Tokenize DataCOMMENT
LOW…cation/examples/processor-tokenizer-payment-handler.md243### Step 4: Complete CheckoutCOMMENT
Modern AI Meta-Vocabulary7 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMdocs/specification/ap2-mandates.md152> [AP2 #268](https://github.com/google-agentic-commerce/AP2/issues/268)CODE
MEDIUMdocs/specification/ap2-mandates.md152> [AP2 #268](https://github.com/google-agentic-commerce/AP2/issues/268)CODE
MEDIUMscripts/validate_examples.py995 # 8. Load scaffold and mergeCOMMENT
MEDIUMscripts/test_validate_examples.py416 # E2E: a fully-elided get_product response validates via the scaffoldCOMMENT
MEDIUMscripts/test_validate_examples.py507 # Complete examples validate without a scaffold. Scaffolds are only requiredCOMMENT
MEDIUMscripts/test_validate_examples.py524 # normal target/scaffold validation.COMMENT
MEDIUMscripts/scaffolds/shopping_order_response.json8 "permalink_url": "https://example.com/orders/scaffold",CODE
Hyper-Verbose Identifiers10 hits · 8 pts
SeverityFileLineSnippetContext
LOWhooks.py309def _root_pages_asset_link_rewrite(markdown, base_path):CODE
LOWmain.py67def _validate_common_namespace_exclusivity() -> None:CODE
LOWmain.py683 def _render_table_from_schema(CODE
LOWmain.py1212 def auto_generate_schema_reference(CODE
LOWscripts/validate_examples.py353def lower_ellipsis_to_sentinels(content: str) -> str:CODE
LOWscripts/validate_examples.py725def validate_payload_with_schema(CODE
LOWscripts/test_validate_examples.py171def test_parse_example_keeps_sentinels() -> None:CODE
LOWscripts/test_validate_examples.py185def test_strip_ellipsis_records_paths() -> None:CODE
LOWscripts/test_validate_examples.py201def test_string_ellipsis_in_array() -> None:CODE
LOWscripts/test_validate_examples.py442def test_process_block_integration() -> None:CODE
AI Slop Vocabulary4 hits · 8 pts
SeverityFileLineSnippetContext
LOWmain.py324 # types directory, so we just pass the filenameCOMMENT
LOWmain.py1644 # If ref not resolved, just use nameCOMMENT
LOWmain.py442 else: # Internal ref like #/$defs/context: just use fragmentCODE
MEDIUMscripts/test_validate_examples.py40# Test harness (minimal, no deps)COMMENT
Over-Commented Block8 hits · 8 pts
SeverityFileLineSnippetContext
LOWhooks.py1# Copyright 2026 UCP AuthorsCOMMENT
LOWmkdocs.yml1---COMMENT
LOWmain.py1# Copyright 2026 UCP AuthorsCOMMENT
LOW.github/workflows/release-setup.yml1---COMMENT
LOW.github/workflows/linter.yaml1# Copyright 2026 Google LLCCOMMENT
LOW.github/workflows/docs.yml1---COMMENT
LOW.github/workflows/conventional-commits.yml1# Copyright 2026 Google LLCCOMMENT
LOW.github/workflows/spellcheck.yaml1# Copyright 2026 Google LLCCOMMENT
Excessive Try-Catch Wrapping6 hits · 8 pts
SeverityFileLineSnippetContext
LOWscripts/check_links.py92 except Exception as e:CODE
LOWscripts/check_links.py115 except Exception:CODE
LOWscripts/check_links.py132 except Exception:CODE
LOWscripts/check_links.py137 except Exception as e:CODE
MEDIUMscripts/super_linter_local.py55 print(f"Error: {workflow_path} not found.")CODE
MEDIUMscripts/super_linter_local.py73 print("Error: Could not find 'Lint Code Base' step in workflow.")CODE
Verbosity Indicators3 hits · 7 pts
SeverityFileLineSnippetContext
LOWhooks.py430 # Step 1: Resolve relative $ref to absolute URLsCOMMENT
LOWhooks.py433 # Step 2: Inject version field for named entitiesCOMMENT
LOWhooks.py437 # Step 3: Rewrite URLs to include versionCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWmain.py330 # Check if any property has ucp_request annotationCOMMENT
LOWmain.py395 # Check if this reference comes from the core UCP schemaCOMMENT
AI Structural Patterns1 hit · 1 pts
SeverityFileLineSnippetContext
LOWhooks.py321CODE