Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

Tokebjerg/Wattson

https://github.com/Tokebjerg/Wattson · scanned 2026-06-16 00:38 UTC (2 months, 1 week ago)

78 raw signals (0 security + 78 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 2 months, 1 week ago · v1 · 61 actionable findings from 1 signal source. 17 repeated signals grouped for readability. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 94.9/100 with 55.6% coverage. It contains 465 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 78 findings — concentrated in quality (45), software (30), frontend (1). Risk profile is low: 0 critical, 0 high, 5 medium. Recommended next step: open the quality layer findings first — that's where the highest-impact wins live.

Showing 49 of 61 actionable findings. 78 raw detector signals were grouped into reader-sized issues. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

medium System graph quality Production readiness conf 1.00 Composite production-readiness gap
Multiple low-cost hardening controls are missing together: license, ci, tests, operator-readme. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation.
Repo hardeningGenerated repo pattern
medium System graph quality Placeholder conf 1.00 Critical user flow still appears backed by mock or placeholder data
A payment/auth/admin/order/billing-style flow contains mock, fake, TODO, dummy, or placeholder markers in runtime source. In the Fable corpus this is a high-leverage completeness smell: the app can look finished while the money, identity, or tenant flow is still scaffolded.
Mock dataCritical flowGenerated repo pattern
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
medium System graph cicd CI/CD security conf 1.00 No CI/CD pipelines detected
No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints.
CI/CD securityCoverage
medium System graph quality Tests conf 1.00 Very low test-to-source ratio
1 test file(s) for 24 source file(s) (ratio 0.04). Consider adding integration or unit tests for critical paths.
Coverage
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 50 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 13 places
Functions with the same first-5-line body hash: sim/wattson_sim.py:at, sim/wattson_sim.py:at, sim/wattson_sim.py:at, sim/wattson_sim.py:at This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate.
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: custom_components/wattson/select.py:extra_state_attributes, custom_components/wattson/select.py:extra_state_attributes This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or d…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 2 occurrences Near-duplicate function bodies in 3 places
Functions with the same first-5-line body hash: custom_components/wattson/button.py:async_press, custom_components/wattson/button.py:async_press, custom_components/wattson/button.py:async_press This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code…
2 occurrences
repo-level (2 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 4 places
Functions with the same first-5-line body hash: custom_components/wattson/sensor.py:extra_state_attributes, custom_components/wattson/sensor.py:extra_state_attributes, custom_components/wattson/sensor.py:extra_state_attributes, custom_components/wattson/sensor.py:extra_state_attributes This is *th…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: sim/wattson_sim.py:get, sim/wattson_sim.py:get, sim/wattson_sim.py:get, sim/wattson_sim.py:get This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're sepa…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 6 places
Functions with the same first-5-line body hash: custom_components/wattson/sensor.py:native_value, custom_components/wattson/sensor.py:native_value, custom_components/wattson/sensor.py:native_value, custom_components/wattson/sensor.py:native_value This is *the* AI-coder failure mode (4× more duplic…
duplicatesduplication
low System graph quality Integrity conf 1.00 5 occurrences Near-duplicate function bodies in 7 places
Functions with the same first-5-line body hash: custom_components/wattson/select.py:current_option, custom_components/wattson/select.py:current_option, custom_components/wattson/select.py:current_option, custom_components/wattson/select.py:current_option This is *the* AI-coder failure mode (4× mor…
5 occurrences
repo-level (5 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 3 occurrences Near-duplicate function bodies in 8 places
Functions with the same first-5-line body hash: custom_components/wattson/number.py:native_value, custom_components/wattson/number.py:native_value, custom_components/wattson/number.py:native_value, custom_components/wattson/number.py:native_value This is *the* AI-coder failure mode (4× more duplic…
3 occurrences
repo-level (3 hits)
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 9 places
Functions with the same first-5-line body hash: sim/wattson_sim.py:test_a2_planning, sim/wattson_sim.py:test_b_profiles, sim/wattson_sim.py:test_d_learning, sim/wattson_sim.py:test_self_consumption_schedule This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://…
duplicatesduplication
low System graph quality License conf 1.00 No license file detected
No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake.
Repo hardeningGenerated repo pattern
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `bp_legacy` in sim/wattson_sim.py:813
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `w_old` in sim/wattson_analyze.py:44
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph quality Integrity conf 1.00 Old/deprecated-named symbol `w_old` in sim/wattson_backtest.py:335
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
old markerDead code
low System graph software Dead code conf 1.00 Possibly dead Python function: async_get_config_entry_diagnostics
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/diagnostics.py:14
low System graph software Dead code conf 1.00 Possibly dead Python function: async_press
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/button.py:55
low System graph software Dead code conf 1.00 Possibly dead Python function: async_select_option
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/select.py:206
low System graph software Dead code conf 1.00 Possibly dead Python function: async_set_native_value
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/number.py:276
low System graph software Dead code conf 1.00 Possibly dead Python function: async_setup
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/__init__.py:31
low System graph software Dead code conf 1.00 7 occurrences Possibly dead Python function: async_setup_entry
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
7 files, 7 locations
custom_components/wattson/__init__.py:80
custom_components/wattson/binary_sensor.py:67
custom_components/wattson/button.py:13
custom_components/wattson/number.py:15
custom_components/wattson/select.py:40
custom_components/wattson/sensor.py:211
custom_components/wattson/switch.py:16
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_battery
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:511
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_ev_settings
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:523
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_init
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:492
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_mapping
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:535
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_runtime
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:499
low System graph software Dead code conf 1.00 Possibly dead Python function: async_step_user
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/config_flow.py:330
low System graph software Dead code conf 1.00 Possibly dead Python function: async_turn_off
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/switch.py:172
low System graph software Dead code conf 1.00 Possibly dead Python function: async_turn_on
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/switch.py:168
low System graph software Dead code conf 1.00 Possibly dead Python function: async_unload_entry
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
custom_components/wattson/__init__.py:91
low System graph software Dead code conf 1.00 Possibly dead Python function: test_a2_planning
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:708
low System graph software Dead code conf 1.00 Possibly dead Python function: test_b_profiles
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:826
low System graph software Dead code conf 1.00 Possibly dead Python function: test_c_smartcharge
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:951
low System graph software Dead code conf 1.00 Possibly dead Python function: test_d_learning
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:1112
low System graph software Dead code conf 1.00 Possibly dead Python function: test_f_savings
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:1168
low System graph software Dead code conf 1.00 Possibly dead Python function: test_horizon
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:482
low System graph software Dead code conf 1.00 Possibly dead Python function: test_self_consumption_schedule
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:1197
low System graph software Dead code conf 1.00 Possibly dead Python function: test_write_verification
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:630
low System graph software Dead code conf 1.00 Possibly dead Python function: wrapped
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
sim/wattson_sim.py:307
low System graph quality Docs conf 1.00 README lacks setup or run instructions
A README exists, but it does not contain common install/setup/run markers. This matches a frequent generated-code pattern: UI is present, operational handoff is thin.
ReadmeRepo hardeningGenerated repo pattern
low System graph quality Provenance conf 1.00 Shallow git history limits provenance confidence
The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence.
Git historyGenerated repo pattern
low System graph quality Integrity conf 1.00 Stub function `get` (body is just `pass`/`return`) — sim/wattson_sim.py:1038
Likely an AI scaffold that was never filled in. Remove or implement.
Empty handlerDead code
low System graph quality Complexity conf 1.00 Very large file: custom_components/wattson/coordinator.py (1231 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: custom_components/wattson/planner.py (2175 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: sim/wattson_sim.py (2729 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/5a957a60-a234-43b5-ae30-3c7708b6851a/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/5a957a60-a234-43b5-ae30-3c7708b6851a/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.