{"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-aa374b68170177f6", "name": "Stray `console.log` in TS/JS \u2014 tools/boon_check.js:88", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 tools/boon_check.js:88"}, "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-10e50894b7ef37ec", "name": "Stray `console.log` in TS/JS \u2014 tools/sim.js:377", "shortDescription": {"text": "Stray `console.log` in TS/JS \u2014 tools/sim.js:377"}, "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-a28db1dfae9f38ee", "name": "Privileged port 85 in use", "shortDescription": {"text": "Privileged port 85 in use"}, "fullDescription": {"text": "Port 85 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer."}, "properties": {"scanner": "scanner-primary", "layer": "network", "severity": "medium", "confidence": 1.0}}, {"id": "scanner-20449f7849bed820", "name": "Privileged port 60 in use", "shortDescription": {"text": "Privileged port 60 in use"}, "fullDescription": {"text": "Port 60 is privileged (<1024). Make sure the service runs with the right caps or front it with a non-privileged port via a load balancer."}, "properties": {"scanner": "scanner-primary", "layer": "network", "severity": "medium", "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-fda106869e59469e", "name": "Insecure pattern 'direct_innerhtml_assignment' in web/js/game.js:249", "shortDescription": {"text": "Insecure pattern 'direct_innerhtml_assignment' in web/js/game.js:249"}, "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-3fd7338a63b03130", "name": "Insecure pattern 'local_storage_auth_token' in web/js/game.js:3703", "shortDescription": {"text": "Insecure pattern 'local_storage_auth_token' in web/js/game.js:3703"}, "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-d77cacf45cc71d29", "name": "Insecure pattern 'new_function_used' in tools/boon_check.js:78", "shortDescription": {"text": "Insecure pattern 'new_function_used' in tools/boon_check.js:78"}, "fullDescription": {"text": "Found a known-risky pattern (new_function_used). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "confidence": 1.0}}, {"id": "scanner-0176b1be657c1d91", "name": "Insecure pattern 'new_function_used' in tools/sim.js:76", "shortDescription": {"text": "Insecure pattern 'new_function_used' in tools/sim.js:76"}, "fullDescription": {"text": "Found a known-risky pattern (new_function_used). Review and replace if possible."}, "properties": {"scanner": "scanner-primary", "layer": "security", "severity": "high", "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-48fe9572115266fa", "name": "Very large file: web/js/game.js (4677 lines)", "shortDescription": {"text": "Very large file: web/js/game.js (4677 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-62606c0e67335402", "name": "Very large file: tools/boon_check.js (1174 lines)", "shortDescription": {"text": "Very large file: tools/boon_check.js (1174 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-6893a6c8b0861585", "name": "Very low test-to-source ratio", "shortDescription": {"text": "Very low test-to-source ratio"}, "fullDescription": {"text": "0 test file(s) for 11 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths."}, "properties": {"scanner": "scanner-primary", "layer": "quality", "severity": "medium", "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 31 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-b9088664ace7f748", "name": "Composite production-readiness gap", "shortDescription": {"text": "Composite production-readiness gap"}, "fullDescription": {"text": "Multiple low-cost hardening controls are missing together: ci, tests. Opus verification showed these co-occurring gaps are a better readiness signal than reading each flag in isolation."}, "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-9b4bf3b404b12e92", "name": "Commented-code block (5 lines) in web/js/render.js:246", "shortDescription": {"text": "Commented-code block (5 lines) in web/js/render.js:246"}, "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-ba2ddf8fa2018d99", "name": "Commented-code block (5 lines) in web/js/game.js:861", "shortDescription": {"text": "Commented-code block (5 lines) in web/js/game.js:861"}, "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-43e0b8868e75a93b", "name": "Commented-code block (5 lines) in tools/boon_check.js:120", "shortDescription": {"text": "Commented-code block (5 lines) in tools/boon_check.js:120"}, "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-8d641183e6642ea6", "name": "`fetch()` without try/.catch or AbortSignal \u2014 tools/boon_check.js:1054", "shortDescription": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 tools/boon_check.js:1054"}, "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-889bfbafa864fe4d", "name": "Network/subprocess call without timeout or try/except \u2014 tools/gen_sprites.py:100", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 tools/gen_sprites.py:100"}, "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-ac1660ed87e76e44", "name": "Network/subprocess call without timeout or try/except \u2014 tools/gen_lich_tts.py:111", "shortDescription": {"text": "Network/subprocess call without timeout or try/except \u2014 tools/gen_lich_tts.py:111"}, "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-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:\ntools/gen_sprites.py:access_token, tools/gen_lich_tts.py:access_token\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/19821"}, "properties": {"repository": "slalter/the-dark-stair", "repoUrl": "https://github.com/slalter/the-dark-stair", "branch": "main"}, "results": [{"ruleId": "scanner-aa374b68170177f6", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 tools/boon_check.js:88"}, "properties": {"repobilityId": "a74c4f439ace7d2b", "scanner": "scanner-primary", "fingerprint": "aa374b68170177f6", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-10e50894b7ef37ec", "level": "note", "message": {"text": "Stray `console.log` in TS/JS \u2014 tools/sim.js:377"}, "properties": {"repobilityId": "25d7ea37f948b458", "scanner": "scanner-primary", "fingerprint": "10e50894b7ef37ec", "layer": "frontend", "severity": "low", "confidence": 1.0, "tags": ["frontend-quality", "fq.console-leak"]}}, {"ruleId": "scanner-a28db1dfae9f38ee", "level": "warning", "message": {"text": "Privileged port 85 in use"}, "properties": {"repobilityId": "6e23398b0a81d421", "scanner": "scanner-primary", "fingerprint": "a28db1dfae9f38ee", "layer": "network", "severity": "medium", "confidence": 1.0, "tags": ["security", "ports"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "tools/distort_lich.sh"}, "region": {"startLine": 1}}}]}, {"ruleId": "scanner-20449f7849bed820", "level": "warning", "message": {"text": "Privileged port 60 in use"}, "properties": {"repobilityId": "f4424efab727024f", "scanner": "scanner-primary", "fingerprint": "20449f7849bed820", "layer": "network", "severity": "medium", "confidence": 1.0, "tags": ["security", "ports"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "tools/distort_lich.sh"}, "region": {"startLine": 1}}}]}, {"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-fda106869e59469e", "level": "warning", "message": {"text": "Insecure pattern 'direct_innerhtml_assignment' in web/js/game.js:249"}, "properties": {"repobilityId": "66dd6b4a62d562e9", "scanner": "scanner-primary", "fingerprint": "fda106869e59469e", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "direct_innerhtml_assignment"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "web/js/game.js"}, "region": {"startLine": 249}}}]}, {"ruleId": "scanner-3fd7338a63b03130", "level": "warning", "message": {"text": "Insecure pattern 'local_storage_auth_token' in web/js/game.js:3703"}, "properties": {"repobilityId": "87b174e01dbcc2c8", "scanner": "scanner-primary", "fingerprint": "3fd7338a63b03130", "layer": "security", "severity": "medium", "confidence": 1.0, "tags": ["owasp", "local_storage_auth_token"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "web/js/game.js"}, "region": {"startLine": 3703}}}]}, {"ruleId": "scanner-d77cacf45cc71d29", "level": "error", "message": {"text": "Insecure pattern 'new_function_used' in tools/boon_check.js:78"}, "properties": {"repobilityId": "0c32c193078856de", "scanner": "scanner-primary", "fingerprint": "d77cacf45cc71d29", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["owasp", "new_function_used"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "tools/boon_check.js"}, "region": {"startLine": 78}}}]}, {"ruleId": "scanner-0176b1be657c1d91", "level": "error", "message": {"text": "Insecure pattern 'new_function_used' in tools/sim.js:76"}, "properties": {"repobilityId": "957d56c1c6458221", "scanner": "scanner-primary", "fingerprint": "0176b1be657c1d91", "layer": "security", "severity": "high", "confidence": 1.0, "tags": ["owasp", "new_function_used"]}, "locations": [{"physicalLocation": {"artifactLocation": {"uri": "tools/sim.js"}, "region": {"startLine": 76}}}]}, {"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-48fe9572115266fa", "level": "note", "message": {"text": "Very large file: web/js/game.js (4677 lines)"}, "properties": {"repobilityId": "ec2cb6262bf16a20", "scanner": "scanner-primary", "fingerprint": "48fe9572115266fa", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["complexity"]}}, {"ruleId": "scanner-62606c0e67335402", "level": "note", "message": {"text": "Very large file: tools/boon_check.js (1174 lines)"}, "properties": {"repobilityId": "936f7ef7b787325d", "scanner": "scanner-primary", "fingerprint": "62606c0e67335402", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["complexity"]}}, {"ruleId": "scanner-6893a6c8b0861585", "level": "warning", "message": {"text": "Very low test-to-source ratio"}, "properties": {"repobilityId": "54a7de3f06314bf0", "scanner": "scanner-primary", "fingerprint": "6893a6c8b0861585", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["tests", "coverage"]}}, {"ruleId": "scanner-3ab5d313dda8e5f9", "level": "note", "message": {"text": "Debug logging residue appears in source files"}, "properties": {"repobilityId": "60e35f73117c0f2f", "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": "1fb842c919d22b6a", "scanner": "scanner-primary", "fingerprint": "2d0c7b7ab8f8aacf", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["placeholder", "mock-data", "critical-flow", "generated-repo-pattern"]}}, {"ruleId": "scanner-b9088664ace7f748", "level": "note", "message": {"text": "Composite production-readiness gap"}, "properties": {"repobilityId": "2cb2319cff71a4b8", "scanner": "scanner-primary", "fingerprint": "b9088664ace7f748", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["production-readiness", "repo-hardening", "generated-repo-pattern"]}}, {"ruleId": "scanner-ea8f3013f588db25", "level": "note", "message": {"text": "Shallow git history limits provenance confidence"}, "properties": {"repobilityId": "7fe84c4067da4fcc", "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": "d61ae0ca8ec3e98c", "scanner": "scanner-primary", "fingerprint": "8424db9c75e04ba4", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["provenance", "git-history", "generated-repo-pattern"]}}, {"ruleId": "scanner-9b4bf3b404b12e92", "level": "none", "message": {"text": "Commented-code block (5 lines) in web/js/render.js:246"}, "properties": {"repobilityId": "908b7c726a69634f", "scanner": "scanner-primary", "fingerprint": "9b4bf3b404b12e92", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-ba2ddf8fa2018d99", "level": "none", "message": {"text": "Commented-code block (5 lines) in web/js/game.js:861"}, "properties": {"repobilityId": "1ef6b9d55af84a7e", "scanner": "scanner-primary", "fingerprint": "ba2ddf8fa2018d99", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-43e0b8868e75a93b", "level": "none", "message": {"text": "Commented-code block (5 lines) in tools/boon_check.js:120"}, "properties": {"repobilityId": "0326d33b6815314b", "scanner": "scanner-primary", "fingerprint": "43e0b8868e75a93b", "layer": "quality", "severity": "info", "confidence": 1.0, "tags": ["integrity", "commented-code", "dead-code"]}}, {"ruleId": "scanner-8d641183e6642ea6", "level": "warning", "message": {"text": "`fetch()` without try/.catch or AbortSignal \u2014 tools/boon_check.js:1054"}, "properties": {"repobilityId": "9df45a352633acef", "scanner": "scanner-primary", "fingerprint": "8d641183e6642ea6", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-889bfbafa864fe4d", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 tools/gen_sprites.py:100"}, "properties": {"repobilityId": "c044b1669b3bf9b2", "scanner": "scanner-primary", "fingerprint": "889bfbafa864fe4d", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-ac1660ed87e76e44", "level": "warning", "message": {"text": "Network/subprocess call without timeout or try/except \u2014 tools/gen_lich_tts.py:111"}, "properties": {"repobilityId": "e0ec0dbfe7aa4507", "scanner": "scanner-primary", "fingerprint": "ac1660ed87e76e44", "layer": "quality", "severity": "medium", "confidence": 1.0, "tags": ["integrity", "fragile-runtime", "robustness"]}}, {"ruleId": "scanner-2c04133e54348533", "level": "note", "message": {"text": "Near-duplicate function bodies in 2 places"}, "properties": {"repobilityId": "1a7a0c0c429f165b", "scanner": "scanner-primary", "fingerprint": "2c04133e54348533", "layer": "quality", "severity": "low", "confidence": 1.0, "tags": ["integrity", "duplicate", "dry"]}}]}]}