{"version": "2.1.0", "$schema": "https://json.schemastore.org/sarif-2.1.0.json", "runs": [{"tool": {"driver": {"name": "Repobility", "informationUri": "https://repobility.com", "rules": [{"id": "scanner-a4eae4c694005e92", "name": "Possibly dead Python function: get_current_hour_command_v2", "shortDescription": {"text": "Possibly dead Python function: get_current_hour_command_v2"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-79139844b03ec990", "name": "Possibly dead Python function: cache_delete_pattern", "shortDescription": {"text": "Possibly dead Python function: cache_delete_pattern"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-28f29fc477db9db8", "name": "Possibly dead Python function: key_weather", "shortDescription": {"text": "Possibly dead Python function: key_weather"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-8cce37e256727a91", "name": "Possibly dead Python function: key_tariff", "shortDescription": {"text": "Possibly dead Python function: key_tariff"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-4d849037ce6043bf", "name": "Possibly dead Python function: key_model", "shortDescription": {"text": "Possibly dead Python function: key_model"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-eecd6ed14a03822f", "name": "Possibly dead Python function: require_super_admin", "shortDescription": {"text": "Possibly dead Python function: require_super_admin"}, "fullDescription": {"text": "No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler."}, "properties": {"scanner": "scanner-primary", "layer": "software", "severity": "low", "confidence": 1.0}}, {"id": "scanner-e1ddd7f3995b4b08", "name": "Insecure pattern 'local_storage_auth_token' in frontend/app/(auth)/login/page.tsx:19", "shortDescription": {"text": "Insecure pattern 'local_storage_auth_token' in frontend/app/(auth)/login/page.tsx:19"}, "fullDescription": {"text": "Found a known-risky pattern (local_storage_auth_token). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-12b1336325222ba4", "name": "Insecure pattern 'local_storage_auth_token' in frontend/lib/api.ts:57", "shortDescription": {"text": "Insecure pattern 'local_storage_auth_token' in frontend/lib/api.ts:57"}, "fullDescription": {"text": "Found a known-risky pattern (local_storage_auth_token). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-ea3b5e389d8c9c0f", "name": "Low test-to-source ratio", "shortDescription": {"text": "Low test-to-source ratio"}, "fullDescription": {"text": "9 tests / 78 src (ratio 0.12)."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-141b30a41e03817b", "name": "No license file detected", "shortDescription": {"text": "No license file detected"}, "fullDescription": {"text": "No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ab5d313dda8e5f9", "name": "Debug logging residue appears in source files", "shortDescription": {"text": "Debug logging residue appears in source files"}, "fullDescription": {"text": "Found 19 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-72b2a6250083a784", "name": "Placeholder or mock-heavy implementation detected", "shortDescription": {"text": "Placeholder or mock-heavy implementation detected"}, "fullDescription": {"text": "Found 12 placeholder/mock markers across 7 source files. This often means the repo looks complete while core flows still use generated scaffolding or fake data."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-2d0c7b7ab8f8aacf", "name": "Critical user flow still appears backed by mock or placeholder data", "shortDescription": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-749d4bc1bd66df5f", "name": "Agent instructions exist but release-hardening basics are missing", "shortDescription": {"text": "Agent instructions exist but release-hardening basics are missing"}, "fullDescription": {"text": "AI-coder instruction files were found, but the repo is missing license. Treat this as a contract gap: the agent is guided, but the generated output is not yet guarded by the controls that make it repeatable."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-ea8f3013f588db25", "name": "Shallow git history limits provenance confidence", "shortDescription": {"text": "Shallow git history limits provenance confidence"}, "fullDescription": {"text": "The repository is a shallow clone. Origin/evolution analysis cannot distinguish fresh generation, imported legacy code, or long-lived human code with high confidence."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-8424db9c75e04ba4", "name": "Very short observed git history", "shortDescription": {"text": "Very short observed git history"}, "fullDescription": {"text": "The repo has multiple source files but two or fewer visible commits. This is not a failure by itself, but it lowers confidence in evolution-based diagnosis."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-17d866d91a7c451e", "name": "Agent instruction/config may expose a secret: CLAUDE.md", "shortDescription": {"text": "Agent instruction/config may expose a secret: CLAUDE.md"}, "fullDescription": {"text": "Agent-facing files are routinely pasted into LLM/tool contexts. Move literal tokens, keys, and passwords into a secret manager or document them as placeholders only."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-14c1688742430c82", "name": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/components/dashboard/SafetyBanner.tsx:19", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/components/dashboard/SafetyBanner.tsx:19"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-a6909e615527d93f", "name": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/bills/page.tsx:57", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/bills/page.tsx:57"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-23da1580e18453de", "name": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/forecast/page.tsx:18", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/forecast/page.tsx:18"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-0f2a2780782ff13f", "name": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/optimize/page.tsx:18", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/optimize/page.tsx:18"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-3be560b07dd207d3", "name": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/lib/api.ts:18", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/lib/api.ts:18"}, "fullDescription": {"text": "Bare `fetch(...)` will throw an unhandled rejection on network failure. Wrap in try/catch, attach a `.catch(...)`, or pass an AbortSignal with a timeout."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-373f80d60a5b6a60", "name": "Legacy-named symbol `optimizer_v2` in backend/tests/test_optimizer_v2.py:3", "shortDescription": {"text": "Legacy-named symbol `optimizer_v2` in backend/tests/test_optimizer_v2.py:3"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-4fbb179a4c753d6f", "name": "Legacy-named symbol `optimizer_v2` in backend/api/v1/optimize.py:20", "shortDescription": {"text": "Legacy-named symbol `optimizer_v2` in backend/api/v1/optimize.py:20"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-0d4df6ab564dea0a", "name": "Commented-code block (5 lines) in backend/api/v1/sim.py:306", "shortDescription": {"text": "Commented-code block (5 lines) in backend/api/v1/sim.py:306"}, "fullDescription": {"text": "A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-5cbdbc8278043c38", "name": "Legacy-named symbol `optimizer_v2` in backend/services/shadow_savings.py:15", "shortDescription": {"text": "Legacy-named symbol `optimizer_v2` in backend/services/shadow_savings.py:15"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-60badd310d617f2f", "name": "Legacy-named symbol `optimize_dispatch_v2` in backend/services/optimizer_v2.py:68", "shortDescription": {"text": "Legacy-named symbol `optimize_dispatch_v2` in backend/services/optimizer_v2.py:68"}, "fullDescription": {"text": "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."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-250f57e8a1dbd3c5", "name": "4 env vars used in code but missing from .env.example", "shortDescription": {"text": "4 env vars used in code but missing from .env.example"}, "fullDescription": {"text": "Drift between code and config docs. The first few: `PROD_URL`, `RAILWAY_API_TOKEN`, `RAILWAY_ENVIRONMENT_ID`, `RAILWAY_SERVICE_ID`. Add them (with a placeholder/comment) to .env.example so onboarding doesn't break."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "info", "confidence": 1.0}}, {"id": "scanner-33a6b62e30ce7ab4", "name": "Near-duplicate function bodies in 6 places", "shortDescription": {"text": "Near-duplicate function bodies in 6 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\nbackend/api/v1/bills.py:list_bills, backend/api/v1/reports.py:list_reports, backend/api/v1/grid.py:get_grid_state, backend/api/v1/grid.py:get_loads\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-be46ea126aa5d8dc", "name": "Near-duplicate function bodies in 3 places", "shortDescription": {"text": "Near-duplicate function bodies in 3 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\nbackend/api/v1/optimize.py:run_optimizer, backend/api/v1/safety.py:safety_status, backend/api/v1/safety.py:clear_safe_mode\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-2c04133e54348533", "name": "Near-duplicate function bodies in 2 places", "shortDescription": {"text": "Near-duplicate function bodies in 2 places"}, "fullDescription": {"text": "Functions with the same first-5-line body hash:\nbackend/repositories/grid_repo.py:get_loads, backend/repositories/grid_repo.py:get_load\n\nThis is *the* AI-coder failure mode (4\u00d7 more duplication in vibe-coded repos \u2014 see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separate."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "low", "confidence": 1.0}}, {"id": "scanner-aaae249b23cc7b04", "name": "FastAPI POST `refresh` without auth dependency \u2014 backend/api/v1/auth.py:97", "shortDescription": {"text": "FastAPI POST `refresh` without auth dependency \u2014 backend/api/v1/auth.py:97"}, "fullDescription": {"text": "`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-a3d3c8c095d80e5d", "name": "FastAPI POST `sim_ingest` without auth dependency \u2014 backend/api/v1/sim.py:276", "shortDescription": {"text": "FastAPI POST `sim_ingest` without auth dependency \u2014 backend/api/v1/sim.py:276"}, "fullDescription": {"text": "`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-17a3e615b5c369c4", "name": "FastAPI POST `set_commands` without auth dependency \u2014 backend/api/v1/sim.py:380", "shortDescription": {"text": "FastAPI POST `set_commands` without auth dependency \u2014 backend/api/v1/sim.py:380"}, "fullDescription": {"text": "`@router.post` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-2d9be983e8a0ab4e", "name": "FastAPI PUT `set_commands_put` without auth dependency \u2014 backend/api/v1/sim.py:402", "shortDescription": {"text": "FastAPI PUT `set_commands_put` without auth dependency \u2014 backend/api/v1/sim.py:402"}, "fullDescription": {"text": "`@router.put` decorator with no `Depends(get_current_user)` or auth-shaped dependency in its signature. Mutating endpoints should require authentication unless explicitly public."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-5baa8971ebe192a1", "name": "Unused endpoint: GET /", "shortDescription": {"text": "Unused endpoint: GET /"}, "fullDescription": {"text": "`backend/main.py` declares `GET /` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-5ae330e9218bff22", "name": "Unused endpoint: GET /facilities/{facility_id}/bills/{bill_id}/file", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/bills/{bill_id}/file"}, "fullDescription": {"text": "`backend/api/v1/bills.py` declares `GET /facilities/{facility_id}/bills/{bill_id}/file` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-dfbec7333c29e8ca", "name": "Unused endpoint: GET /facilities/{facility_id}/forecast/24h", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/forecast/24h"}, "fullDescription": {"text": "`backend/api/v1/forecast.py` declares `GET /facilities/{facility_id}/forecast/24h` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3c31436270c9acb2", "name": "Unused endpoint: POST /facilities/{facility_id}/reports/weekly", "shortDescription": {"text": "Unused endpoint: POST /facilities/{facility_id}/reports/weekly"}, "fullDescription": {"text": "`backend/api/v1/reports.py` declares `POST /facilities/{facility_id}/reports/weekly` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-4649ec88f6b5b14e", "name": "Unused endpoint: GET /facilities/{facility_id}/reports", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/reports"}, "fullDescription": {"text": "`backend/api/v1/reports.py` declares `GET /facilities/{facility_id}/reports` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-9290629c8e8f3fdb", "name": "Unused endpoint: POST /facilities/{facility_id}/grid/reconnect", "shortDescription": {"text": "Unused endpoint: POST /facilities/{facility_id}/grid/reconnect"}, "fullDescription": {"text": "`backend/api/v1/grid.py` declares `POST /facilities/{facility_id}/grid/reconnect` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-afdcc273252e320a", "name": "Unused endpoint: POST /facilities/{facility_id}/grid/loads/shed", "shortDescription": {"text": "Unused endpoint: POST /facilities/{facility_id}/grid/loads/shed"}, "fullDescription": {"text": "`backend/api/v1/grid.py` declares `POST /facilities/{facility_id}/grid/loads/shed` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-9b46861040798611", "name": "Unused endpoint: GET /facilities/{facility_id}/grid/audit", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/grid/audit"}, "fullDescription": {"text": "`backend/api/v1/grid.py` declares `GET /facilities/{facility_id}/grid/audit` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-b36892106ecdc9aa", "name": "Unused endpoint: POST /auth/refresh", "shortDescription": {"text": "Unused endpoint: POST /auth/refresh"}, "fullDescription": {"text": "`backend/api/v1/auth.py` declares `POST /auth/refresh` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-e4eab6f5516a6484", "name": "Unused endpoint: POST /facilities/{facility_id}/ingest", "shortDescription": {"text": "Unused endpoint: POST /facilities/{facility_id}/ingest"}, "fullDescription": {"text": "`backend/api/v1/readings.py` declares `POST /facilities/{facility_id}/ingest` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-d7c29d9a28e701bc", "name": "Unused endpoint: GET /facilities/{facility_id}/history/csv", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/history/csv"}, "fullDescription": {"text": "`backend/api/v1/readings.py` declares `GET /facilities/{facility_id}/history/csv` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-e61dbd0e7ef2b84e", "name": "Unused endpoint: GET /facilities/{facility_id}/alerts", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/alerts"}, "fullDescription": {"text": "`backend/api/v1/alerts.py` declares `GET /facilities/{facility_id}/alerts` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-66d02cbd86053e23", "name": "Unused endpoint: GET /facilities/{facility_id}/solar/health", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/solar/health"}, "fullDescription": {"text": "`backend/api/v1/alerts.py` declares `GET /facilities/{facility_id}/solar/health` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-d852712503bb70fb", "name": "Unused endpoint: GET /facilities/{facility_id}/optimize", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/optimize"}, "fullDescription": {"text": "`backend/api/v1/optimize.py` declares `GET /facilities/{facility_id}/optimize` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-365eb349d36278dd", "name": "Unused endpoint: POST /facilities/", "shortDescription": {"text": "Unused endpoint: POST /facilities/"}, "fullDescription": {"text": "`backend/api/v1/facilities.py` declares `POST /facilities/` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-be0e7febc331b1c4", "name": "Unused endpoint: DELETE /facilities/{facility_id}", "shortDescription": {"text": "Unused endpoint: DELETE /facilities/{facility_id}"}, "fullDescription": {"text": "`backend/api/v1/facilities.py` declares `DELETE /facilities/{facility_id}` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ffb5950d3bfa282e", "name": "Unused endpoint: GET /facilities/{facility_id}/safety/status", "shortDescription": {"text": "Unused endpoint: GET /facilities/{facility_id}/safety/status"}, "fullDescription": {"text": "`backend/api/v1/safety.py` declares `GET /facilities/{facility_id}/safety/status` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-69281f93d0ae8d09", "name": "Unused endpoint: POST /facilities/{facility_id}/safety/clear", "shortDescription": {"text": "Unused endpoint: POST /facilities/{facility_id}/safety/clear"}, "fullDescription": {"text": "`backend/api/v1/safety.py` declares `POST /facilities/{facility_id}/safety/clear` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-bd14d0580c9c0511", "name": "Unused endpoint: POST /api/v1/ingest", "shortDescription": {"text": "Unused endpoint: POST /api/v1/ingest"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `POST /api/v1/ingest` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-f8f80afa5ab04878", "name": "Unused endpoint: GET /api/v1/commands/latest", "shortDescription": {"text": "Unused endpoint: GET /api/v1/commands/latest"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `GET /api/v1/commands/latest` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-9272511692149460", "name": "Unused endpoint: POST /api/v1/commands", "shortDescription": {"text": "Unused endpoint: POST /api/v1/commands"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `POST /api/v1/commands` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-fd199b7d49653da4", "name": "Unused endpoint: PUT /api/v1/commands", "shortDescription": {"text": "Unused endpoint: PUT /api/v1/commands"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `PUT /api/v1/commands` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-b86376ce85dfa04e", "name": "Unused endpoint: GET /api/v1/forecast", "shortDescription": {"text": "Unused endpoint: GET /api/v1/forecast"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `GET /api/v1/forecast` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-3ea2c6d59b58477c", "name": "Unused endpoint: GET /api/v1/telemetry/latest", "shortDescription": {"text": "Unused endpoint: GET /api/v1/telemetry/latest"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `GET /api/v1/telemetry/latest` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ba8727188969a8a0", "name": "Unused endpoint: POST /api/v1/devices", "shortDescription": {"text": "Unused endpoint: POST /api/v1/devices"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `POST /api/v1/devices` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-73cdeccaa8e97ac1", "name": "Unused endpoint: GET /api/v1/devices", "shortDescription": {"text": "Unused endpoint: GET /api/v1/devices"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `GET /api/v1/devices` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-ca013141f1101502", "name": "Unused endpoint: DELETE /api/v1/devices/{key_id}", "shortDescription": {"text": "Unused endpoint: DELETE /api/v1/devices/{key_id}"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `DELETE /api/v1/devices/{key_id}` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}, {"id": "scanner-eab7518cde002d3b", "name": "Unused endpoint: GET /api/v1/edge/savings", "shortDescription": {"text": "Unused endpoint: GET /api/v1/edge/savings"}, "fullDescription": {"text": "`backend/api/v1/sim.py` declares `GET /api/v1/edge/savings` but no frontend code we scanned calls it. This is fine if the endpoint serves external clients (mobile app, third-party, server-side webhooks). Otherwise it's dead code \u2014 consider removing or documenting who consumes it."}, "properties": {"scanner": "scanner-primary", "layer": "api", "severity": "low", "confidence": 1.0}}]}}, "automationDetails": {"id": "repobility/19431"}, "properties": {"repository": "shayanmondal122005-code/ai-energy-management-industrial", "repoUrl": "https://github.com/shayanmondal122005-code/ai-energy-management-industrial", "branch": "main"}, "results": [{"ruleId": "scanner-a4eae4c694005e92", "level": "note", "message": {"text": "Possibly dead Python function: get_current_hour_command_v2"}, "properties": {"repobilityId": "a0e2f7563cbd9425", "scanner": "scanner-primary", "fingerprint": "a4eae4c694005e92", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/services/optimizer_v2.py:274"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-79139844b03ec990", "level": "note", "message": {"text": "Possibly dead Python function: cache_delete_pattern"}, "properties": {"repobilityId": "47b28b70f92c9b4f", "scanner": "scanner-primary", "fingerprint": "79139844b03ec990", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/core/cache.py:68"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-28f29fc477db9db8", "level": "note", "message": {"text": "Possibly dead Python function: key_weather"}, "properties": {"repobilityId": "c4c6e89d560795d3", "scanner": "scanner-primary", "fingerprint": "28f29fc477db9db8", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/core/cache.py:111"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-8cce37e256727a91", "level": "note", "message": {"text": "Possibly dead Python function: key_tariff"}, "properties": {"repobilityId": "1c7689a67adade1e", "scanner": "scanner-primary", "fingerprint": "8cce37e256727a91", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/core/cache.py:115"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-4d849037ce6043bf", "level": "note", "message": {"text": "Possibly dead Python function: key_model"}, "properties": {"repobilityId": "79dc8315b3b1b4be", "scanner": "scanner-primary", "fingerprint": "4d849037ce6043bf", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/core/cache.py:119"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-eecd6ed14a03822f", "level": "note", "message": {"text": "Possibly dead Python function: require_super_admin"}, "properties": {"repobilityId": "074b0ccaba355f53", "scanner": "scanner-primary", "fingerprint": "eecd6ed14a03822f", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/core/security.py:90"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-e1ddd7f3995b4b08", "level": "warning", "message": {"text": "Insecure pattern 'local_storage_auth_token' in frontend/app/(auth)/login/page.tsx:19"}, "properties": {"repobilityId": "7120f853bcd368b1", "scanner": "scanner-primary", "fingerprint": "e1ddd7f3995b4b08", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "local_storage_auth_token"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "frontend/app/(auth)/login/page.tsx"}, "region": {"startLine": 19}}}]}, {"ruleId": "scanner-12b1336325222ba4", "level": "warning", "message": {"text": "Insecure pattern 'local_storage_auth_token' in frontend/lib/api.ts:57"}, "properties": {"repobilityId": "0dff2e79fbe40699", "scanner": "scanner-primary", "fingerprint": "12b1336325222ba4", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "local_storage_auth_token"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "frontend/lib/api.ts"}, "region": {"startLine": 57}}}]}, {"ruleId": "scanner-ea3b5e389d8c9c0f", "level": "note", "message": {"text": "Low test-to-source ratio"}, "properties": {"repobilityId": "ef7b2552cc00a375", "scanner": "scanner-primary", "fingerprint": "ea3b5e389d8c9c0f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["tests"]}}, {"ruleId": "scanner-141b30a41e03817b", "level": "note", "message": {"text": "No license file detected"}, "properties": {"repobilityId": "23bc89d6348364a0", "scanner": "scanner-primary", "fingerprint": "141b30a41e03817b", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["license", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "eac7b7e0469a801e", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-72b2a6250083a784", "level": "warning", "message": {"text": "Placeholder or mock-heavy implementation detected"}, "properties": {"repobilityId": "49e4ca5dc65dce59", "scanner": "scanner-primary", "fingerprint": "72b2a6250083a784", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "incomplete", "generated-repo-pattern"]}}, {"ruleId": "scanner-2d0c7b7ab8f8aacf", "level": "warning", "message": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "properties": {"repobilityId": "46ebc31ca3f66f30", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-749d4bc1bd66df5f", "level": "warning", "message": {"text": "Agent instructions exist but release-hardening basics are missing"}, "properties": {"repobilityId": "7a0c0fd3613616d2", "scanner": "scanner-primary", "fingerprint": "749d4bc1bd66df5f", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["agent-instructions", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "3c7368eef8ec84bb", "scanner": "scanner-primary", "fingerprint": "ea8f3013f588db25", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-8424db9c75e04ba4", "level": "none", "message": {"text": "Very short observed git history"}, "properties": {"repobilityId": "5f7108ed298295ff", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-17d866d91a7c451e", "level": "error", "message": {"text": "Agent instruction/config may expose a secret: CLAUDE.md"}, "properties": {"repobilityId": "ccce5984e58a48f0", "scanner": "scanner-primary", "fingerprint": "17d866d91a7c451e", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["agent-instructions", "secrets", "claude_instruction"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "CLAUDE.md"}, "region": {"startLine": 14}}}]}, {"ruleId": "scanner-14c1688742430c82", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/components/dashboard/SafetyBanner.tsx:19"}, "properties": {"repobilityId": "1b75e54961ff6e3f", "scanner": "scanner-primary", "fingerprint": "14c1688742430c82", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-a6909e615527d93f", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/bills/page.tsx:57"}, "properties": {"repobilityId": "10000ceb874b7f85", "scanner": "scanner-primary", "fingerprint": "a6909e615527d93f", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-23da1580e18453de", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/forecast/page.tsx:18"}, "properties": {"repobilityId": "9f84a51947606d2b", "scanner": "scanner-primary", "fingerprint": "23da1580e18453de", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-0f2a2780782ff13f", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/app/(dashboard)/optimize/page.tsx:18"}, "properties": {"repobilityId": "1fd4f712457be63d", "scanner": "scanner-primary", "fingerprint": "0f2a2780782ff13f", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-3be560b07dd207d3", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 frontend/lib/api.ts:18"}, "properties": {"repobilityId": "75260ec3e8896bf4", "scanner": "scanner-primary", "fingerprint": "3be560b07dd207d3", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-373f80d60a5b6a60", "level": "note", "message": {"text": "Legacy-named symbol `optimizer_v2` in backend/tests/test_optimizer_v2.py:3"}, "properties": {"repobilityId": "30f02d4e3f562e85", "scanner": "scanner-primary", "fingerprint": "373f80d60a5b6a60", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-4fbb179a4c753d6f", "level": "note", "message": {"text": "Legacy-named symbol `optimizer_v2` in backend/api/v1/optimize.py:20"}, "properties": {"repobilityId": "eb4c139e40493878", "scanner": "scanner-primary", "fingerprint": "4fbb179a4c753d6f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-0d4df6ab564dea0a", "level": "none", "message": {"text": "Commented-code block (5 lines) in backend/api/v1/sim.py:306"}, "properties": {"repobilityId": "90fb1d8cbf42fe45", "scanner": "scanner-primary", "fingerprint": "0d4df6ab564dea0a", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-5cbdbc8278043c38", "level": "note", "message": {"text": "Legacy-named symbol `optimizer_v2` in backend/services/shadow_savings.py:15"}, "properties": {"repobilityId": "1fca05c93051b63d", "scanner": "scanner-primary", "fingerprint": "5cbdbc8278043c38", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-60badd310d617f2f", "level": "note", "message": {"text": "Legacy-named symbol `optimize_dispatch_v2` in backend/services/optimizer_v2.py:68"}, "properties": {"repobilityId": "433b0c9be319377e", "scanner": "scanner-primary", "fingerprint": "60badd310d617f2f", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-250f57e8a1dbd3c5", "level": "none", "message": {"text": "4 env vars used in code but missing from .env.example"}, "properties": {"repobilityId": "57584f22b735b5ee", "scanner": "scanner-primary", "fingerprint": "250f57e8a1dbd3c5", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "config-drift"]}}, {"ruleId": "scanner-33a6b62e30ce7ab4", "level": "note", "message": {"text": "Near-duplicate function bodies in 6 places"}, "properties": {"repobilityId": "f4dec42b8f8b823b", "scanner": "scanner-primary", "fingerprint": "33a6b62e30ce7ab4", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-be46ea126aa5d8dc", "level": "note", "message": {"text": "Near-duplicate function bodies in 3 places"}, "properties": {"repobilityId": "4aec2b0115cf6757", "scanner": "scanner-primary", "fingerprint": "be46ea126aa5d8dc", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "cc3d647cc452f397", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-aaae249b23cc7b04", "level": "error", "message": {"text": "FastAPI POST `refresh` without auth dependency \u2014 backend/api/v1/auth.py:97"}, "properties": {"repobilityId": "393dfb9214a54782", "scanner": "scanner-primary", "fingerprint": "aaae249b23cc7b04", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/api/v1/auth.py"}, "region": {"startLine": 97}}}]}, {"ruleId": "scanner-a3d3c8c095d80e5d", "level": "error", "message": {"text": "FastAPI POST `sim_ingest` without auth dependency \u2014 backend/api/v1/sim.py:276"}, "properties": {"repobilityId": "aeece23c26fba5b3", "scanner": "scanner-primary", "fingerprint": "a3d3c8c095d80e5d", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/api/v1/sim.py"}, "region": {"startLine": 276}}}]}, {"ruleId": "scanner-17a3e615b5c369c4", "level": "error", "message": {"text": "FastAPI POST `set_commands` without auth dependency \u2014 backend/api/v1/sim.py:380"}, "properties": {"repobilityId": "c3b309427d4f4742", "scanner": "scanner-primary", "fingerprint": "17a3e615b5c369c4", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/api/v1/sim.py"}, "region": {"startLine": 380}}}]}, {"ruleId": "scanner-2d9be983e8a0ab4e", "level": "error", "message": {"text": "FastAPI PUT `set_commands_put` without auth dependency \u2014 backend/api/v1/sim.py:402"}, "properties": {"repobilityId": "d3e296aa1c921303", "scanner": "scanner-primary", "fingerprint": "2d9be983e8a0ab4e", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/api/v1/sim.py"}, "region": {"startLine": 402}}}]}, {"ruleId": "scanner-5baa8971ebe192a1", "level": "note", "message": {"text": "Unused endpoint: GET /"}, "properties": {"repobilityId": "9266ee3970fba636", "scanner": "scanner-primary", "fingerprint": "5baa8971ebe192a1", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-5ae330e9218bff22", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/bills/{bill_id}/file"}, "properties": {"repobilityId": "5f56ee6c692c8de4", "scanner": "scanner-primary", "fingerprint": "5ae330e9218bff22", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-dfbec7333c29e8ca", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/forecast/24h"}, "properties": {"repobilityId": "f8c033f6f392b098", "scanner": "scanner-primary", "fingerprint": "dfbec7333c29e8ca", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-3c31436270c9acb2", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/{facility_id}/reports/weekly"}, "properties": {"repobilityId": "6df9ddde76be153d", "scanner": "scanner-primary", "fingerprint": "3c31436270c9acb2", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-4649ec88f6b5b14e", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/reports"}, "properties": {"repobilityId": "e86e01801bd4aada", "scanner": "scanner-primary", "fingerprint": "4649ec88f6b5b14e", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-9290629c8e8f3fdb", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/{facility_id}/grid/reconnect"}, "properties": {"repobilityId": "58aaee13bc7f649b", "scanner": "scanner-primary", "fingerprint": "9290629c8e8f3fdb", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-afdcc273252e320a", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/{facility_id}/grid/loads/shed"}, "properties": {"repobilityId": "ed40e19d31d0c71b", "scanner": "scanner-primary", "fingerprint": "afdcc273252e320a", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-9b46861040798611", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/grid/audit"}, "properties": {"repobilityId": "b89f485d55c1ec0d", "scanner": "scanner-primary", "fingerprint": "9b46861040798611", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-b36892106ecdc9aa", "level": "note", "message": {"text": "Unused endpoint: POST /auth/refresh"}, "properties": {"repobilityId": "7f5323bb72cf1a06", "scanner": "scanner-primary", "fingerprint": "b36892106ecdc9aa", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-e4eab6f5516a6484", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/{facility_id}/ingest"}, "properties": {"repobilityId": "ca475b4d919a05fc", "scanner": "scanner-primary", "fingerprint": "e4eab6f5516a6484", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-d7c29d9a28e701bc", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/history/csv"}, "properties": {"repobilityId": "e1a75d0b8f2f1184", "scanner": "scanner-primary", "fingerprint": "d7c29d9a28e701bc", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-e61dbd0e7ef2b84e", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/alerts"}, "properties": {"repobilityId": "10ab432a58bf3416", "scanner": "scanner-primary", "fingerprint": "e61dbd0e7ef2b84e", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-66d02cbd86053e23", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/solar/health"}, "properties": {"repobilityId": "90a1e58919085a63", "scanner": "scanner-primary", "fingerprint": "66d02cbd86053e23", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-d852712503bb70fb", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/optimize"}, "properties": {"repobilityId": "86ef0b7a69b7526f", "scanner": "scanner-primary", "fingerprint": "d852712503bb70fb", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-365eb349d36278dd", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/"}, "properties": {"repobilityId": "bece937ed16d0f5f", "scanner": "scanner-primary", "fingerprint": "365eb349d36278dd", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-be0e7febc331b1c4", "level": "note", "message": {"text": "Unused endpoint: DELETE /facilities/{facility_id}"}, "properties": {"repobilityId": "7e1a1f3887fb9db0", "scanner": "scanner-primary", "fingerprint": "be0e7febc331b1c4", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-ffb5950d3bfa282e", "level": "note", "message": {"text": "Unused endpoint: GET /facilities/{facility_id}/safety/status"}, "properties": {"repobilityId": "7111e6acddb7695d", "scanner": "scanner-primary", "fingerprint": "ffb5950d3bfa282e", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-69281f93d0ae8d09", "level": "note", "message": {"text": "Unused endpoint: POST /facilities/{facility_id}/safety/clear"}, "properties": {"repobilityId": "4c635c408bc45440", "scanner": "scanner-primary", "fingerprint": "69281f93d0ae8d09", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-bd14d0580c9c0511", "level": "note", "message": {"text": "Unused endpoint: POST /api/v1/ingest"}, "properties": {"repobilityId": "11c7cc43aaabac38", "scanner": "scanner-primary", "fingerprint": "bd14d0580c9c0511", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-f8f80afa5ab04878", "level": "note", "message": {"text": "Unused endpoint: GET /api/v1/commands/latest"}, "properties": {"repobilityId": "41039685e61ef576", "scanner": "scanner-primary", "fingerprint": "f8f80afa5ab04878", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-9272511692149460", "level": "note", "message": {"text": "Unused endpoint: POST /api/v1/commands"}, "properties": {"repobilityId": "cdcb91f11ae7acac", "scanner": "scanner-primary", "fingerprint": "9272511692149460", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-fd199b7d49653da4", "level": "note", "message": {"text": "Unused endpoint: PUT /api/v1/commands"}, "properties": {"repobilityId": "c1deb877b9e0a0c2", "scanner": "scanner-primary", "fingerprint": "fd199b7d49653da4", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-b86376ce85dfa04e", "level": "note", "message": {"text": "Unused endpoint: GET /api/v1/forecast"}, "properties": {"repobilityId": "096b953ae808bbb6", "scanner": "scanner-primary", "fingerprint": "b86376ce85dfa04e", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-3ea2c6d59b58477c", "level": "note", "message": {"text": "Unused endpoint: GET /api/v1/telemetry/latest"}, "properties": {"repobilityId": "82f9eadc97ca5a33", "scanner": "scanner-primary", "fingerprint": "3ea2c6d59b58477c", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-ba8727188969a8a0", "level": "note", "message": {"text": "Unused endpoint: POST /api/v1/devices"}, "properties": {"repobilityId": "6d226502d55ee95c", "scanner": "scanner-primary", "fingerprint": "ba8727188969a8a0", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-73cdeccaa8e97ac1", "level": "note", "message": {"text": "Unused endpoint: GET /api/v1/devices"}, "properties": {"repobilityId": "9883c32dd484888c", "scanner": "scanner-primary", "fingerprint": "73cdeccaa8e97ac1", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-ca013141f1101502", "level": "note", "message": {"text": "Unused endpoint: DELETE /api/v1/devices/{key_id}"}, "properties": {"repobilityId": "8b0e0c8a927d1a71", "scanner": "scanner-primary", "fingerprint": "ca013141f1101502", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-eab7518cde002d3b", "level": "note", "message": {"text": "Unused endpoint: GET /api/v1/edge/savings"}, "properties": {"repobilityId": "b436fc1f605de583", "scanner": "scanner-primary", "fingerprint": "eab7518cde002d3b", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}]}]}