File size: 5,201 Bytes
ffc1e7c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | {
"test_case": "TC_V2_047",
"repository_name": "tutorial",
"repository_path": "C:\\repos\\flask\\examples\\tutorial",
"pair_cap": 25,
"v1_max_files": 25,
"repository_files": 9,
"governance_findings_total": 2,
"governance_safe": 0,
"governance_review": 2,
"governance_block": 0,
"governance_per_file": {
"flaskr\\__init__.py": {
"file_path": "flaskr\\__init__.py",
"findings": [
{
"file_path": "flaskr\\__init__.py",
"function_name": "create_app",
"line_number": 13,
"check_name": "global_state_mutation",
"category": "GLOBAL_MUTATION",
"severity": "REVIEW",
"detail": "Function 'create_app' mutates module-level name 'DATABASE'.",
"evidence": "DATABASE=os.path.join(app.instance_path, \"flaskr.sqlite\"),"
}
]
},
"tests\\conftest.py": {
"file_path": "tests\\conftest.py",
"findings": [
{
"file_path": "tests\\conftest.py",
"function_name": "app",
"line_number": 16,
"check_name": "dangerous_api_call",
"category": "DELETE_OPERATION",
"severity": "REVIEW",
"detail": "Function 'app' calls 'os.unlink', classified as DELETE_OPERATION.",
"evidence": "os.unlink"
}
]
}
},
"decision_pipeline_candidate_source": "token-overlap-fallback",
"decision_pipeline_candidates": 4,
"decision_pipeline_analyzed": 4,
"decision_pipeline_safe": 1,
"decision_pipeline_review": 3,
"decision_pipeline_block": 0,
"decision_pipeline_opposing_detected": 0,
"decision_pipeline_errors": 0,
"decision_pipeline_results": [
{
"file_path": "C:\\repos\\flask\\examples\\tutorial\\flaskr\\auth.py",
"file_path_b": null,
"function_a": "login_required",
"function_b": "login",
"semantic_decision": "REVIEW",
"semantic_score": 0.83,
"behavioral_tags_a": [],
"behavioral_tags_b": [
"AUTH_OPERATION",
"DATABASE_OPERATION"
],
"behavioral_risk_a": "LOW",
"behavioral_risk_b": "HIGH",
"fusion_decision": "REVIEW",
"fusion_risk_score": 67,
"fusion_risk_level": "HIGH",
"fusion_opposing_detected": false,
"governance_action": "INDIVIDUAL_APPROVAL",
"pipeline_complete": true
},
{
"file_path": "C:\\repos\\flask\\examples\\tutorial\\flaskr\\db.py",
"file_path_b": null,
"function_a": "init_db",
"function_b": "init_db_command",
"semantic_decision": "REVIEW",
"semantic_score": 0.88,
"behavioral_tags_a": [
"FILE_READ"
],
"behavioral_tags_b": [],
"behavioral_risk_a": "MEDIUM",
"behavioral_risk_b": "LOW",
"fusion_decision": "REVIEW",
"fusion_risk_score": 35,
"fusion_risk_level": "MEDIUM",
"fusion_opposing_detected": false,
"governance_action": "BATCH_APPROVAL",
"pipeline_complete": true
},
{
"file_path": "C:\\repos\\flask\\examples\\tutorial\\flaskr\\db.py",
"file_path_b": null,
"function_a": "init_db",
"function_b": "init_app",
"semantic_decision": "REVIEW",
"semantic_score": 0.68,
"behavioral_tags_a": [
"FILE_READ"
],
"behavioral_tags_b": [],
"behavioral_risk_a": "MEDIUM",
"behavioral_risk_b": "LOW",
"fusion_decision": "REVIEW",
"fusion_risk_score": 42,
"fusion_risk_level": "MEDIUM",
"fusion_opposing_detected": false,
"governance_action": "BATCH_APPROVAL",
"pipeline_complete": true
},
{
"file_path": "C:\\repos\\flask\\examples\\tutorial\\flaskr\\db.py",
"file_path_b": null,
"function_a": "init_db_command",
"function_b": "init_app",
"semantic_decision": "REVIEW",
"semantic_score": 0.57,
"behavioral_tags_a": [],
"behavioral_tags_b": [],
"behavioral_risk_a": "LOW",
"behavioral_risk_b": "LOW",
"fusion_decision": "SAFE",
"fusion_risk_score": 17,
"fusion_risk_level": "LOW",
"fusion_opposing_detected": false,
"governance_action": "AUTO_APPLY",
"pipeline_complete": true
}
],
"v1_findings_count": 0,
"v1_findings": [],
"total_runtime_seconds": 5.8,
"status": "PASSED"
} |