{
  "schema": "teum-report-1",
  "name": "[샘플] 문서 서비스 · AI 실패",
  "run_id": "R-048",
  "source_sha256": "612169628380326a84ebfb10ca40b6a74f62baf2972a8841106009baa5da80ba",
  "input_kind": "code",
  "source": {
    "fullName": "teum-sample/ai-failed",
    "commitSha": "5b94af0d2be9163c0792a10e9e569c95cbc7c4b7",
    "ref": "main",
    "path": "",
    "selectedFiles": 6,
    "totalFiles": 6,
    "excludedFiles": 0
  },
  "website": null,
  "status": "partial",
  "created_at": "2026-10-10T13:00:00.000Z",
  "engine_versions": {
    "semgrep": "1.178.0",
    "gitleaks": "8.30.1",
    "osv": "api-v1",
    "typescript_flow": "teum-typescript-flow-0.6",
    "typescript_authorization": "teum-typescript-authorization-0.9",
    "typescript_server_data": "teum-typescript-server-data-0.1",
    "typescript_local": "teum-typescript-local-0.2",
    "native_toolchain": "0a2d98c38b4beb858229562b36fea48702146c93729605f729d878c15de69f75",
    "native_validation": "d6b19c64c8894d3448810d18bbe8b4d37386800b8521eb8a396cb58c486d2a69",
    "native_policy_revision": "1"
  },
  "rules_sha256": "5c8d9e43567aca4f912b85374839eef54916d70415713b91080cddd976bf45f5",
  "ai_status": "failed",
  "review_policy": "teum-review-2026-10-03",
  "ai_review": {
    "status": "failed",
    "report": null
  },
  "ai_workflow": [],
  "stages": [
    {
      "kind": "static",
      "status": "completed",
      "coverage": {
        "files": [
          {
            "path": "src/users/user.repository.ts",
            "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
          },
          {
            "path": "src/auth/auth.module.ts",
            "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
          },
          {
            "path": "src/auth/session.config.ts",
            "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
          },
          {
            "path": "src/auth/redirect.ts",
            "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
          },
          {
            "path": "src/documents/download.ts",
            "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
          },
          {
            "path": "app/api/documents/route.ts",
            "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
          }
        ],
        "excluded": []
      },
      "error_code": null
    },
    {
      "kind": "secrets",
      "status": "completed",
      "coverage": {
        "files": [
          {
            "path": "src/users/user.repository.ts",
            "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
          },
          {
            "path": "src/auth/auth.module.ts",
            "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
          },
          {
            "path": "src/auth/session.config.ts",
            "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
          },
          {
            "path": "src/auth/redirect.ts",
            "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
          },
          {
            "path": "src/documents/download.ts",
            "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
          },
          {
            "path": "app/api/documents/route.ts",
            "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
          }
        ],
        "excluded": []
      },
      "error_code": null
    },
    {
      "kind": "dependencies",
      "status": "unsupported",
      "coverage": {
        "files": [],
        "excluded": []
      },
      "error_code": "dependency_files_missing"
    },
    {
      "kind": "flow",
      "status": "partial",
      "coverage": {
        "supplied_files": 6,
        "parsed_files": 6,
        "entrypoints": 1,
        "visited_files": 1,
        "steps": 98,
        "calls": 1,
        "mode": "native_analysis",
        "engine_version": "teum-typescript-flow-0.6",
        "files": [
          {
            "path": "src/users/user.repository.ts",
            "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
          },
          {
            "path": "src/auth/auth.module.ts",
            "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
          },
          {
            "path": "src/auth/session.config.ts",
            "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
          },
          {
            "path": "src/auth/redirect.ts",
            "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
          },
          {
            "path": "src/documents/download.ts",
            "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
          },
          {
            "path": "app/api/documents/route.ts",
            "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
          }
        ],
        "unknowns": 32,
        "policy_state": "bound"
      },
      "error_code": null
    },
    {
      "kind": "authorization",
      "status": "partial",
      "coverage": {
        "supplied_files": 6,
        "parsed_files": 6,
        "entrypoints": 1,
        "visited_files": 6,
        "steps": 317,
        "calls": 11,
        "mode": "native_analysis",
        "engine_version": "teum-typescript-authorization-0.9",
        "files": [
          {
            "path": "src/users/user.repository.ts",
            "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
          },
          {
            "path": "src/auth/auth.module.ts",
            "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
          },
          {
            "path": "src/auth/session.config.ts",
            "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
          },
          {
            "path": "src/auth/redirect.ts",
            "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
          },
          {
            "path": "src/documents/download.ts",
            "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
          },
          {
            "path": "app/api/documents/route.ts",
            "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
          }
        ],
        "unknowns": 1,
        "policy_state": "bound"
      },
      "error_code": null
    },
    {
      "kind": "server_data",
      "status": "not_applicable",
      "coverage": {
        "mode": "native_analysis",
        "engine_version": "teum-typescript-server-data-0.1",
        "files": [
          {
            "path": "src/users/user.repository.ts",
            "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
          },
          {
            "path": "src/auth/auth.module.ts",
            "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
          },
          {
            "path": "src/auth/session.config.ts",
            "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
          },
          {
            "path": "src/auth/redirect.ts",
            "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
          },
          {
            "path": "src/documents/download.ts",
            "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
          },
          {
            "path": "app/api/documents/route.ts",
            "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
          }
        ],
        "unknowns": 0,
        "policy_state": "not_configured"
      },
      "error_code": "server_data_not_applicable"
    },
    {
      "kind": "ai",
      "status": "failed",
      "coverage": {
        "mode": "repository_review",
        "available_files": 6,
        "excluded_files": 0,
        "provided_files": 0,
        "provided_lines": 0,
        "total_lines": 125,
        "supplied_bytes": 0,
        "files": []
      },
      "error_code": "review_timeout"
    }
  ],
  "native_analysis": {
    "archive_sha256": "612169628380326a84ebfb10ca40b6a74f62baf2972a8841106009baa5da80ba",
    "input_sha256": "854b446377a8ac7b037d1d62ff57971611601facdf8dda68dd36e2312f61e8a7",
    "toolchain_sha256": "0a2d98c38b4beb858229562b36fea48702146c93729605f729d878c15de69f75",
    "validation_sha256": "d6b19c64c8894d3448810d18bbe8b4d37386800b8521eb8a396cb58c486d2a69",
    "files": [
      {
        "path": "src/users/user.repository.ts",
        "path_hash": "4d999ef4f90292f29994d233e95363e5d29968bb86b65d997f0eac0ded12a91e"
      },
      {
        "path": "src/auth/auth.module.ts",
        "path_hash": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457"
      },
      {
        "path": "src/auth/session.config.ts",
        "path_hash": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887"
      },
      {
        "path": "src/auth/redirect.ts",
        "path_hash": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8"
      },
      {
        "path": "src/documents/download.ts",
        "path_hash": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84"
      },
      {
        "path": "app/api/documents/route.ts",
        "path_hash": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20"
      }
    ],
    "policy": {
      "state": "bound",
      "revision": 1,
      "enforcement": "unverified"
    },
    "origin": "analysis",
    "schema": "teum-native-analysis-2",
    "components": {
      "flow": {
        "engine_version": "teum-typescript-flow-0.6",
        "status": "partial",
        "error_code": null,
        "coverage": {
          "supplied_files": 6,
          "parsed_files": 6,
          "entrypoints": 1,
          "visited_files": 1,
          "steps": 98,
          "calls": 1
        },
        "candidates": [],
        "relations": [],
        "unknowns": [
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 1,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457",
              "path": "src/auth/auth.module.ts",
              "line": 1,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 3,
              "column": 191,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 3,
              "column": 191,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 3,
              "column": 16,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 3,
              "column": 16,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 4,
              "column": 28,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 4,
              "column": 28,
              "role": "evidence"
            }
          },
          {
            "reason": "exception_flow",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 4,
              "column": 22,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 5,
              "column": 16,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 6,
              "column": 7,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 6,
              "column": 36,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 6,
              "column": 62,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 6,
              "column": 62,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 7,
              "column": 14,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 7,
              "column": 14,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 10,
              "column": 19,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 10,
              "column": 19,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 11,
              "column": 25,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 11,
              "column": 25,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 11,
              "column": 101,
              "role": "evidence"
            }
          },
          {
            "reason": "exception_flow",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 11,
              "column": 19,
              "role": "evidence"
            }
          },
          {
            "reason": "unresolved_property",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 12,
              "column": 7,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 12,
              "column": 29,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 12,
              "column": 29,
              "role": "evidence"
            }
          },
          {
            "reason": "indirect_call",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 13,
              "column": 10,
              "role": "evidence"
            }
          },
          {
            "reason": "ambiguous_value",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 13,
              "column": 10,
              "role": "evidence"
            }
          },
          {
            "reason": "exception_flow",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 2,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "d5cfad084289d1504e5322be173d5f5af9b85f4f90316b440e269218e18bc457",
              "path": "src/auth/auth.module.ts",
              "line": 18,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "133662cd8b51cddebeccd472f59f3f9b6ea577e8a11af3008474c20fcab1b2b8",
              "path": "src/auth/redirect.ts",
              "line": 14,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "c146567d4a2b1fd92539552644c6e5de3f73722af7741f3b9e6d93adfcc3b887",
              "path": "src/auth/session.config.ts",
              "line": 9,
              "column": 1,
              "role": "evidence"
            }
          },
          {
            "reason": "unsupported_module_effect",
            "location": {
              "file_id": "c288ec74708ab39fb6490b324f416da37a7cb815b4475fc0daa1bb10aa5a4a84",
              "path": "src/documents/download.ts",
              "line": 23,
              "column": 1,
              "role": "evidence"
            }
          }
        ]
      },
      "authorization": {
        "engine_version": "teum-typescript-authorization-0.9",
        "status": "partial",
        "error_code": null,
        "coverage": {
          "supplied_files": 6,
          "parsed_files": 6,
          "entrypoints": 1,
          "visited_files": 6,
          "steps": 317,
          "calls": 11
        },
        "candidates": [],
        "relations": [
          {
            "kind": "unknown",
            "operation": "update",
            "trace": [
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 2,
                "column": 29,
                "role": "request"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 4,
                "column": 22,
                "role": "verification"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 3,
                "column": 16,
                "role": "auth_factory"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 1,
                "column": 1,
                "role": "sdk_import"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 5,
                "column": 16,
                "role": "actor"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 6,
                "column": 3,
                "role": "authentication_exit"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 8,
                "column": 26,
                "role": "request_url"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 7,
                "column": 14,
                "role": "data_factory"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 9,
                "column": 14,
                "role": "target"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 19,
                "role": "query"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 85,
                "role": "owner_predicate"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 19,
                "role": "mutation"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 45,
                "role": "operation_call"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 101,
                "role": "owner_value"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 11,
                "column": 101,
                "role": "actor_reference"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 13,
                "column": 3,
                "role": "response"
              },
              {
                "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
                "path": "app/api/documents/route.ts",
                "line": 12,
                "column": 3,
                "role": "error_exit"
              }
            ],
            "response_states": []
          }
        ],
        "unknowns": [
          {
            "reason": "authorization_rls_unverified",
            "location": {
              "file_id": "3a9d1dd127b1a43b3bfc62d55b30a078c044a62df57ef211c76992cfd3c78c20",
              "path": "app/api/documents/route.ts",
              "line": 7,
              "column": 14,
              "role": "evidence"
            }
          }
        ]
      },
      "server_data": {
        "engine_version": "teum-typescript-server-data-0.1",
        "status": "not_applicable",
        "error_code": "server_data_not_applicable",
        "coverage": {},
        "candidates": [],
        "relations": [],
        "unknowns": [],
        "policy_state": "not_configured",
        "rls_enforcement": "unverified",
        "field_sensitivity": "unclassified",
        "entries": []
      }
    }
  },
  "findings": [
    {
      "occurrence_id": "R-048-F-014",
      "rule_id": "teum.sql.dynamic-query",
      "engine": "semgrep",
      "severity": "medium",
      "path": "src/users/user.repository.ts",
      "start_line": 42,
      "end_line": 42,
      "masked_evidence": "  return dataSource.query(`SELECT id, email FROM users WHERE email = '${email}'`);",
      "ai_explanation": null,
      "review_criteria": "요청·저장 데이터가 SQL 문법, 셸, eval, 역직렬화에 도달하는가? 바인딩·고정 명령·안전한 파서가 이 경로를 끊는가?",
      "review_guidance": {
        "criteria": "외부 입력이 SQL 문장이나 테이블·열 이름에 합쳐지나요? 값은 매개변수로 바인딩하고 테이블·열 이름은 허용 목록으로 제한하나요?",
        "reason": "query·execute 계열 호출에서 문자열을 조합하는 패턴이에요.",
        "check": "조합한 값에 요청·파일·DB 등 외부 입력이 도달하는지, 앞에서 검증하는지 확인하세요.",
        "direction": "값은 드라이버의 매개변수로 전달하세요. 테이블·열 이름은 별도 허용 목록으로 제한하고 기존 반환값을 확인하세요."
      },
      "workflow_state": "open"
    },
    {
      "occurrence_id": "R-048-F-013",
      "rule_id": "teum.auth.jwt-hardcoded-key",
      "engine": "semgrep",
      "severity": "medium",
      "path": "src/auth/auth.module.ts",
      "start_line": 18,
      "end_line": 18,
      "masked_evidence": "jwt.sign({ sub: user.id }, '[REDACTED]', { expiresIn: '15m' });",
      "ai_explanation": null,
      "review_criteria": "비밀정보가 브라우저·로그·코드에 노출되는가? 토큰의 서명·대상·만료와 TLS 검증을 유지하는가? 가린 값의 유효성을 추측하지 않았는가?",
      "review_guidance": {
        "criteria": "고정 문자열이 운영 JWT 서명 키이며 저장소나 배포 산출물에 노출됐나요? 노출된 키를 폐기·교체하고 새 키의 보관 위치와 기존 토큰 처리 방식을 확인했나요?",
        "reason": "JWT 서명 키에 고정 문자열을 사용한 패턴이에요.",
        "check": "테스트 예제인지 운영 키인지, 저장소나 배포 산출물에 키가 노출됐는지 확인하세요.",
        "direction": "운영 키는 비밀정보 저장소로 옮기세요. 노출된 키는 코드에서 지우는 것과 별개로 폐기·교체해야 해요."
      },
      "workflow_state": "fixing"
    },
    {
      "occurrence_id": "R-048-F-009",
      "rule_id": "teum.web.cookie-secure-false",
      "engine": "semgrep",
      "severity": "low",
      "path": "src/auth/session.config.ts",
      "start_line": 9,
      "end_line": 13,
      "masked_evidence": "res.cookie('session', sessionId, {\n  httpOnly: true,\n  secure: false,\n  sameSite: 'lax',\n});",
      "ai_explanation": null,
      "review_criteria": "외부 HTML, 상태 변경 요청, 쿠키, CORS, 리다이렉트에 실제 입력 경로가 있는가? 용도와 허용 출처·정화 방식을 확인했는가?",
      "review_guidance": {
        "reason": "Express cookie·Next.js cookies.set 호출에 secure: false를 명시한 패턴이에요.",
        "check": "운영 인증 쿠키인지, HTTPS 환경에서도 같은 설정이 적용되는지 확인하세요.",
        "direction": "운영 인증 쿠키는 HTTPS와 Secure 설정을 함께 사용하고, 프록시·로그인 흐름에서 전달되는지 확인하세요.",
        "criteria": "secure: false가 운영 인증 쿠키에도 적용되나요? Secure를 켠 뒤 HTTPS·프록시 환경에서 로그인과 쿠키 전달이 정상 동작하나요?"
      },
      "workflow_state": "accepted"
    },
    {
      "occurrence_id": "R-048-F-018",
      "rule_id": "teum.web.request-redirect",
      "engine": "semgrep",
      "severity": "medium",
      "path": "src/auth/redirect.ts",
      "start_line": 14,
      "end_line": 14,
      "masked_evidence": "res.redirect(req.query.next);",
      "ai_explanation": null,
      "review_criteria": "외부 HTML, 상태 변경 요청, 쿠키, CORS, 리다이렉트에 실제 입력 경로가 있는가? 용도와 허용 출처·정화 방식을 확인했는가?",
      "review_guidance": {
        "reason": "요청 입력이 같은 함수 안에서 Express·Web Response·Next.js 리다이렉트 목적지로 이어지는 패턴이에요.",
        "check": "외부 URL이나 //로 시작하는 주소가 들어갈 수 있는지, 앞에서 검증하는지 확인하세요.",
        "direction": "목적지는 허용한 내부 경로나 고정된 origin으로 제한하고, URL을 해석한 결과를 검증하세요.",
        "criteria": "요청 값으로 외부 URL이나 //로 시작하는 목적지를 지정할 수 있나요? URL 해석 후 허용한 내부 경로나 origin으로만 이동하도록 제한하나요?"
      },
      "workflow_state": "open"
    },
    {
      "occurrence_id": "R-048-F-019",
      "rule_id": "teum.path.request-sendfile",
      "engine": "semgrep",
      "severity": "medium",
      "path": "src/documents/download.ts",
      "start_line": 23,
      "end_line": 23,
      "masked_evidence": "res.sendFile(req.params.filename);",
      "ai_explanation": null,
      "review_criteria": "외부 값이 파일 경로·fetch 목적지를 결정하는가? 정규화 후 루트 경계, DNS·리다이렉트, 크기·형식·압축 해제 제한이 유지되는가?",
      "review_guidance": {
        "reason": "요청 입력이 같은 함수 안에서 sendFile의 경로로 이어지는 패턴이에요.",
        "check": "상위 경로 이동·인코딩·심볼릭 링크로 허용한 디렉터리를 벗어날 수 있는지 확인하세요.",
        "direction": "사용자에게 경로를 직접 받기보다 허용된 파일 ID를 매핑하세요. 최종 경로와 파일 접근 권한도 검증하세요.",
        "criteria": "요청 경로가 상위 경로 이동·인코딩·심볼릭 링크를 통해 허용 디렉터리를 벗어날 수 있나요? 최종 파일 경로와 요청자의 접근 권한을 함께 검사하나요?"
      },
      "workflow_state": "reviewing"
    }
  ],
  "comparison": [],
  "limitations": "국소 JS·TS·Python 규칙·비밀정보 패턴과, 점검 범위에 기록된 의존성 취약점 대조 결과입니다. 미지원·미점검 영역과 실행 검증을 포함한 전체 안전을 보증하지 않습니다.",
  "sample": true
}