.github/workflows/benchmark-report.yml → PostHog/.github/.github/workflows/sdk-benchmark-report.ymlposthog-python
posthog-python
| Primary Language | Python |
|---|---|
| Primary Framework | FastAPI |
| Detected Frameworks | FastAPI; Django; Flask; Docker Compose; Container |
| Technology Stack | Python, Docker, CI/CD |
| Default Branch | main |
| Documentation Priority | P2 |
| Last Repository Scan | 11/15/2026, 5:02:46 AM |
| Source Repository | Open on GitHub |
PostHog/posthog-python — Pipeline Categories Overview
Pipeline Anti-Patterns Detected
Cross-Workflow Triggers & Reusable Calls
.github/workflows/benchmarks.yml → .github/workflows/benchmark-report.yml.github/workflows/call-flags-project-board.yml → PostHog/.github/.github/workflows/flags-project-board.yml.github/workflows/lint-pr.yml → PostHog/.github/.github/workflows/semantic-pr-title.yml.github/workflows/release.yml → .github/workflows/release-failure-notification.yml.github/workflows/release.yml → posthog/.github/.github/workflows/notify-approval-needed.yml.github/workflows/sdk-compliance.yml → PostHog/posthog-sdk-test-harness/.github/workflows/test-sdk-action.yml.github/workflows/sdk-compliance.yml → PostHog/posthog-sdk-test-harness/.github/workflows/test-sdk-action.ymlPostHog/posthog-python — Module Architecture Tree
Arc42 Architecture & Dependency Report
Repository Architecture Analysis: PostHog/posthog-python
Metadata
- SHA:
ec112a6201569e1cf5e9b8827a01793de523f643 - Primary Ecosystem: Python
Quality Metrics
- ast_engine: tree-sitter
- avg_cognitive_complexity: 1.52
- avg_cyclomatic_complexity: 2.08
- component_count: 45
- dead_code_count: 40
- dead_code_symbols: 40 entry(ies)
- duplication_pct: 82.71
- file_complexities: 25 entry(ies)
- files_analyzed: 410
- fitness_passed: False
- fitness_violation_count: 3
- framework: FastAPI
- import_edges: 100 entry(ies)
- loc: 164011
- max_cognitive_complexity: 57
- max_cyclomatic_complexity: 24
- sloc: 134186
- test_file_count: 192
Architecture: PostHog/posthog-python
Context
- Repository:
PostHog/posthog-python - SHA:
ec112a6201569e1cf5e9b8827a01793de523f643 - Ecosystem: Python
- Framework: FastAPI
Building Block View
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
repo_root(["PostHog/posthog-python (45 components)"]):::atlasRoot
subgraph sg_dir_0_posthog["posthog (21)"]
direction TB
dir_0_posthog["posthog (21)"]:::atlasCategory
sub_0_0_test["test (17)"]:::atlasWorkflow
dir_0_posthog --> sub_0_0_test
sub_0_1_tracing["tracing (2)"]:::atlasWorkflow
dir_0_posthog --> sub_0_1_tracing
sub_0_2__module_root_["(module root) (1)"]:::atlasWorkflow
dir_0_posthog --> sub_0_2__module_root_
sub_0_more["+1 more submodules (1)"]:::atlasMore
dir_0_posthog --> sub_0_more
end
repo_root --> dir_0_posthog
subgraph sg_dir_1_playgrounds["playgrounds (12)"]
direction TB
dir_1_playgrounds["playgrounds (12)"]:::atlasCategory
sub_1_0_fastapi_async_client["fastapi-async-client (10)"]:::atlasWorkflow
dir_1_playgrounds --> sub_1_0_fastapi_async_client
sub_1_1_fastapi_exception_capture["fastapi-exception-capture (2)"]:::atlasWorkflow
dir_1_playgrounds --> sub_1_1_fastapi_exception_capture
end
repo_root --> dir_1_playgrounds
dir_2_sdk_compliance_adapter["sdk_compliance_adapter (11)"]:::atlasCategory
repo_root --> dir_2_sdk_compliance_adapter
dir_3_examples["examples (1)"]:::atlasCategory
repo_root --> dir_3_examples
sub_0_0_test -.->|"2 deps"| sub_0_more
sub_0_0_test -.->|"1 dep"| sub_0_1_tracing
sub_0_more -.->|"1 dep"| sub_0_1_tracing
Component Details
- UserInfo (
examples/example-ai-instructor/extract.py): DATA_ACCESS_LAYER - root (
playgrounds/fastapi-async-client/main.py): API_ROUTE - capture (
playgrounds/fastapi-async-client/main.py): API_ROUTE - capture_immediate (
playgrounds/fastapi-async-client/main.py): API_ROUTE - identify (
playgrounds/fastapi-async-client/main.py): API_ROUTE - group_identify (
playgrounds/fastapi-async-client/main.py): API_ROUTE - alias (
playgrounds/fastapi-async-client/main.py): API_ROUTE - evaluate_flags (
playgrounds/fastapi-async-client/main.py): API_ROUTE - remote_config (
playgrounds/fastapi-async-client/main.py): API_ROUTE - flush (
playgrounds/fastapi-async-client/main.py): API_ROUTE - test_exception (
playgrounds/fastapi-async-client/main.py): API_ROUTE - root (
playgrounds/fastapi-exception-capture/app.py): API_ROUTE - test_exception (
playgrounds/fastapi-exception-capture/app.py): API_ROUTE - _GatedExporter (
posthog/_metrics_autocapture.py): SERVICE - PostHogTraceExporter (
posthog/ai/otel/exporter.py): SERVICE (deps: SpanExporter) - ModelV2 (
posthog/test/test_utils.py): DATA_ACCESS_LAYER - NestedModel (
posthog/test/test_utils.py): DATA_ACCESS_LAYER - _Parsed (
posthog/test/ai/test_privacy_mode.py): DATA_ACCESS_LAYER (deps: PostHogTraceExporter) - TestPostHogTraceExporter (
posthog/test/ai/otel/test_exporter.py): SERVICE (deps: PostHogTraceExporter) - view (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - privacy_failure (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - failure (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - handled (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - missing (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - capture_event (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - ignored (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - identity (
posthog/test/integrations/test_flask_integration.py): API_ROUTE - view (
posthog/test/integrations/test_flask_spans.py): API_ROUTE - view (
posthog/test/integrations/test_tracing_headers.py): API_ROUTE - Totals (
posthog/test/mcp/test_review_fixes.py): DATA_ACCESS_LAYER - RecordingExporter (
posthog/test/tracing/helpers.py): SERVICE (deps: SpanExporter) - TestContextManager (
posthog/test/tracing/test_span.py): SERVICE - SpanExporter (
posthog/tracing/_export.py): SERVICE - Exporter (
posthog/tracing/_pipeline.py): SERVICE - health (
sdk_compliance_adapter/adapter.py): API_ROUTE - init (
sdk_compliance_adapter/adapter.py): API_ROUTE - capture (
sdk_compliance_adapter/adapter.py): API_ROUTE - capture_ai (
sdk_compliance_adapter/adapter.py): API_ROUTE - identify (
sdk_compliance_adapter/adapter.py): API_ROUTE - flush (
sdk_compliance_adapter/adapter.py): API_ROUTE - get_state (
sdk_compliance_adapter/adapter.py): API_ROUTE - reload_feature_flag_definitions (
sdk_compliance_adapter/adapter.py): API_ROUTE - get_feature_flag (
sdk_compliance_adapter/adapter.py): API_ROUTE - get_feature_flag_payload (
sdk_compliance_adapter/adapter.py): API_ROUTE - reset (
sdk_compliance_adapter/adapter.py): API_ROUTE
6-Dimension Repository Scorecard
- Overall Grade:
F(39.35/100) - Technical Debt Score: 60.65
- Estimated Remediation Effort: 115.70h
| Dimension | Grade | Score | Weight | Details |
|---|---|---|---|---|
| Code Quality | F | 41.50 | 0.20 | avg_cc=2.08, max_cc=24, duplication=82.71%, dead_code=40 |
| Dependency Health | A | 100.00 | 0.15 | dependencies=2418, outdated=0, vulnerable=0, has_lockfile=True |
| Maintainability | F | 37.00 | 0.15 | avg_cognitive=1.52, max_cognitive=57, fitness_violations=3, oversized_files=24 |
| Pipeline Health | F | 0.00 | 0.15 | workflows=12, operational_antipatterns=30, parallel_branches=True |
| Security | F | 0.00 | 0.20 | vulnerabilities=0, secrets=6, pipeline_security_findings=2 |
| Test Coverage | C | 70.00 | 0.15 | coverage=unavailable, ci_test_job=True, test_files_detected=True |
Architecture Fitness & Workspace Boundaries
- [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository duplication_pct (82.71) exceeds policy threshold (15.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cognitive_complexity (57.0) exceeds policy threshold (25.0). - [MEDIUM]
ATRUSS-ARCH-005(COMPLEXITY_THRESHOLD): Repository max_cyclomatic_complexity (24.0) exceeds policy threshold (20.0).
Workspace Packages
- openfeature-provider-posthog (
openfeature-provider, python, uv)
Supply Chain Dependencies, Vulnerabilities & Secrets
- Dependencies Parsed: 2418 | Vulnerabilities: 0 | Secrets: 6
Secret Findings (Redacted)
- [CRITICAL]
ATRUSS-SEC-003atposthog/test/mcp/test_error_properties.py:302(error=ValueError("auth failed for sk-p***REDACTED***"),) - [HIGH]
ATRUSS-SEC-005atposthog/test/test_code_variables.py:532(secret = "n8fK***REDACTED***") - [CRITICAL]
ATRUSS-SEC-004atposthog/test/test_code_variables.py:1214(-----BEGIN ... PRIVATE KEY----- [REDACTED]) - [CRITICAL]
ATRUSS-SEC-004atposthog/test/test_code_variables.py:1215(-----BEGIN ... PRIVATE KEY----- [REDACTED]) - [HIGH]
ATRUSS-SEC-005atposthog/test/test_code_variables.py:1355(secret = "n8fK***REDACTED***") - [HIGH]
ATRUSS-SEC-005atposthog/test/test_utils.py:22(TEST_API_KEY = "kOOl***REDACTED***")
Inventory Sample
anthropic0.72(PyPI,pyproject.toml)anthropic0.80.0(PyPI,examples/example-ai-anthropic/pyproject.toml)anthropic0.87.0(PyPI,examples/example-ai-anthropic/uv.lock)anthropic1.13.0(PyPI,uv.lock)autogen-agentchat0.4.0(PyPI,examples/example-ai-autogen/pyproject.toml)autogen-agentchat0.7.5(PyPI,examples/example-ai-autogen/uv.lock)autogen-ext0.4.0(PyPI,examples/example-ai-autogen/pyproject.toml)autogen-ext0.7.5(PyPI,examples/example-ai-autogen/uv.lock)azure-ai-agents1.2.0b6(PyPI,examples/example-ai-semantic-kernel/pyproject.toml)azure-ai-agents1.2.0b6(PyPI,examples/example-ai-semantic-kernel/uv.lock)backoff1.10.0(PyPI,pyproject.toml)backoff2.2.1(PyPI,uv.lock)boto31.35.0(PyPI,examples/example-ai-aws-bedrock/pyproject.toml)boto31.42.76(PyPI,examples/example-ai-aws-bedrock/uv.lock)celery5.3(PyPI,pyproject.toml)celery5.6.3(PyPI,uv.lock)claude-agent-sdk*(PyPI,examples/example-ai-claude-agent-sdk/requirements.txt)claude-agent-sdk*(PyPI,pyproject.toml)claude-agent-sdk0.2.121(PyPI,uv.lock)coverage*(PyPI,pyproject.toml)coverage7.9.2(PyPI,uv.lock)crewai0.80.0(PyPI,examples/example-ai-crewai/pyproject.toml)crewai0.95.0(PyPI,examples/example-ai-crewai/uv.lock)distro1.5.0(PyPI,pyproject.toml)distro1.9.0(PyPI,uv.lock)django5.2.15(PyPI,pyproject.toml)django5.2.17(PyPI,integration_tests/django5/pyproject.toml)django5.2.17(PyPI,integration_tests/django5/uv.lock)django5.2.17(PyPI,uv.lock)django-stubs*(PyPI,pyproject.toml)- … (+2388 more dependencies)
Section 7: Code-to-Cloud Deployment Traceability
flowchart LR
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
subgraph code_modules["Code Modules"]
mod_benchmarks["benchmarks"]:::atlasCategory
mod_integration_tests_django5["integration_tests/django5"]:::atlasCategory
mod_openfeature_provider["openfeature-provider"]:::atlasCategory
mod_sdk_compliance_adapter["sdk_compliance_adapter"]:::atlasCategory
end
subgraph build_artifacts["Build Artifacts / Containers"]
art_sdk_compliance_adapter_Dockerfile["sdk_compliance_adapter/Dockerfile"]:::atlasWorkflow
art_sdk_compliance_adapter_Dockerfile_v1["sdk_compliance_adapter/Dockerfile.v1"]:::atlasWorkflow
art_sdk_compliance_adapter_docker_compose_yml["sdk_compliance_adapter/docker-compose.yml"]:::atlasWorkflow
end
subgraph ci_jobs["CI/CD Jobs"]
job_benchmarks_yml_benchmark["benchmarks.yml#benchmark"]:::atlasJob
job_ci_yml_django5_integration["ci.yml#django5-integration"]:::atlasJob
job_ci_yml_openfeature_provider["ci.yml#openfeature-provider"]:::atlasJob
job_release_yml_dry_run_testpypi["release.yml#dry-run-testpypi"]:::atlasJob
job_release_yml_version_bump["release.yml#version-bump"]:::atlasJob
job_sdk_compliance_yml_adapter_tests["sdk-compliance.yml#adapter-tests"]:::atlasJob
end
subgraph runtime_envs["Runtime Environments"]
env_Release["Release"]:::atlasTarget
end
job_release_yml_version_bump -->|DEPLOYS_TO| env_Release
mod_benchmarks -->|BUILT_BY| job_benchmarks_yml_benchmark
mod_integration_tests_django5 -->|BUILT_BY| job_ci_yml_django5_integration
mod_openfeature_provider -->|BUILT_BY| job_ci_yml_openfeature_provider
mod_openfeature_provider -->|DEPLOYED_BY| job_release_yml_dry_run_testpypi
mod_openfeature_provider -->|DEPLOYED_BY| job_release_yml_version_bump
mod_sdk_compliance_adapter -->|BUILT_BY| job_sdk_compliance_yml_adapter_tests
mod_sdk_compliance_adapter -->|PACKAGED_BY| art_sdk_compliance_adapter_Dockerfile
mod_sdk_compliance_adapter -->|PACKAGED_BY| art_sdk_compliance_adapter_Dockerfile_v1
mod_sdk_compliance_adapter -->|PACKAGED_BY| art_sdk_compliance_adapter_docker_compose_yml
art_sdk_compliance_adapter_Dockerfile -->|BUILT_BY| job_sdk_compliance_yml_adapter_tests
art_sdk_compliance_adapter_Dockerfile_v1 -->|BUILT_BY| job_sdk_compliance_yml_adapter_tests
art_sdk_compliance_adapter_docker_compose_yml -->|BUILT_BY| job_sdk_compliance_yml_adapter_tests
release.yml#version-bump(ci_job) —[DEPLOYS_TO]—>Release(environment)benchmarks(code_module) —[BUILT_BY]—>benchmarks.yml#benchmark(ci_job)integration_tests/django5(code_module) —[BUILT_BY]—>ci.yml#django5-integration(ci_job)openfeature-provider(code_module) —[BUILT_BY]—>ci.yml#openfeature-provider(ci_job)openfeature-provider(code_module) —[DEPLOYED_BY]—>release.yml#dry-run-testpypi(ci_job)openfeature-provider(code_module) —[DEPLOYED_BY]—>release.yml#version-bump(ci_job)sdk_compliance_adapter(code_module) —[BUILT_BY]—>sdk-compliance.yml#adapter-tests(ci_job)sdk_compliance_adapter(code_module) —[PACKAGED_BY]—>sdk_compliance_adapter/Dockerfile(container)sdk_compliance_adapter(code_module) —[PACKAGED_BY]—>sdk_compliance_adapter/Dockerfile.v1(container)sdk_compliance_adapter(code_module) —[PACKAGED_BY]—>sdk_compliance_adapter/docker-compose.yml(container)sdk_compliance_adapter/Dockerfile(container) —[BUILT_BY]—>sdk-compliance.yml#adapter-tests(ci_job)sdk_compliance_adapter/Dockerfile.v1(container) —[BUILT_BY]—>sdk-compliance.yml#adapter-tests(ci_job)sdk_compliance_adapter/docker-compose.yml(container) —[BUILT_BY]—>sdk-compliance.yml#adapter-tests(ci_job)
CI/CD Pipeline Topology
graph TD;
classDef atlasRoot fill:#004882,stroke:#a3c9ff,stroke-width:2px,color:#d3e4ff
classDef atlasCategory fill:#212428,stroke:#E87A48,stroke-width:1.5px,color:#dfe3eb
classDef atlasWorkflow fill:#1b2026,stroke:#a3c9ff,stroke-width:1.5px,color:#dfe3eb
classDef atlasJob fill:#171c22,stroke:#8d9199,stroke-width:1px,color:#dfe3eb
classDef atlasTarget fill:#005227,stroke:#8bd99b,stroke-width:1.5px,color:#a7f6b6
classDef atlasAlert fill:#93000a,stroke:#ffb4ab,stroke-width:1.5px,color:#ffdad6
classDef atlasMore fill:#252a31,stroke:#8d9199,stroke-dasharray:4 4,color:#c3c6cf
pipeline_root(["PostHog/posthog-python (12 workflows)"]):::atlasRoot
subgraph sg_grp_0_CI___Verification["CI & Verification (5 workflows · 19 jobs)"]
direction TB
subgraph sg_wf_1_Python_SDK_benchmarks["Python SDK benchmarks (2 jobs)"]
direction TB
wf_1_Python_SDK_benchmarks(["Trigger: Python SDK benchmarks"]):::atlasWorkflow
job_1_benchmark["benchmark"]:::atlasJob
job_1_collect["collect"]:::atlasJob
wf_1_Python_SDK_benchmarks --> job_1_benchmark
job_1_benchmark --> job_1_collect
end
pipeline_root --> wf_1_Python_SDK_benchmarks
subgraph sg_wf_3_CI["CI (12 jobs)"]
direction TB
wf_3_CI(["Trigger: CI"]):::atlasWorkflow
job_3_ruff_format["ruff-format"]:::atlasJob
job_3_ruff_lint["ruff-lint"]:::atlasJob
job_3_mypy["mypy"]:::atlasJob
wf_3_CI --> job_3_ruff_format
wf_3_CI --> job_3_ruff_lint
wf_3_CI --> job_3_mypy
end
pipeline_root --> wf_3_CI
subgraph sg_wf_10_SDK_Compliance_Tests["SDK Compliance Tests (3 jobs)"]
direction TB
wf_10_SDK_Compliance_Tests(["Trigger: SDK Compliance Tests"]):::atlasWorkflow
job_10_adapter_tests["adapter-tests"]:::atlasJob
job_10_compliance["compliance"]:::atlasJob
job_10_compliance_v1["compliance-v1"]:::atlasJob
wf_10_SDK_Compliance_Tests --> job_10_adapter_tests
wf_10_SDK_Compliance_Tests --> job_10_compliance
wf_10_SDK_Compliance_Tests --> job_10_compliance_v1
end
pipeline_root --> wf_10_SDK_Compliance_Tests
end
subgraph sg_grp_1_Release___Deploy["Release & Deploy (2 workflows · 9 jobs)"]
direction TB
subgraph sg_wf_8_Release_failure_notification["Release failure notification (1 jobs)"]
direction TB
wf_8_Release_failure_notification(["Trigger: Release failure notification"]):::atlasWorkflow
job_8_notify_failed["notify-failed"]:::atlasJob
wf_8_Release_failure_notification --> job_8_notify_failed
end
pipeline_root --> wf_8_Release_failure_notification
subgraph sg_wf_9_Release["Release (8 jobs)"]
direction TB
wf_9_Release(["Trigger: Release"]):::atlasWorkflow
job_9_check_changesets["check-changesets"]:::atlasJob
job_9_notify_approval_needed["notify-approval-needed"]:::atlasJob
job_9_preserve_slack_thread["preserve-slack-thread"]:::atlasJob
wf_9_Release --> job_9_check_changesets
job_9_check_changesets --> job_9_notify_approval_needed
job_9_notify_approval_needed --> job_9_preserve_slack_thread
end
pipeline_root --> wf_9_Release
end
subgraph sg_grp_2_Scheduled___Manual["Scheduled & Manual (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_5_Generate_references["Generate references (1 jobs)"]
direction TB
wf_5_Generate_references(["Trigger: Generate references"]):::atlasWorkflow
job_5_generate_references["generate-references"]:::atlasJob
wf_5_Generate_references --> job_5_generate_references
end
pipeline_root --> wf_5_Generate_references
subgraph sg_wf_7_PostHog_Upgrade["PostHog Upgrade (1 jobs)"]
direction TB
wf_7_PostHog_Upgrade(["Trigger: PostHog Upgrade"]):::atlasWorkflow
job_7_posthog_upgrade["posthog-upgrade"]:::atlasJob
wf_7_PostHog_Upgrade --> job_7_posthog_upgrade
end
pipeline_root --> wf_7_PostHog_Upgrade
end
subgraph sg_grp_3_Security___Governance["Security & Governance (2 workflows · 2 jobs)"]
direction TB
subgraph sg_wf_4_CodeQL_Advanced["CodeQL Advanced (1 jobs)"]
direction TB
wf_4_CodeQL_Advanced(["Trigger: CodeQL Advanced"]):::atlasWorkflow
job_4_analyze["analyze"]:::atlasJob
wf_4_CodeQL_Advanced --> job_4_analyze
end
pipeline_root --> wf_4_CodeQL_Advanced
subgraph sg_wf_11_Handle_stale_issues_and_PRs["Handle stale issues and PRs (1 jobs)"]
direction TB
wf_11_Handle_stale_issues_and_PRs(["Trigger: Handle stale issues and PRs"]):::atlasWorkflow
job_11_stale["stale"]:::atlasJob
wf_11_Handle_stale_issues_and_PRs --> job_11_stale
end
pipeline_root --> wf_11_Handle_stale_issues_and_PRs
end
subgraph sg_grp_4_Automation___Other["Automation & Other (1 workflows · 1 jobs)"]
direction TB
wf_0_Python_SDK_benchmark_report["Python SDK benchmark report (1 jobs)"]:::atlasWorkflow
pipeline_root --> wf_0_Python_SDK_benchmark_report
end
wf_more["+2 more workflows"]:::atlasMore
pipeline_root --> wf_more6-Dimension Scorecard Breakdown
Code Quality
Weight 20%avg_cc=2.08, max_cc=24, duplication=82.71%, dead_code=40
Security
Weight 20%vulnerabilities=0, secrets=6, pipeline_security_findings=2
Maintainability
Weight 15%avg_cognitive=1.52, max_cognitive=57, fitness_violations=3, oversized_files=24
Test Coverage
Weight 15%coverage=unavailable, ci_test_job=True, test_files_detected=True
Dependency Health
Weight 15%dependencies=2418, outdated=0, vulnerable=0, has_lockfile=True
Pipeline Health
Weight 15%workflows=12, operational_antipatterns=30, parallel_branches=True
Module Complexity & Quality Heatmap
Unreferenced / Dead Code Symbols Preview (40)
on_worker_process_shutdownexamples/celery_integration.py:95feature_flag_definitionsposthog/__init__.py:1153create_counterposthog/_metrics_autocapture.py:423create_up_down_counterposthog/_metrics_autocapture.py:426create_gaugeposthog/_metrics_autocapture.py:432create_observable_counterposthog/_metrics_autocapture.py:435create_observable_up_down_counterposthog/_metrics_autocapture.py:438create_observable_gaugeposthog/_metrics_autocapture.py:441_on_endingposthog/_metrics_autocapture.py:746has_pendingposthog/ai/claude_agent_sdk/processor.py:148_initialize_policyposthog/ai/gemini/_shared.py:126_merge_posthog_paramsposthog/ai/gemini/_shared.py:166Architectural Fitness Rules
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDposthog/client.py:1Repository duplication_pct (82.71) exceeds policy threshold (15.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDposthog/client.py:1Repository max_cognitive_complexity (57.0) exceeds policy threshold (25.0).
ATRUSS-ARCH-005COMPLEXITY_THRESHOLDposthog/client.py:1Repository max_cyclomatic_complexity (24.0) exceeds policy threshold (20.0).
Supply-Chain Dependencies & OSV Vulnerabilities
No known OSV vulnerabilities detected across 2418 parsed dependencies.
Redacted Secret Findings
ATRUSS-SEC-003posthog/test/mcp/test_error_properties.py:302Potential hardcoded API secret key (`sk-...`) detected.
error=ValueError("auth failed for sk-p***REDACTED***"),ATRUSS-SEC-005posthog/test/test_code_variables.py:532High-entropy credential candidate (H=4.89 > 4.5) detected.
secret = "n8fK***REDACTED***"ATRUSS-SEC-004posthog/test/test_code_variables.py:1214Private key material header detected.
-----BEGIN ... PRIVATE KEY----- [REDACTED]ATRUSS-SEC-004posthog/test/test_code_variables.py:1215Private key material header detected.
-----BEGIN ... PRIVATE KEY----- [REDACTED]ATRUSS-SEC-005posthog/test/test_code_variables.py:1355High-entropy credential candidate (H=4.89 > 4.5) detected.
secret = "n8fK***REDACTED***"ATRUSS-SEC-005posthog/test/test_utils.py:22High-entropy credential candidate (H=4.77 > 4.5) detected.
TEST_API_KEY = "kOOl***REDACTED***"Code-to-Cloud & Workspace Packages
Workspace Packages
openfeature-provider