{"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-5a107fff2256b8fc", "name": "Possibly dead Python function: run_tesseract", "shortDescription": {"text": "Possibly dead Python function: run_tesseract"}, "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-a45f71546fc571d9", "name": "Possibly dead Python function: run_rapidocr", "shortDescription": {"text": "Possibly dead Python function: run_rapidocr"}, "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-af7a771b6d0b8a2d", "name": "Possibly dead Python function: require_user", "shortDescription": {"text": "Possibly dead Python function: require_user"}, "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-e7558a297a01ab7c", "name": "Stray `console.log` in TS/JS \u2014 mobile/src/api/client.ts:11", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 mobile/src/api/client.ts:11"}, "fullDescription": {"text": "Replace with the toast helper, an error boundary, or remove. `console.warn` / `console.error` are acceptable.\n\nWhy: Hygiene \u2014 easy to leak debug output.\nRule id: fq.console-leak"}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "low", "confidence": 1.0}}, {"id": "scanner-1f66ad88286ca30a", "name": "Dockerfile runs as root: backend/Dockerfile", "shortDescription": {"text": "Dockerfile runs as root: backend/Dockerfile"}, "fullDescription": {"text": "No non-root USER set. Containers running as root expand the blast radius of any vulnerability inside the image."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-8cd20d539467d2c5", "name": "Docker base image is tag-pinned but not digest-pinned: python:3.11-slim", "shortDescription": {"text": "Docker base image is tag-pinned but not digest-pinned: python:3.11-slim"}, "fullDescription": {"text": "Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "severity": "low", "confidence": 1.0}}, {"id": "scanner-aa5acaa49eb8315b", "name": "Containers defined but no K8s/orchestration manifest found", "shortDescription": {"text": "Containers defined but no K8s/orchestration manifest found"}, "fullDescription": {"text": "Repo has Dockerfiles/compose but no Kubernetes/Nomad manifests. If the target deployment is K8s, the manifests may live in a separate ops repo."}, "properties": {"scanner": "scanner-primary", "layer": "hardware", "severity": "low", "confidence": 1.0}}, {"id": "scanner-d03e45ca5f056069", "name": "Insecure pattern 'cors_wildcard' in backend/src/main.py:24", "shortDescription": {"text": "Insecure pattern 'cors_wildcard' in backend/src/main.py:24"}, "fullDescription": {"text": "Found a known-risky pattern (cors_wildcard). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-43d76c505b27dca2", "name": "Insecure pattern 'direct_innerhtml_assignment' in backend/src/web/index.html:859", "shortDescription": {"text": "Insecure pattern 'direct_innerhtml_assignment' in backend/src/web/index.html:859"}, "fullDescription": {"text": "Found a known-risky pattern (direct_innerhtml_assignment). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-6a00724874f462b4", "name": "Very large file: mobile/src/i18n.ts (964 lines)", "shortDescription": {"text": "Very large file: mobile/src/i18n.ts (964 lines)"}, "fullDescription": {"text": "Files with >800 lines often hide complexity hotspots and discourage tests."}, "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 25 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-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-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-0446c25aa6e2896c", "name": "Agent authority lacks a verifier contract: .claude/skills/speckit-agent-context-update/SKILL.md", "shortDescription": {"text": "Agent authority lacks a verifier contract: .claude/skills/speckit-agent-context-update/SKILL.md"}, "fullDescription": {"text": "This agent instruction grants code or shell authority but does not state the verification gate that decides promotion. The recurring safe pattern is: LLM proposes; deterministic tests/build/security checks verify; only verified code promotes."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-78ac78bc4ff3cf46", "name": "Agent authority lacks a verifier contract: .claude/skills/speckit-taskstoissues/SKILL.md", "shortDescription": {"text": "Agent authority lacks a verifier contract: .claude/skills/speckit-taskstoissues/SKILL.md"}, "fullDescription": {"text": "This agent instruction grants code or shell authority but does not state the verification gate that decides promotion. The recurring safe pattern is: LLM proposes; deterministic tests/build/security checks verify; only verified code promotes."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-866ff1286088c8c2", "name": "Commented-code block (6 lines) in mobile/src/auth.ts:3", "shortDescription": {"text": "Commented-code block (6 lines) in mobile/src/auth.ts:3"}, "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-d1c16181f70813bf", "name": "Commented-code block (5 lines) in mobile/src/theme.ts:1", "shortDescription": {"text": "Commented-code block (5 lines) in mobile/src/theme.ts:1"}, "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-4f1aa8c8de9a7688", "name": "Commented-code block (9 lines) in mobile/src/api/client.ts:34", "shortDescription": {"text": "Commented-code block (9 lines) in mobile/src/api/client.ts:34"}, "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-1c610cc76a973862", "name": "Commented-code block (5 lines) in mobile/src/screens/CaptureScreen.tsx:1", "shortDescription": {"text": "Commented-code block (5 lines) in mobile/src/screens/CaptureScreen.tsx:1"}, "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-bbb1f1bdbd1643e7", "name": "Commented-code block (5 lines) in mobile/src/screens/ReviewScreen.tsx:1", "shortDescription": {"text": "Commented-code block (5 lines) in mobile/src/screens/ReviewScreen.tsx:1"}, "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-17a45d8b2dc36366", "name": "Commented-code block (5 lines) in mobile/src/screens/DashboardScreen.tsx:1", "shortDescription": {"text": "Commented-code block (5 lines) in mobile/src/screens/DashboardScreen.tsx:1"}, "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-9adf3c3d0196d1f4", "name": "Commented-code block (6 lines) in backend/tests/unit/test_vision_extraction.py:150", "shortDescription": {"text": "Commented-code block (6 lines) in backend/tests/unit/test_vision_extraction.py:150"}, "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-6739dbf40970bef9", "name": "Commented-code block (6 lines) in backend/src/models/schemas.py:94", "shortDescription": {"text": "Commented-code block (6 lines) in backend/src/models/schemas.py:94"}, "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-7b6ad116d36d5ec1", "name": "Commented-code block (5 lines) in backend/src/services/discrepancy_service.py:39", "shortDescription": {"text": "Commented-code block (5 lines) in backend/src/services/discrepancy_service.py:39"}, "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-9f238cbe5198a6de", "name": "Commented-code block (5 lines) in backend/src/services/parsers/base.py:370", "shortDescription": {"text": "Commented-code block (5 lines) in backend/src/services/parsers/base.py:370"}, "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-87feea0865f01247", "name": "Legacy-named symbol `model_copy` in backend/src/services/extraction/vision.py:314", "shortDescription": {"text": "Legacy-named symbol `model_copy` in backend/src/services/extraction/vision.py:314"}, "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-e2ac054dcc49c2b2", "name": "Commented-code block (6 lines) in backend/src/services/extraction/vision.py:249", "shortDescription": {"text": "Commented-code block (6 lines) in backend/src/services/extraction/vision.py:249"}, "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-12b99c31089710b6", "name": "Commented-code block (6 lines) in backend/src/services/extraction/pdf.py:24", "shortDescription": {"text": "Commented-code block (6 lines) in backend/src/services/extraction/pdf.py:24"}, "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-8cce47563f673a73", "name": "Commented-code block (5 lines) in backend/src/services/extraction/ocr.py:35", "shortDescription": {"text": "Commented-code block (5 lines) in backend/src/services/extraction/ocr.py:35"}, "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-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/src/services/llm_service.py:explain, backend/src/services/llm_service.py:explain\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-c865db460a5f5adf", "name": "FastAPI POST `process_bill` without auth dependency \u2014 backend/src/api/bills.py:56", "shortDescription": {"text": "FastAPI POST `process_bill` without auth dependency \u2014 backend/src/api/bills.py:56"}, "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-da19fe311325f456", "name": "FastAPI POST `save_reviewed_bill` without auth dependency \u2014 backend/src/api/bills.py:103", "shortDescription": {"text": "FastAPI POST `save_reviewed_bill` without auth dependency \u2014 backend/src/api/bills.py:103"}, "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-d0b4a99f9bd4a953", "name": "FastAPI DELETE `delete_bill` without auth dependency \u2014 backend/src/api/bills.py:205", "shortDescription": {"text": "FastAPI DELETE `delete_bill` without auth dependency \u2014 backend/src/api/bills.py:205"}, "fullDescription": {"text": "`@router.delete` 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-62a365c060aa441e", "name": "FastAPI DELETE `delete_all_bills` without auth dependency \u2014 backend/src/api/bills.py:218", "shortDescription": {"text": "FastAPI DELETE `delete_all_bills` without auth dependency \u2014 backend/src/api/bills.py:218"}, "fullDescription": {"text": "`@router.delete` 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-c1d643fcb3e10306", "name": "FastAPI POST `ask` without auth dependency \u2014 backend/src/api/qa.py:45", "shortDescription": {"text": "FastAPI POST `ask` without auth dependency \u2014 backend/src/api/qa.py:45"}, "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-5baa8971ebe192a1", "name": "Unused endpoint: GET /", "shortDescription": {"text": "Unused endpoint: GET /"}, "fullDescription": {"text": "`backend/src/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-a6f48e60c30777ab", "name": "Unused endpoint: GET /config", "shortDescription": {"text": "Unused endpoint: GET /config"}, "fullDescription": {"text": "`backend/src/main.py` declares `GET /config` 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-8518b798f05e2169", "name": "Unused endpoint: POST /bills:process", "shortDescription": {"text": "Unused endpoint: POST /bills:process"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `POST /bills:process` 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-b24f7ea1b83f90c1", "name": "Unused endpoint: POST /bills", "shortDescription": {"text": "Unused endpoint: POST /bills"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `POST /bills` 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-a1003254942217d9", "name": "Unused endpoint: GET /bills", "shortDescription": {"text": "Unused endpoint: GET /bills"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `GET /bills` 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-c9679ff6f87db427", "name": "Unused endpoint: DELETE /bills/{bill_id}", "shortDescription": {"text": "Unused endpoint: DELETE /bills/{bill_id}"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `DELETE /bills/{bill_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-f16197e84f896d50", "name": "Unused endpoint: DELETE /bills", "shortDescription": {"text": "Unused endpoint: DELETE /bills"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `DELETE /bills` 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-aa37cde67154bba4", "name": "Unused endpoint: GET /bills/{bill_id}", "shortDescription": {"text": "Unused endpoint: GET /bills/{bill_id}"}, "fullDescription": {"text": "`backend/src/api/bills.py` declares `GET /bills/{bill_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-269cd83e43122e4a", "name": "Unused endpoint: GET /dashboard/by-category", "shortDescription": {"text": "Unused endpoint: GET /dashboard/by-category"}, "fullDescription": {"text": "`backend/src/api/dashboard.py` declares `GET /dashboard/by-category` 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-466e6b534626fcb5", "name": "Unused endpoint: GET /dashboard/monthly", "shortDescription": {"text": "Unused endpoint: GET /dashboard/monthly"}, "fullDescription": {"text": "`backend/src/api/dashboard.py` declares `GET /dashboard/monthly` 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-f13a61d83f2140d5", "name": "Unused endpoint: POST /qa", "shortDescription": {"text": "Unused endpoint: POST /qa"}, "fullDescription": {"text": "`backend/src/api/qa.py` declares `POST /qa` 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/20187"}, "properties": {"repository": "srik-does/billology", "repoUrl": "https://github.com/srik-does/billology", "branch": "main"}, "results": [{"ruleId": "scanner-5a107fff2256b8fc", "level": "note", "message": {"text": "Possibly dead Python function: run_tesseract"}, "properties": {"repobilityId": "298e5109626d5470", "scanner": "scanner-primary", "fingerprint": "5a107fff2256b8fc", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/scripts/compare_ocr.py:99"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-a45f71546fc571d9", "level": "note", "message": {"text": "Possibly dead Python function: run_rapidocr"}, "properties": {"repobilityId": "fff38acf30140c61", "scanner": "scanner-primary", "fingerprint": "a45f71546fc571d9", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/scripts/compare_ocr.py:105"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-af7a771b6d0b8a2d", "level": "note", "message": {"text": "Possibly dead Python function: require_user"}, "properties": {"repobilityId": "2018d028cf795b1d", "scanner": "scanner-primary", "fingerprint": "af7a771b6d0b8a2d", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/services/auth.py:95"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-e7558a297a01ab7c", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 mobile/src/api/client.ts:11"}, "properties": {"repobilityId": "5be90218c59dfaa8", "scanner": "scanner-primary", "fingerprint": "e7558a297a01ab7c", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-1f66ad88286ca30a", "level": "warning", "message": {"text": "Dockerfile runs as root: backend/Dockerfile"}, "properties": {"repobilityId": "7afd2b0e8a8c9eeb", "scanner": "scanner-primary", "fingerprint": "1f66ad88286ca30a", "layer": "hardware", "severity": "medium", "confidence": 1.0, "tags": ["security", "container"]}}, {"ruleId": "scanner-8cd20d539467d2c5", "level": "note", "message": {"text": "Docker base image is tag-pinned but not digest-pinned: python:3.11-slim"}, "properties": {"repobilityId": "06b87ac9439092d6", "scanner": "scanner-primary", "fingerprint": "8cd20d539467d2c5", "layer": "hardware", "severity": "low", "confidence": 1.0, "tags": ["supply-chain", "docker", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/Dockerfile"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-aa5acaa49eb8315b", "level": "note", "message": {"text": "Containers defined but no K8s/orchestration manifest found"}, "properties": {"repobilityId": "b230ea9b68736081", "scanner": "scanner-primary", "fingerprint": "aa5acaa49eb8315b", "layer": "hardware", "severity": "low", "confidence": 1.0, "tags": ["coverage", "deployment"]}}, {"ruleId": "scanner-d03e45ca5f056069", "level": "warning", "message": {"text": "Insecure pattern 'cors_wildcard' in backend/src/main.py:24"}, "properties": {"repobilityId": "f45d37546de9ad80", "scanner": "scanner-primary", "fingerprint": "d03e45ca5f056069", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "cors_wildcard"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/main.py"}, "region": {"startLine": 24}}}]}, {"ruleId": "scanner-43d76c505b27dca2", "level": "warning", "message": {"text": "Insecure pattern 'direct_innerhtml_assignment' in backend/src/web/index.html:859"}, "properties": {"repobilityId": "c9d4127970f3b8d0", "scanner": "scanner-primary", "fingerprint": "43d76c505b27dca2", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "direct_innerhtml_assignment"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/web/index.html"}, "region": {"startLine": 859}}}]}, {"ruleId": "scanner-6a00724874f462b4", "level": "note", "message": {"text": "Very large file: mobile/src/i18n.ts (964 lines)"}, "properties": {"repobilityId": "6f02dd407aba9025", "scanner": "scanner-primary", "fingerprint": "6a00724874f462b4", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["complexity"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "a7bcc232d7d52d21", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-2d0c7b7ab8f8aacf", "level": "warning", "message": {"text": "Critical user flow still appears backed by mock or placeholder data"}, "properties": {"repobilityId": "13e1bc7df68e4b7c", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "9f643e9fac65c3b2", "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": "ccd4d8a97891ed8e", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-0446c25aa6e2896c", "level": "warning", "message": {"text": "Agent authority lacks a verifier contract: .claude/skills/speckit-agent-context-update/SKILL.md"}, "properties": {"repobilityId": "a5d93608a9f849db", "scanner": "scanner-primary", "fingerprint": "0446c25aa6e2896c", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["agent-instructions", "verification", "claude_instruction"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".claude/skills/speckit-agent-context-update/SKILL.md"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-78ac78bc4ff3cf46", "level": "warning", "message": {"text": "Agent authority lacks a verifier contract: .claude/skills/speckit-taskstoissues/SKILL.md"}, "properties": {"repobilityId": "6d7a8ed1d27102fc", "scanner": "scanner-primary", "fingerprint": "78ac78bc4ff3cf46", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["agent-instructions", "verification", "claude_instruction"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": ".claude/skills/speckit-taskstoissues/SKILL.md"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-866ff1286088c8c2", "level": "none", "message": {"text": "Commented-code block (6 lines) in mobile/src/auth.ts:3"}, "properties": {"repobilityId": "b2870cea5abf0be2", "scanner": "scanner-primary", "fingerprint": "866ff1286088c8c2", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-d1c16181f70813bf", "level": "none", "message": {"text": "Commented-code block (5 lines) in mobile/src/theme.ts:1"}, "properties": {"repobilityId": "528b37bf4473ab53", "scanner": "scanner-primary", "fingerprint": "d1c16181f70813bf", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-4f1aa8c8de9a7688", "level": "none", "message": {"text": "Commented-code block (9 lines) in mobile/src/api/client.ts:34"}, "properties": {"repobilityId": "45d0d752fe4a2513", "scanner": "scanner-primary", "fingerprint": "4f1aa8c8de9a7688", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-1c610cc76a973862", "level": "none", "message": {"text": "Commented-code block (5 lines) in mobile/src/screens/CaptureScreen.tsx:1"}, "properties": {"repobilityId": "7a3cdbd6bc0b05dc", "scanner": "scanner-primary", "fingerprint": "1c610cc76a973862", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-bbb1f1bdbd1643e7", "level": "none", "message": {"text": "Commented-code block (5 lines) in mobile/src/screens/ReviewScreen.tsx:1"}, "properties": {"repobilityId": "38f63b0c817f9b23", "scanner": "scanner-primary", "fingerprint": "bbb1f1bdbd1643e7", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-17a45d8b2dc36366", "level": "none", "message": {"text": "Commented-code block (5 lines) in mobile/src/screens/DashboardScreen.tsx:1"}, "properties": {"repobilityId": "cdb299726b944988", "scanner": "scanner-primary", "fingerprint": "17a45d8b2dc36366", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-9adf3c3d0196d1f4", "level": "none", "message": {"text": "Commented-code block (6 lines) in backend/tests/unit/test_vision_extraction.py:150"}, "properties": {"repobilityId": "10e8cd6da0374eb7", "scanner": "scanner-primary", "fingerprint": "9adf3c3d0196d1f4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-6739dbf40970bef9", "level": "none", "message": {"text": "Commented-code block (6 lines) in backend/src/models/schemas.py:94"}, "properties": {"repobilityId": "a00e9e85b6cc23bc", "scanner": "scanner-primary", "fingerprint": "6739dbf40970bef9", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-7b6ad116d36d5ec1", "level": "none", "message": {"text": "Commented-code block (5 lines) in backend/src/services/discrepancy_service.py:39"}, "properties": {"repobilityId": "92e67061f0c022ab", "scanner": "scanner-primary", "fingerprint": "7b6ad116d36d5ec1", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-9f238cbe5198a6de", "level": "none", "message": {"text": "Commented-code block (5 lines) in backend/src/services/parsers/base.py:370"}, "properties": {"repobilityId": "2e66f8d35532f438", "scanner": "scanner-primary", "fingerprint": "9f238cbe5198a6de", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-87feea0865f01247", "level": "note", "message": {"text": "Legacy-named symbol `model_copy` in backend/src/services/extraction/vision.py:314"}, "properties": {"repobilityId": "4579e4b07e299b10", "scanner": "scanner-primary", "fingerprint": "87feea0865f01247", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-e2ac054dcc49c2b2", "level": "none", "message": {"text": "Commented-code block (6 lines) in backend/src/services/extraction/vision.py:249"}, "properties": {"repobilityId": "11c29854ba500490", "scanner": "scanner-primary", "fingerprint": "e2ac054dcc49c2b2", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-12b99c31089710b6", "level": "none", "message": {"text": "Commented-code block (6 lines) in backend/src/services/extraction/pdf.py:24"}, "properties": {"repobilityId": "99ab6bfadd91dcb9", "scanner": "scanner-primary", "fingerprint": "12b99c31089710b6", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-8cce47563f673a73", "level": "none", "message": {"text": "Commented-code block (5 lines) in backend/src/services/extraction/ocr.py:35"}, "properties": {"repobilityId": "d47b6b38637d567d", "scanner": "scanner-primary", "fingerprint": "8cce47563f673a73", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "341111f2834511b0", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "95ddbd7919d14385", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "28be486df8055e59", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "34d376480b33ea8f", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "960c3e267ca9e58f", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "df80f2b1126a5c07", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "03defe46e9049b43", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "8cc1bfb58c4f620b", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "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": "dd91c8a86dcf49cd", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}, {"ruleId": "scanner-c865db460a5f5adf", "level": "error", "message": {"text": "FastAPI POST `process_bill` without auth dependency \u2014 backend/src/api/bills.py:56"}, "properties": {"repobilityId": "9112d7b28f7cec0e", "scanner": "scanner-primary", "fingerprint": "c865db460a5f5adf", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/api/bills.py"}, "region": {"startLine": 56}}}]}, {"ruleId": "scanner-da19fe311325f456", "level": "error", "message": {"text": "FastAPI POST `save_reviewed_bill` without auth dependency \u2014 backend/src/api/bills.py:103"}, "properties": {"repobilityId": "5f72a83f126108bf", "scanner": "scanner-primary", "fingerprint": "da19fe311325f456", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/api/bills.py"}, "region": {"startLine": 103}}}]}, {"ruleId": "scanner-d0b4a99f9bd4a953", "level": "error", "message": {"text": "FastAPI DELETE `delete_bill` without auth dependency \u2014 backend/src/api/bills.py:205"}, "properties": {"repobilityId": "c5a51358f3936139", "scanner": "scanner-primary", "fingerprint": "d0b4a99f9bd4a953", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/api/bills.py"}, "region": {"startLine": 205}}}]}, {"ruleId": "scanner-62a365c060aa441e", "level": "error", "message": {"text": "FastAPI DELETE `delete_all_bills` without auth dependency \u2014 backend/src/api/bills.py:218"}, "properties": {"repobilityId": "5b2f5af6466bb94e", "scanner": "scanner-primary", "fingerprint": "62a365c060aa441e", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/api/bills.py"}, "region": {"startLine": 218}}}]}, {"ruleId": "scanner-c1d643fcb3e10306", "level": "error", "message": {"text": "FastAPI POST `ask` without auth dependency \u2014 backend/src/api/qa.py:45"}, "properties": {"repobilityId": "7ca28b8018ee553a", "scanner": "scanner-primary", "fingerprint": "c1d643fcb3e10306", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["auth", "owasp", "auth.fastapi.unauth_mutation"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "backend/src/api/qa.py"}, "region": {"startLine": 45}}}]}, {"ruleId": "scanner-5baa8971ebe192a1", "level": "note", "message": {"text": "Unused endpoint: GET /"}, "properties": {"repobilityId": "7ed073dc9cf1b33d", "scanner": "scanner-primary", "fingerprint": "5baa8971ebe192a1", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-a6f48e60c30777ab", "level": "note", "message": {"text": "Unused endpoint: GET /config"}, "properties": {"repobilityId": "f63fe42b2e89a30c", "scanner": "scanner-primary", "fingerprint": "a6f48e60c30777ab", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-8518b798f05e2169", "level": "note", "message": {"text": "Unused endpoint: POST /bills:process"}, "properties": {"repobilityId": "4d492f19fe257079", "scanner": "scanner-primary", "fingerprint": "8518b798f05e2169", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-b24f7ea1b83f90c1", "level": "note", "message": {"text": "Unused endpoint: POST /bills"}, "properties": {"repobilityId": "3c680ab8d483a5ab", "scanner": "scanner-primary", "fingerprint": "b24f7ea1b83f90c1", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-a1003254942217d9", "level": "note", "message": {"text": "Unused endpoint: GET /bills"}, "properties": {"repobilityId": "4360fa58bb0fa222", "scanner": "scanner-primary", "fingerprint": "a1003254942217d9", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-c9679ff6f87db427", "level": "note", "message": {"text": "Unused endpoint: DELETE /bills/{bill_id}"}, "properties": {"repobilityId": "e10b5ece89694693", "scanner": "scanner-primary", "fingerprint": "c9679ff6f87db427", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-f16197e84f896d50", "level": "note", "message": {"text": "Unused endpoint: DELETE /bills"}, "properties": {"repobilityId": "65a5b8440e694d14", "scanner": "scanner-primary", "fingerprint": "f16197e84f896d50", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-aa37cde67154bba4", "level": "note", "message": {"text": "Unused endpoint: GET /bills/{bill_id}"}, "properties": {"repobilityId": "2806b9ea1b49fefb", "scanner": "scanner-primary", "fingerprint": "aa37cde67154bba4", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-269cd83e43122e4a", "level": "note", "message": {"text": "Unused endpoint: GET /dashboard/by-category"}, "properties": {"repobilityId": "9ac2c40f477d3199", "scanner": "scanner-primary", "fingerprint": "269cd83e43122e4a", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-466e6b534626fcb5", "level": "note", "message": {"text": "Unused endpoint: GET /dashboard/monthly"}, "properties": {"repobilityId": "e71d41858d321523", "scanner": "scanner-primary", "fingerprint": "466e6b534626fcb5", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}, {"ruleId": "scanner-f13a61d83f2140d5", "level": "note", "message": {"text": "Unused endpoint: POST /qa"}, "properties": {"repobilityId": "f4cfd6314aa2422a", "scanner": "scanner-primary", "fingerprint": "f13a61d83f2140d5", "layer": "api", "severity": "low", "confidence": 1.0, "tags": ["wiring", "unused-endpoint"]}}]}]}