{"schema_version":"2","scorer_version":"0.1.0","scoring_version":"prov-5+qual-2+sec-2","generated_at":"2026-11-14T14:52:00.837228Z","repo":{"ref":{"host":"github.com","owner":"LEstradioto","name":"greendefense"},"default_branch":"main","clone_url":"https://github.com/LEstradioto/greendefense.git","html_url":"https://github.com/LEstradioto/greendefense","description":"Tower Defense GAME (100% Vibe-coded Gaming Experience)","stars":0,"forks":1,"is_fork":false,"is_archived":false,"is_private":false,"size_kb":2211,"primary_language":"JavaScript","license_spdx":"MIT","created_at":"2025-03-29T17:55:07Z","pushed_at":"2025-04-09T17:47:19Z","security_policy_url":null,"distribution":{"owner_created_at":"2016-10-02T19:23:12Z","owner_type":"User","release_assets":[]}},"commit_sha":"cd6befcd165150199b07492a57294f7bab178cc5","profile":{"lines_by_language":{"JavaScript":15252},"files_by_category":{"source":19,"binary":9,"docs":7,"config":5,"other":5},"source_lines":15252,"test_lines":0},"pillars":{"ai_provenance":{"score":0.0,"confidence":0.49,"coverage":1.0,"label":"possible","breakdown":{"attributed_share":0.0,"suspected_share":0.2785,"estimated_share":0.0,"ai_artifacts":1.0,"flagged_work_units":2.0,"flagged_releases":null,"style_index":0.262},"summary":"Weak signals consistent with AI-assisted development."},"quality":{"score":51.3,"confidence":0.9,"coverage":1.0,"label":"weak","breakdown":{"complexity":47.0,"duplication":76.2,"lint":95.2,"testing":0.0,"docs":85.0,"type_safety":null,"process":null},"summary":"Code quality is weak: test-to-source ratio 0.00, no CI test run detected; 25% of function code in complex or long functions; 5% duplicated lines. Weakest area: testing."},"security":{"score":80.3,"confidence":0.85,"coverage":1.0,"label":"adequate","breakdown":{"secrets":100.0,"sast":95.8,"dependencies":null,"ci_actions":null,"posture":0.0,"scorecard":null},"summary":"Security posture is adequate: 1 high-severity SAST findings. Weakest area: posture."}},"analyzer_results":[{"analyzer":"sec-scorecard","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":"no published OpenSSF Scorecard result for this repo"},{"analyzer":"sec-registry","pillar":"security","status":"ok","tool_version":null,"metrics":{"declared":7.0,"checked":7.0,"missing":0.0,"recent":0.0,"lookup_errors":0.0},"findings":[],"evidence":[],"data":{"phantom":false},"error":null},{"analyzer":"ai-attribution","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"commits":34.0,"attributed_commits":0.0,"attributed_commit_share":0.0,"effective_loc":22128.0,"attributed_loc":0.0,"attributed_loc_share":0.0,"tools_detected":0.0},"findings":[],"evidence":[],"data":{"attributed_loc_by_commit":{},"tools":{},"monthly":{"2025-03":{"loc":17097,"attributed_loc":0},"2025-04":{"loc":5031,"attributed_loc":0}}},"error":null},{"analyzer":"ai-artifacts","pillar":"ai_provenance","status":"ok","tool_version":"signatures-v1","metrics":{"artifacts":1.0,"workflow_agents":0.0,"tools_configured":1.0,"earliest_adoption":1743120132.0},"findings":[],"evidence":[{"kind":"ai-artifact","description":"CLAUDE.md (claude-code configuration)","ref":"CLAUDE.md","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/CLAUDE.md","weight":0.5}],"data":{"artifacts":[{"tool":"claude-code","path":"CLAUDE.md","added_at":1743120132}],"workflows":[],"tools":["claude-code"]},"error":null},{"analyzer":"ai-velocity","pillar":"ai_provenance","status":"ok","tool_version":"prov-4","metrics":{"work_units":15.0,"flagged_units":2.0,"pre_ai_era_bursts":0.0,"pre_ai_era_measured_loc":0.0,"pre_ai_era_burst_loc":0.0,"measured_loc":15522.0,"flagged_loc":6162.0,"flagged_loc_share":0.3969849246231156,"max_loc_per_hour":1028.8125376732971,"median_loc_per_hour":336.05095818815334,"pr_timed_units":0.0,"excluded_import_loc":6606.0},"findings":[],"evidence":[{"kind":"velocity-burst","description":"4,267 lines of first-party code in ~4.1h (1,029 lines/hour, 3 commit session)","ref":"cd6befcd165150199b07492a57294f7bab178cc5","url":"https://github.com/LEstradioto/greendefense/commit/cd6befcd165150199b07492a57294f7bab178cc5","weight":0.3086437613019891},{"kind":"velocity-burst","description":"1,895 lines of first-party code in ~2.2h (878 lines/hour, 1 commit session)","ref":"5c2ebd17e8b97722a23318ce3f1bcf5fe76d7176","url":"https://github.com/LEstradioto/greendefense/commit/5c2ebd17e8b97722a23318ce3f1bcf5fe76d7176","weight":0.2632960247008877}],"data":{"flagged_loc_by_commit":{"5c2ebd17e8b97722a23318ce3f1bcf5fe76d7176":1895,"14439c932397b5421178144e6bbc920e4ad7cf8e":4260,"0c066e55bde5288516c7e3ab7aca9315b3daf04f":2,"cd6befcd165150199b07492a57294f7bab178cc5":5},"excluded_import_commits":["52c3a5015388b0d5908e29ade7d95ae2b9220565","beb18141ef6c34a7b78e51eeae27d139f68664e4"]},"error":null},{"analyzer":"ai-release-velocity","pillar":"ai_provenance","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"ai-stylometry","pillar":"ai_provenance","status":"ok","tool_version":null,"metrics":{"lines_scanned":15252.0,"index":0.262,"count:narrated_steps":1.0,"per_kloc:narrated_steps":0.066,"files:narrated_steps":1.0,"count:placeholder":1.0,"per_kloc:placeholder":0.066,"files:placeholder":1.0,"count:emoji_in_code":2.0,"per_kloc:emoji_in_code":0.131,"files:emoji_in_code":2.0,"count:assistant_voice":0.0,"per_kloc:assistant_voice":0.0,"files:assistant_voice":0.0},"findings":[],"evidence":[{"kind":"stylometry:placeholder","description":"placeholder or demo-only phrasing: // In a real implementation, this would draw from the player's shuffled deck","ref":"src/tcg-integration.js:335","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/tcg-integration.js#L335","weight":0.0},{"kind":"stylometry:narrated_steps","description":"step-by-step narration comment: // First, remove the old preview","ref":"src/ui.js:472","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/ui.js#L472","weight":0.0}],"data":{},"error":null},{"analyzer":"sec-secrets","pillar":"security","status":"ok","tool_version":"gitleaks 8.30.1","metrics":{"secrets_current":0.0,"secrets_history":0.0,"secrets_nonprod":0.0,"secrets_low_confidence":0.0},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-sast","pillar":"security","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":2.0,"findings_high":1.0,"findings_medium":0.0,"findings_low":1.0,"weighted_findings":1.862,"scanned_lines":15252.0,"parse_errors":0.0},"findings":[{"rule_id":"opengrep/dockerfile.security.missing-user","severity":"high","message":"By not specifying a USER, a program in the container may run as 'root'. This is a security hazard. If an attacker can control a process running as root, they may have control over the container. Ensure that the last USER in a Dockerfile is a USER other than 'root'. [confidence medium]","path":"Dockerfile","line":33,"fingerprint":"dockerfile.security.missing-user:Dockerfile:33"},{"rule_id":"opengrep/javascript.lang.security.audit.unsafe-formatstring","severity":"low","message":"Detected string concatenation with a non-literal variable in a util.format / console.log function. If an attacker injects a format specifier in the string, it will forge the log message. Try to use constant values for the format string. [confidence low]","path":"src/managers/TowerInstanceManager.js","line":188,"fingerprint":"javascript.lang.security.audit.unsafe-formatstring:src/managers/TowerInstanceManager.js:188"}],"evidence":[],"data":{"rulesets":["javascript","dockerfile"]},"error":null},{"analyzer":"sec-deps","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-actions","pillar":"security","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null},{"analyzer":"sec-posture","pillar":"security","status":"ok","tool_version":null,"metrics":{"check:security_policy":0.0,"check:dependency_updates":0.0,"check:signed_commits":0.0,"check:lockfiles":0.0,"signed_commit_share":0.0294,"unpinned_manifests":1.0},"findings":[],"evidence":[{"kind":"posture","description":"package.json has no lockfile alongside it (unpinned dependencies)","ref":"package.json","url":null,"weight":0.3}],"data":{},"error":null},{"analyzer":"sec-distribution","pillar":"security","status":"ok","tool_version":null,"metrics":{"signals":0.0,"binary_assets":0.0,"suspicious":0.0},"findings":[],"evidence":[],"data":{"signals":[],"suspicious":false,"unusual_traction":false,"metadata":true},"error":null},{"analyzer":"qual-complexity","pillar":"quality","status":"ok","tool_version":"lizard 1.25.1","metrics":{"functions":612.0,"function_nloc":10047.0,"mean_ccn":3.81,"p90_ccn":9.0,"complex_functions":24.0,"long_functions":9.0,"many_param_functions":6.0,"risky_nloc_share":0.2516},"findings":[],"evidence":[{"kind":"complex-function","description":"spawnEnemy in src/game.js: complexity 63, 221 lines","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L818","weight":1.0},{"kind":"complex-function","description":"update in src/game.js: complexity 39, 123 lines","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L344","weight":0.65},{"kind":"complex-function","description":"updateEnemyEffects in src/managers/EnemyInstanceManager.js: complexity 29, 90 lines","ref":"src/managers/EnemyInstanceManager.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/managers/EnemyInstanceManager.js#L385","weight":0.48333333333333334},{"kind":"complex-function","description":"canPlaceTower in src/map.js: complexity 29, 69 lines","ref":"src/map.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/map.js#L311","weight":0.48333333333333334},{"kind":"complex-function","description":"followPath in src/entities/enemy.js: complexity 24, 84 lines","ref":"src/entities/enemy.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/enemy.js#L362","weight":0.4},{"kind":"complex-function","description":"completeWave in src/game.js: complexity 24, 82 lines","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L670","weight":0.4},{"kind":"complex-function","description":"onTowerPlaced in src/tcg-integration.js: complexity 24, 70 lines","ref":"src/tcg-integration.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/tcg-integration.js#L641","weight":0.4},{"kind":"complex-function","description":"animate in src/renderer.js: complexity 22, 47 lines","ref":"src/renderer.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/renderer.js#L2365","weight":0.36666666666666664},{"kind":"complex-function","description":"update in src/entities/enemy.js: complexity 20, 57 lines","ref":"src/entities/enemy.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/enemy.js#L167","weight":0.3333333333333333},{"kind":"complex-function","description":"defeatEnemy in src/game.js: complexity 20, 52 lines","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L1236","weight":0.3333333333333333}],"data":{},"error":null},{"analyzer":"qual-duplication","pillar":"quality","status":"ok","tool_version":"repotrust-dup-w6","metrics":{"compared_lines":10832.0,"duplicated_lines":490.0,"duplicated_share":0.0452,"files":19.0},"findings":[],"evidence":[{"kind":"duplicate-code","description":"6+ duplicated lines: main.js:801 and src/ui.js:56","ref":"main.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/main.js#L801","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/entities/enemy.js:194 and src/entities/enemy.js:403","ref":"src/entities/enemy.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/enemy.js#L194","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/entities/projectile.js:60 and src/game.js:3227","ref":"src/entities/projectile.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/projectile.js#L60","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/entities/tower.js:8 and src/game.js:1474","ref":"src/entities/tower.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/tower.js#L8","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/entities/tower.js:257 and src/entities/tower.js:525","ref":"src/entities/tower.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/entities/tower.js#L257","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/game.js:832 and src/game.js:2547","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L832","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/game.js:1333 and src/renderer.js:915","ref":"src/game.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/game.js#L1333","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/managers/EnemyInstanceManager.js:724 and src/managers/EnemyInstanceManager.js:748","ref":"src/managers/EnemyInstanceManager.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/managers/EnemyInstanceManager.js#L724","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/managers/TowerInstanceManager.js:124 and src/managers/TowerInstanceManager.js:275","ref":"src/managers/TowerInstanceManager.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/managers/TowerInstanceManager.js#L124","weight":0.3},{"kind":"duplicate-code","description":"6+ duplicated lines: src/map.js:357 and src/map.js:389","ref":"src/map.js","url":"https://github.com/LEstradioto/greendefense/blob/cd6befcd165150199b07492a57294f7bab178cc5/src/map.js#L357","weight":0.3}],"data":{},"error":null},{"analyzer":"qual-lint","pillar":"quality","status":"ok","tool_version":"opengrep 1.33.1; rules f1d2b562b414","metrics":{"findings":6.0,"weighted_findings":3.0,"scanned_lines":15252.0,"category:best-practice":2.0,"category:correctness":4.0},"findings":[{"rule_id":"opengrep/javascript.lang.best-practice.javascript-alert","severity":"medium","message":"found alert() call; should this be in production code?","path":"src/game.js","line":2133,"fingerprint":"javascript.lang.best-practice.javascript-alert:src/game.js:2133"},{"rule_id":"opengrep/javascript.lang.best-practice.javascript-alert","severity":"medium","message":"found alert() call; should this be in production code?","path":"src/game.js","line":2136,"fingerprint":"javascript.lang.best-practice.javascript-alert:src/game.js:2136"},{"rule_id":"opengrep/javascript.lang.correctness.missing-template-string-indicator","severity":"low","message":"This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'?","path":"src/renderer.js","line":2168,"fingerprint":"javascript.lang.correctness.missing-template-string-indicator:src/renderer.js:2168"},{"rule_id":"opengrep/javascript.lang.correctness.missing-template-string-indicator","severity":"low","message":"This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'?","path":"src/renderer.js","line":2168,"fingerprint":"javascript.lang.correctness.missing-template-string-indicator:src/renderer.js:2168"},{"rule_id":"opengrep/javascript.lang.correctness.missing-template-string-indicator","severity":"low","message":"This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'?","path":"src/tcg-integration.js","line":184,"fingerprint":"javascript.lang.correctness.missing-template-string-indicator:src/tcg-integration.js:184"},{"rule_id":"opengrep/javascript.lang.correctness.missing-template-string-indicator","severity":"low","message":"This looks like a JavaScript template string. Are you missing a '$' in front of '{...}'?","path":"src/tcg-integration.js","line":184,"fingerprint":"javascript.lang.correctness.missing-template-string-indicator:src/tcg-integration.js:184"}],"evidence":[],"data":{},"error":null},{"analyzer":"qual-testing","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:has_tests":0.0,"check:test_ratio":0.0,"check:ci_present":0.0,"check:ci_runs_tests":0.0,"check:ci_runs_lint":0.0,"check:tests_cochange":0.0,"test_lines":0.0,"source_lines":15252.0,"test_ratio":0.0,"ci_files":0.0,"cochange_share":0.0,"cochange_commits":25.0},"findings":[],"evidence":[],"data":{"test_commands":[],"lint_commands":[]},"error":null},{"analyzer":"qual-docs","pillar":"quality","status":"ok","tool_version":null,"metrics":{"check:readme":1.0,"check:license":1.0,"check:contributing":0.0,"check:changelog":1.0,"readme_lines":48.0},"findings":[],"evidence":[{"kind":"docs","description":"README.md","ref":"README.md","url":null,"weight":0.0},{"kind":"docs","description":"LICENSE","ref":"LICENSE","url":null,"weight":0.0},{"kind":"docs","description":"HISTORY.md","ref":"HISTORY.md","url":null,"weight":0.0}],"data":{},"error":null},{"analyzer":"qual-type-safety","pillar":"quality","status":"skipped","tool_version":null,"metrics":{},"findings":[],"evidence":[],"data":{},"error":null}],"flags":[]}