{"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-fcacbf1fde20d664", "name": "Possibly dead Python function: cmd_index", "shortDescription": {"text": "Possibly dead Python function: cmd_index"}, "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-fe6324856a62283b", "name": "Possibly dead Python function: cmd_search", "shortDescription": {"text": "Possibly dead Python function: cmd_search"}, "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-9418808d77fb04f6", "name": "Possibly dead Python function: cmd_list", "shortDescription": {"text": "Possibly dead Python function: cmd_list"}, "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-a341462f83b79286", "name": "Possibly dead Python function: cmd_reset", "shortDescription": {"text": "Possibly dead Python function: cmd_reset"}, "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-131f499024303469", "name": "Possibly dead Python function: cmd_status", "shortDescription": {"text": "Possibly dead Python function: cmd_status"}, "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-067d9d11fb0dae18", "name": "Possibly dead Python function: cmd_init", "shortDescription": {"text": "Possibly dead Python function: cmd_init"}, "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-8ac11c22fee1634a", "name": "Possibly dead Python function: cmd_export", "shortDescription": {"text": "Possibly dead Python function: cmd_export"}, "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-ac23437f121b9cd7", "name": "Possibly dead Python function: cmd_watch", "shortDescription": {"text": "Possibly dead Python function: cmd_watch"}, "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-8c85dd188204b42b", "name": "Possibly dead Python function: unit_is_unchanged", "shortDescription": {"text": "Possibly dead Python function: unit_is_unchanged"}, "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-55f3246062f1bab3", "name": "Possibly dead Python function: extract", "shortDescription": {"text": "Possibly dead Python function: extract"}, "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-455dc877892dd84f", "name": "Possibly dead Python function: call_ollama", "shortDescription": {"text": "Possibly dead Python function: call_ollama"}, "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-d63da3583b14afc0", "name": "Dockerfile runs as root: Dockerfile", "shortDescription": {"text": "Dockerfile runs as root: 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-e066691601852931", "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-9710c8d059e53154", "name": "No frontend routes/components detected", "shortDescription": {"text": "No frontend routes/components detected"}, "fullDescription": {"text": "No React/Vue/Next routes were found. This is fine for backend-only repos."}, "properties": {"scanner": "scanner-primary", "layer": "frontend", "severity": "info", "confidence": 1.0}}, {"id": "scanner-6372cebde0220094", "name": "No auth library detected", "shortDescription": {"text": "No auth library detected"}, "fullDescription": {"text": "The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-4601e3ad3bb28677", "name": "No CI/CD pipelines detected", "shortDescription": {"text": "No CI/CD pipelines detected"}, "fullDescription": {"text": "No GitHub Actions, GitLab CI, or CircleCI configs found. Without CI you can't gate deploys on tests/lints."}, "properties": {"scanner": "scanner-primary", "layer": "cicd", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-c0302238283c3e9c", "name": "Very large file: src/fw_context_mcp/mcp/server.py (1321 lines)", "shortDescription": {"text": "Very large file: src/fw_context_mcp/mcp/server.py (1321 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 70 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-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-677224ecfb869dee", "name": "Network/subprocess call without timeout or try/except \u2014 src/fw_context_mcp/cli.py:386", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 src/fw_context_mcp/cli.py:386"}, "fullDescription": {"text": "`subprocess.run(...)` here lacks both a `timeout=` arg and an enclosing try/except. This is exactly the class of bug that took down our git-clone earlier (HTTP/2 stream cancel surfaced as a fatal). Add a `timeout=` and wrap in try/except, or use a wrapper that retries."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-42357bbd54a7fb88", "name": "Commented-code block (5 lines) in src/fw_context_mcp/config/settings.py:37", "shortDescription": {"text": "Commented-code block (5 lines) in src/fw_context_mcp/config/settings.py:37"}, "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-23a0e7a7d16c398d", "name": "Legacy-named symbol `file_id_old` in src/fw_context_mcp/indexer/ops.py:74", "shortDescription": {"text": "Legacy-named symbol `file_id_old` in src/fw_context_mcp/indexer/ops.py:74"}, "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-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:\nsrc/fw_context_mcp/indexer/db.py:find_all_callers_recursive, src/fw_context_mcp/indexer/db.py:find_callees_recursive\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}}]}}, "automationDetails": {"id": "repobility/21723"}, "properties": {"repository": "turbyho/fw-context-mcp", "repoUrl": "https://github.com/turbyho/fw-context-mcp", "branch": "main"}, "results": [{"ruleId": "scanner-fcacbf1fde20d664", "level": "note", "message": {"text": "Possibly dead Python function: cmd_index"}, "properties": {"repobilityId": "5fe566feb113dc8d", "scanner": "scanner-primary", "fingerprint": "fcacbf1fde20d664", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:13"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-fe6324856a62283b", "level": "note", "message": {"text": "Possibly dead Python function: cmd_search"}, "properties": {"repobilityId": "98367383941c67aa", "scanner": "scanner-primary", "fingerprint": "fe6324856a62283b", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:60"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-9418808d77fb04f6", "level": "note", "message": {"text": "Possibly dead Python function: cmd_list"}, "properties": {"repobilityId": "bd09044da90857da", "scanner": "scanner-primary", "fingerprint": "9418808d77fb04f6", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:89"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-a341462f83b79286", "level": "note", "message": {"text": "Possibly dead Python function: cmd_reset"}, "properties": {"repobilityId": "f37e308714abeb66", "scanner": "scanner-primary", "fingerprint": "a341462f83b79286", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:117"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-131f499024303469", "level": "note", "message": {"text": "Possibly dead Python function: cmd_status"}, "properties": {"repobilityId": "244b91f3ae7622bf", "scanner": "scanner-primary", "fingerprint": "131f499024303469", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:160"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-067d9d11fb0dae18", "level": "note", "message": {"text": "Possibly dead Python function: cmd_init"}, "properties": {"repobilityId": "3f17b7245a36f920", "scanner": "scanner-primary", "fingerprint": "067d9d11fb0dae18", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:221"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-8ac11c22fee1634a", "level": "note", "message": {"text": "Possibly dead Python function: cmd_export"}, "properties": {"repobilityId": "3b8bb19d51ab5ed8", "scanner": "scanner-primary", "fingerprint": "8ac11c22fee1634a", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:434"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-ac23437f121b9cd7", "level": "note", "message": {"text": "Possibly dead Python function: cmd_watch"}, "properties": {"repobilityId": "1e6734bc1d615718", "scanner": "scanner-primary", "fingerprint": "ac23437f121b9cd7", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/cli.py:516"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-8c85dd188204b42b", "level": "note", "message": {"text": "Possibly dead Python function: unit_is_unchanged"}, "properties": {"repobilityId": "5dbc41e4908e039a", "scanner": "scanner-primary", "fingerprint": "8c85dd188204b42b", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/indexer/ops.py:140"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-55f3246062f1bab3", "level": "note", "message": {"text": "Possibly dead Python function: extract"}, "properties": {"repobilityId": "e15215bd611f513a", "scanner": "scanner-primary", "fingerprint": "55f3246062f1bab3", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/indexer/symbols.py:168"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-455dc877892dd84f", "level": "note", "message": {"text": "Possibly dead Python function: call_ollama"}, "properties": {"repobilityId": "9f88b6f60fa66e7d", "scanner": "scanner-primary", "fingerprint": "455dc877892dd84f", "layer": "software", "severity": "low", "confidence": 1.0, "tags": ["dead-code"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "src/fw_context_mcp/llm/ollama.py:50"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-d63da3583b14afc0", "level": "warning", "message": {"text": "Dockerfile runs as root: Dockerfile"}, "properties": {"repobilityId": "a2ed1bd120e507db", "scanner": "scanner-primary", "fingerprint": "d63da3583b14afc0", "layer": "hardware", "severity": "medium", "confidence": 1.0, "tags": ["security", "container"]}}, {"ruleId": "scanner-e066691601852931", "level": "note", "message": {"text": "Docker base image is tag-pinned but not digest-pinned: python:3.11-slim"}, "properties": {"repobilityId": "f391052c9bfd7e8b", "scanner": "scanner-primary", "fingerprint": "e066691601852931", "layer": "hardware", "severity": "low", "confidence": 1.0, "tags": ["supply-chain", "docker", "pinned-dependencies"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "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-9710c8d059e53154", "level": "none", "message": {"text": "No frontend routes/components detected"}, "properties": {"repobilityId": "44ca61485762e494", "scanner": "scanner-primary", "fingerprint": "9710c8d059e53154", "layer": "frontend", "severity": "info", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-6372cebde0220094", "level": "warning", "message": {"text": "No auth library detected"}, "properties": {"repobilityId": "a5b6035a5bbf8054", "scanner": "scanner-primary", "fingerprint": "6372cebde0220094", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["coverage", "auth"]}}, {"ruleId": "scanner-4601e3ad3bb28677", "level": "warning", "message": {"text": "No CI/CD pipelines detected"}, "properties": {"repobilityId": "c3ee439bce2bc51e", "scanner": "scanner-primary", "fingerprint": "4601e3ad3bb28677", "layer": "cicd", "severity": "medium", "confidence": 1.0, "tags": ["coverage"]}}, {"ruleId": "scanner-c0302238283c3e9c", "level": "note", "message": {"text": "Very large file: src/fw_context_mcp/mcp/server.py (1321 lines)"}, "properties": {"repobilityId": "8163ab3b13ca86ad", "scanner": "scanner-primary", "fingerprint": "c0302238283c3e9c", "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": "704a34c08b304bb4", "scanner": "scanner-primary", "fingerprint": "3ab5d313dda8e5f9", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["debug", "cleanup", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "0125d24a06b0f993", "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": "fc1dd97eca01efba", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-677224ecfb869dee", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 src/fw_context_mcp/cli.py:386"}, "properties": {"repobilityId": "f4d06467b163a3b6", "scanner": "scanner-primary", "fingerprint": "677224ecfb869dee", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-42357bbd54a7fb88", "level": "none", "message": {"text": "Commented-code block (5 lines) in src/fw_context_mcp/config/settings.py:37"}, "properties": {"repobilityId": "2d86add1bab2307e", "scanner": "scanner-primary", "fingerprint": "42357bbd54a7fb88", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-23a0e7a7d16c398d", "level": "note", "message": {"text": "Legacy-named symbol `file_id_old` in src/fw_context_mcp/indexer/ops.py:74"}, "properties": {"repobilityId": "d095bd151f1d8037", "scanner": "scanner-primary", "fingerprint": "23a0e7a7d16c398d", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "legacy-marker", "dead-code"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "8a357a2f532586ec", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}]}]}