{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D33","name":"JS/npm Dependency Vulnerabilities","shortDescription":{"text":"JS/npm Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D33","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D40","name":"Network Egress Confinement","shortDescription":{"text":"Network Egress Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D40"},{"id":"D41","name":"Kernel \u0026 Syscall Confinement","shortDescription":{"text":"Kernel \u0026 Syscall Confinement"},"helpUri":"https://codehealth.canine.dev/dimensions/D41"},{"id":"D42","name":"Runtime Threat Enforcement","shortDescription":{"text":"Runtime Threat Enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/D42"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"build.get_workflow_representation (cyclomatic 48): build.get_workflow_representation has cyclomatic complexity 48 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/build.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7a760050299e697ff406561282e7beb5bc96913c4ccb8834afd0b83e999449"}},{"ruleId":"D1","level":"warning","message":{"text":"pytest_cmd.pytest_cmd (cyclomatic 43): pytest_cmd.pytest_cmd has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0134d9d24d87adb8d136e7804188bbf24950fe0726c39983d181820dbd796c2e"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment_config.read_deployment_config (cyclomatic 41): deployment_config.read_deployment_config has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/deployment_config.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"36805935bd0725af46e5fe409f72ea99417aa519f2e2fd4564cfcc5007b283d8"}},{"ruleId":"D1","level":"warning","message":{"text":"init._create (cyclomatic 33): init._create has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/init.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ff3b6ea1edef54dfae610dc89e816c0df528b4f31b8e9e63c7237b255f2310"}},{"ruleId":"D1","level":"warning","message":{"text":"_ControlLoopRunner.run (cyclomatic 32): _ControlLoopRunner.run has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/runner.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"c797a34587d8ed3384f3103d80e9651b35250c318bf0406287b3f15f4220a182"}},{"ruleId":"D1","level":"warning","message":{"text":"GitService._check_github_access_type (cyclomatic 26): GitService._check_github_access_type has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9d368c2e731f62906e4e01cf9163003e29a060bb8351088dd88163fcc60954"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment._execute_deployment_operation (cyclomatic 26): deployment._execute_deployment_operation has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8658ee24ef1cd22d3736646fe66402f5a65986dca7e5c8f2373251ce01e46cd8"}},{"ruleId":"D1","level":"warning","message":{"text":"DeploymentService.update_deployment (cyclomatic 23): DeploymentService.update_deployment has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/deployments_service.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"af47fa05ecb6a34674aeec6e9b38dea3dd58818e143ae38963e2088da6275a10"}},{"ruleId":"D1","level":"warning","message":{"text":"iter_utils.merge_generators (cyclomatic 22): iter_utils.merge_generators has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/iter_utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"217fbec7ad787d45d4294e567ab4b7a6ea87eb136f51c42434b327229b4f6029"}},{"ruleId":"D1","level":"warning","message":{"text":"utils.inspect_signature (cyclomatic 22): utils.inspect_signature has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/utils.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ad5d990249488cfd4dd6efa338ad39fdc2017fbf7d0b9475dd24278c323483"}},{"ruleId":"D1","level":"warning","message":{"text":"auth._run_device_authentication (cyclomatic 22): auth._run_device_authentication has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/auth.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f36e80316f4eb7557c84836fb51f7826380b8ef92c14abaf719fa71fe2dc911"}},{"ruleId":"D1","level":"warning","message":{"text":"runner.run_workflow (cyclomatic 21): runner.run_workflow has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-dbos/tests/fixtures/runner.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cebc65030ff3f25d6ad7e1b4e9110e804c758fd70362cd2ba46aee2d27bc33c"}},{"ruleId":"D1","level":"warning","message":{"text":"GitService._validate_github_application (cyclomatic 20): GitService._validate_github_application has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"236ab902adf3d28dd3c652cf8d88bd85c1c1604cfcfbc0d07791cbc5ac358a8f"}},{"ruleId":"D1","level":"warning","message":{"text":"reduce._apply_step_result (cyclomatic 20): reduce._apply_step_result has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e93dd84cc81e22d7a5ef71a1c457bff9d7c87caa7244b19e9e324dbc1bd12f"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.use_project (cyclomatic 20): projects.use_project has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/projects.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28aa0ca06e16b590ccbf76e90d7e0687567c56ed9b04ab8f139e9d7368187b5"}},{"ruleId":"D1","level":"warning","message":{"text":"interactive._blessed_select (cyclomatic 20): interactive._blessed_select has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/interactive.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0aaae4a8fcdff3f306ea2b8fe3260d0995594f00fffc1783f2064d84944a80"}},{"ruleId":"D1","level":"warning","message":{"text":"deployments.apply_deployment_update (cyclomatic 19): deployments.apply_deployment_update has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/schema/deployments.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09dfbdf7c23d0a6665ae4b8086ed6169ca17af73dcad125a6e2499902e0fe9b"}},{"ruleId":"D1","level":"warning","message":{"text":"validate.build_step_graph (cyclomatic 19): validate.build_step_graph has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"373b813ccf32ceca77a6f55ec9c81e7c13a0a87086bf0ac70952b8ff631f765e"}},{"ruleId":"D1","level":"warning","message":{"text":"validate._validate_event_connectivity (cyclomatic 19): validate._validate_event_connectivity has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f2e168063ed64aa5635bdee1ee86eed7d3a069e28daf72bca4396179991773"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow._render_pyvis (cyclomatic 18): workflow._render_pyvis has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c796b7283f7d6585e22fde8fdd7e297952d62c7b045281c5061610afd8136af0"}},{"ruleId":"D1","level":"warning","message":{"text":"build_gc._get_referenced_build_ids_from_replicasets (cyclomatic 17): build_gc._get_referenced_build_ids_from_replicasets has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/build_api/build_gc.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"129ea8934e5f25574ca7fd555ed90a191a1b060e0cff30cd09c152be968514f8"}},{"ruleId":"D1","level":"warning","message":{"text":"pytest_cmd.extract_failed_test_names (cyclomatic 17): pytest_cmd.extract_failed_test_names has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6e6cfa345318de306dee9668adec512863916dbbb7bc745f1702cb43671726"}},{"ruleId":"D1","level":"warning","message":{"text":"EventEnvelope.parse (cyclomatic 16): EventEnvelope.parse has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-client/src/llama_agents/client/protocol/serializable_events.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cd28c8beb58ea1d646201495decae5af6cb5e5286807200be53d5552136aec"}},{"ruleId":"D1","level":"warning","message":{"text":"GitService.validate_repository (cyclomatic 16): GitService.validate_repository has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7c846257929185e2f85ab1d783270d2db49dcbc5284768159cda0d77798ad9"}},{"ruleId":"D1","level":"warning","message":{"text":"k8s_client._llamadeployment_to_response (cyclomatic 16): k8s_client._llamadeployment_to_response has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bcaa61c63f8fab4ad0228fe0bb5c253af2c3fc660ef279cdb2da8ec0bc0c99"}},{"ruleId":"D1","level":"warning","message":{"text":"DeploymentService.create_deployment (cyclomatic 16): DeploymentService.create_deployment has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/deployments_service.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"221f006e3cfbd9dec8731b90904fefb2b258dce363048a102cf00d16dc6ba853"}},{"ruleId":"D1","level":"warning","message":{"text":"git_util.clone_repo_sync (cyclomatic 16): git_util.clone_repo_sync has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/git/git_util.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a9837e3a615a0d066b1ce1ddace225bcc6bc5d565075c692bbd7b8d4489de3"}},{"ruleId":"D1","level":"warning","message":{"text":"validate.validate_graph (cyclomatic 16): validate.validate_graph has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb0112c517d585e4d61a30f99da7e957dfa3610b7d8bb9775081a55373f5844"}},{"ruleId":"D1","level":"warning","message":{"text":"validate._collect_catch_error_handlers (cyclomatic 16): validate._collect_catch_error_handlers has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6aaea659acb2b1c5007473534313a469702c2aa62bfdc7630fad775660491a3"}},{"ruleId":"D1","level":"warning","message":{"text":"utils._event_list_element_types (cyclomatic 16): utils._event_list_element_types has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/utils.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5808212fae677a55000ec6e694721df5f4a6734ee5bea72eea3d96d3bf8b9f81"}},{"ruleId":"D1","level":"warning","message":{"text":"serve._maybe_inject_llama_cloud_credentials (cyclomatic 16): serve._maybe_inject_llama_cloud_credentials has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/serve.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac25a113090c1fd34a900d04605ff8de27357866c72d8fd3a4badc34ba24835"}},{"ruleId":"D1","level":"warning","message":{"text":"yaml_template.render (cyclomatic 16): yaml_template.render has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/yaml_template.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7898a0fc217aeefd822960dd575ebb1c394836b206723eb9a236b512294ab83d"}},{"ruleId":"D2","level":"warning","message":{"text":"build.get_workflow_representation (cognitive 99): build.get_workflow_representation has cognitive complexity 99 (threshold 15). Drivers by points: if/else 60, loops 25, boolean chains 13, ternaries 1 (nesting depth added 50). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/build.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e022d6de163f62c300f87d518cc21f961ffe9b53b1e77046eeaf5014f414d24"}},{"ruleId":"D2","level":"warning","message":{"text":"pytest_cmd.pytest_cmd (cognitive 91): pytest_cmd.pytest_cmd has cognitive complexity 91 (threshold 15). Drivers by points: if/else 52, ternaries 22, loops 13, boolean chains 4 (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8094345f9045e86d00c43f4d6e6a4a598703db84e813e6523e1104a3ab74d5"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment_config.read_deployment_config (cognitive 86): deployment_config.read_deployment_config has cognitive complexity 86 (threshold 15). Drivers by points: if/else 61, boolean chains 11, ternaries 8, error handling 6 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/deployment_config.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a6302357db7028f659962001a4c3b032250abe2a6bd48371da2f4fc781783c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ControlLoopRunner.run (cognitive 69): _ControlLoopRunner.run has cognitive complexity 69 (threshold 15). Drivers by points: if/else 39, error handling 16, loops 12, boolean chains 2 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/runner.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93f11947f9182441ce9cb88cf294709f0aace7bef53eec85001506bdab5e231"}},{"ruleId":"D2","level":"warning","message":{"text":"init._create (cognitive 65): init._create has cognitive complexity 65 (threshold 15). Drivers by points: if/else 46, error handling 12, boolean chains 6, loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/init.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2cd5c9d27bd974126d45671a70beba812a8db02a75ae8ce4cea437c19a8e88"}},{"ruleId":"D2","level":"warning","message":{"text":"runner.run_workflow (cognitive 51): runner.run_workflow has cognitive complexity 51 (threshold 15). Drivers by points: if/else 40, loops 9, boolean chains 1, error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-dbos/tests/fixtures/runner.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02c8c7579e5be957acc691a84924a2d6bb079a1a15359cabcbb3796fe155d01"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.inspect_signature (cognitive 47): utils.inspect_signature has cognitive complexity 47 (threshold 15). Drivers by points: if/else 37, ternaries 6, boolean chains 3, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/utils.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91cfa03f9def0d51b9af395f654511f54cf7afb1f50cfceb5414704d5af3e4d"}},{"ruleId":"D2","level":"warning","message":{"text":"iter_utils.merge_generators (cognitive 43): iter_utils.merge_generators has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21, loops 11, error handling 10, boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/iter_utils.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d61fe64d3fa548313fe4e5d868b7f78600cb6d5839566ab92cef901d36a9794"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow._render_pyvis (cognitive 38): workflow._render_pyvis has cognitive complexity 38 (threshold 15). Drivers by points: if/else 31, ternaries 3, boolean chains 2, loops 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"302844bbada6e70b3c75b8312f58114beca28131fbc08e3a2433671aca6107f5"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment._execute_deployment_operation (cognitive 35): deployment._execute_deployment_operation has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19, boolean chains 10, ternaries 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":1120}}}],"partialFingerprints":{"codehealthFindingId/v1":"960aec78cdb3cde418325bae2655f37aa2b7267d03305e9aa876248eca1d455e"}},{"ruleId":"D2","level":"warning","message":{"text":"interactive._blessed_select (cognitive 35): interactive._blessed_select has cognitive complexity 35 (threshold 15). Drivers by points: if/else 29, boolean chains 4, loops 1, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/interactive.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9ac9b3ee4ec1997a7374d8c63ebdc0bb109e479a39f8d58d000dd564b05236"}},{"ruleId":"D2","level":"warning","message":{"text":"pytest_cmd.extract_failed_test_names (cognitive 35): pytest_cmd.extract_failed_test_names has cognitive complexity 35 (threshold 15). Drivers by points: if/else 28, boolean chains 4, loops 3 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"623dba728e41fd48987976d5aca01b2a06655dd88c58b7034ede75ef4103d977"}},{"ruleId":"D2","level":"warning","message":{"text":"validate._validate_event_connectivity (cognitive 33): validate._validate_event_connectivity has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19, loops 11, ternaries 2, boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa934c2d8cb2f77a228b408a89b6c006cfff53b1eb8955b5108ae2f97dc2f9de"}},{"ruleId":"D2","level":"warning","message":{"text":"auth._run_device_authentication (cognitive 33): auth._run_device_authentication has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, boolean chains 6, error handling 2, loops 1, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/auth.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f669533f3dbc46f8a4095162b74a3e2a13a800338042c45dffaedf1f21348e"}},{"ruleId":"D2","level":"warning","message":{"text":"reduce._apply_step_result (cognitive 32): reduce._apply_step_result has cognitive complexity 32 (threshold 15). Drivers by points: if/else 29, loops 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d8dde31401582119aa3099b915fddc109184eee4a870d9005ded1fd8342dda"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.use_project (cognitive 30): projects.use_project has cognitive complexity 30 (threshold 15). Drivers by points: if/else 24, error handling 2, ternaries 2, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/projects.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b80692dd62373fed1c67242fcb6bc125299f656339e0f00528e029452e9ea9"}},{"ruleId":"D2","level":"warning","message":{"text":"build_gc._get_referenced_build_ids_from_replicasets (cognitive 29): build_gc._get_referenced_build_ids_from_replicasets has cognitive complexity 29 (threshold 15). Drivers by points: loops 11, if/else 10, boolean chains 7, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/build_api/build_gc.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cf1c26f8556ff2073af58fc9752b85192cf73991666e83c99a287973a3709b"}},{"ruleId":"D2","level":"warning","message":{"text":"GitService._check_github_access_type (cognitive 28): GitService._check_github_access_type has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, boolean chains 7, error handling 4, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a09eefd491c3b334bd5d7c31332ab38d7177ec35723c5e844eba33193eedeae"}},{"ruleId":"D2","level":"warning","message":{"text":"validate.build_step_graph (cognitive 28): validate.build_step_graph has cognitive complexity 28 (threshold 15). Drivers by points: loops 13, if/else 11, boolean chains 3, ternaries 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"715022abb96effeecd0216880e85e1f93b0485c235d2d88ea04aa4eec113208b"}},{"ruleId":"D2","level":"warning","message":{"text":"validate.validate_graph (cognitive 28): validate.validate_graph has cognitive complexity 28 (threshold 15). Drivers by points: if/else 25, loops 2, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"69432c65491c9ad6f9a14b9d617a418bcfe5ba07ae73bd0073f40329e83be184"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentService.stream_deployment_logs (cognitive 27): DeploymentService.stream_deployment_logs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19, loops 6, boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/deployments_service.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e94329b4e01e68da135bb49fc4e465aa824967029a95a3469ff9ccccc27a59"}},{"ruleId":"D2","level":"warning","message":{"text":"process_utils._stream_source (cognitive 26): process_utils._stream_source has cognitive complexity 26 (threshold 15). Drivers by points: error handling 8, if/else 8, ternaries 6, loops 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-appserver/src/llama_agents/appserver/process_utils.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4a1ace80ed647c973a042d782f99653e518d39c5770511be8f599da60160e6"}},{"ruleId":"D2","level":"warning","message":{"text":"reduce._route_to_accepting_steps (cognitive 26): reduce._route_to_accepting_steps has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21, boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e79c9c7949451a39b68140ef7401524eda19afd61c425fe34fbcf669ff2ca9c"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentService.update_deployment (cognitive 25): DeploymentService.update_deployment has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, boolean chains 11 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/deployments_service.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"048976552d416e6755cff70956353f595a75f5efbc2114aa1219b900c4ce09cb"}},{"ruleId":"D2","level":"warning","message":{"text":"FakeAgentDataBackend._matches (cognitive 25): FakeAgentDataBackend._matches has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, boolean chains 7, loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-integration-tests/src/llama_agents_integration_tests/fake_agent_data.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e9d4ee1a3a15d60e645aca509da4e1cdd2c41eab38a6b5d2de205dccd7e8c3"}},{"ruleId":"D2","level":"warning","message":{"text":"validate._collect_catch_error_handlers (cognitive 25): validate._collect_catch_error_handlers has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15, loops 6, ternaries 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e9bbbd430b058200ca913d0397e971217fc8f699c2944ba989d28de4bd9264"}},{"ruleId":"D2","level":"warning","message":{"text":"utils._event_list_element_types (cognitive 25): utils._event_list_element_types has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19, boolean chains 3, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/utils.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc00eff67fb2de9389cf8d851ff77b4ff53e3da4a00b6bf5335b2eb9f4b599b"}},{"ruleId":"D2","level":"warning","message":{"text":"BackupService._restore_entries (cognitive 24): BackupService._restore_entries has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17, boolean chains 2, error handling 2, ternaries 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/backup_service.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"018c46884f26fd8f333bb1e4d1c18217556b4aca4b953310800dd51a63fda151"}},{"ruleId":"D2","level":"warning","message":{"text":"deployments.apply_deployment_update (cognitive 24): deployments.apply_deployment_update has cognitive complexity 24 (threshold 15). Drivers by points: if/else 19, loops 2, ternaries 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/schema/deployments.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"af752abfdda368a4470d57c26605be59585ec3e075ed1f1106941b492170c1b9"}},{"ruleId":"D2","level":"warning","message":{"text":"skills_cmd.sync_skills (cognitive 24): skills_cmd.sync_skills has cognitive complexity 24 (threshold 15). Drivers by points: if/else 20, loops 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/skills_cmd.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f292e79f692369a2fcf176d154dbd66e0d5b8110fd7cfcdd8c1110b433488297"}},{"ruleId":"D2","level":"warning","message":{"text":"GitService._validate_github_application (cognitive 23): GitService._validate_github_application has cognitive complexity 23 (threshold 15). Drivers by points: error handling 9, if/else 8, boolean chains 5, ternaries 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef2785389f301cae2669bac1cdfe9a8800820a13c5ae29c3c1b8539baa67bad"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_workflow_store._matches_query (cognitive 23): memory_workflow_store._matches_query has cognitive complexity 23 (threshold 15). Drivers by points: if/else 23 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9870887741d17617895b53df03a0d70302d1fd4d41e93e119b57d086cc7e11eb"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client.update_deployment (cognitive 22): k8s_client.update_deployment has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, loops 5, error handling 3, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c9251dceaeb72badcb9c9500eb9c6dee41128058314838f0cceebabc3e62779"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow._process_tools_and_handoffs (cognitive 22): workflow._process_tools_and_handoffs has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14, loops 7, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"90410f58b2c2df1604bc79af15dc969c949f05717cd42da2a80994a7d4945b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"PersistenceDecorator._on_server_start (cognitive 21): PersistenceDecorator._on_server_start has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, error handling 5, ternaries 2, boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_runtime/persistence_runtime.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"da16185dd13ae19818a929a6f6c50593556b2f981de2c37d4bf16ea9036cf124"}},{"ruleId":"D2","level":"warning","message":{"text":"SerializedContext.from_v0 (cognitive 21): SerializedContext.from_v0 has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11, loops 10 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/context/context_types.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad629a3fd75e3cd07c0a165b52486b19a4185b5e2cca2e9be10a67a57f661027"}},{"ruleId":"D2","level":"warning","message":{"text":"serve._maybe_inject_llama_cloud_credentials (cognitive 21): serve._maybe_inject_llama_cloud_credentials has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, boolean chains 3, error handling 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/serve.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"b491118557a92fea078e840b86b612d4dc42f04b32db8d0c1f0429b7dec632ce"}},{"ruleId":"D2","level":"warning","message":{"text":"yaml_template.render (cognitive 21): yaml_template.render has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, boolean chains 3, ternaries 3, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/yaml_template.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9715e15f3e75012830b94be37e62630aa4be458d016505cf357db430c5d675"}},{"ruleId":"D2","level":"warning","message":{"text":"bootstrap.bootstrap_app_from_repo (cognitive 20): bootstrap.bootstrap_app_from_repo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 3, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-appserver/src/llama_agents/appserver/bootstrap.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6e1d7b13851f1d81eb831f3285ed487ad94818aa536ed67de018e474e4cd3"}},{"ruleId":"D2","level":"warning","message":{"text":"EventEnvelope.parse (cognitive 20): EventEnvelope.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 2, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-client/src/llama_agents/client/protocol/serializable_events.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67a20e732f1071fe8b4d21b90e63a471793cf0b3dfd88aa6ca8494446c8e39e"}},{"ruleId":"D2","level":"warning","message":{"text":"build_gc.gc_build_artifacts (cognitive 19): build_gc.gc_build_artifacts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/build_api/build_gc.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa08f513b0f01f48a813186735cbe7daf9047e9d8ea99906cba69529d5a04d2"}},{"ruleId":"D2","level":"warning","message":{"text":"GitService.validate_repository (cognitive 19): GitService.validate_repository has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 3, error handling 3, match/switch 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e160b40ce3e52f9ba9db20c99a20e7d5f127890d0b85757f3bbd1d202338c8d5"}},{"ruleId":"D2","level":"warning","message":{"text":"test_git_service.mock_github_repo_and_owner (cognitive 19): test_git_service.mock_github_repo_and_owner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 2, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/tests/test_git_service.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d01e948b314be4d05ff9d71cf0a1a7bb3869837ff664872894606d56bac29fc"}},{"ruleId":"D2","level":"warning","message":{"text":"migrate.run_migrations (cognitive 19): migrate.run_migrations has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/sqlite/migrate.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb20a479bba95d3b244a4819235ff9345b99a76319ab5e1ccf8d262db73c34d9"}},{"ruleId":"D2","level":"warning","message":{"text":"ui_proxy._ws_proxy (cognitive 18): ui_proxy._ws_proxy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 5, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-appserver/src/llama_agents/appserver/routers/ui_proxy.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f734a0233248246ac55b2c55645de3e082fbce4bbf2e81097c4ce685c06d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow_loader._install_and_add_appserver_if_missing (cognitive 18): workflow_loader._install_and_add_appserver_if_missing has cognitive complexity 18 (threshold 15). Drivers by points: if/else 17, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-appserver/src/llama_agents/appserver/workflow_loader.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dad7e787a9f602750f213dd09145e2b9a6c861a51a7c2b85ac60d3399ba7d79"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client._llamadeployment_to_response (cognitive 18): k8s_client._llamadeployment_to_response has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad776e7c4182cc02197d23f40ccb78f44a3a619e9be7c2c5a8fa849c98ad119"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentService.rollback_deployment (cognitive 18): DeploymentService.rollback_deployment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/manage_api/deployments_service.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"9297c026f1e3759e35fd0e40575cdad80e3e230ccab45c6fa73567788cd0cbaa"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow._get_workflow_classes_from_step (cognitive 18): workflow._get_workflow_classes_from_step has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, boolean chains 1, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dda57636533201d588df9e8bb523f5a1749539c8b038c6ef51917526f52103"}},{"ruleId":"D2","level":"warning","message":{"text":"state_store.decode_state (cognitive 18): state_store.decode_state has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, error handling 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/context/state_store.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"296696fc4b4558b218ee17e65caacd27aa01b3fffb31f9f0bc2740ac04732579"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectClient.stream_deployment_logs (cognitive 17): ProjectClient.stream_deployment_logs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, error handling 4, ternaries 2, boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/client/manage_client.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9966491cd53d6a7eb14176f401d96a00200262a0cbbb4fc1461b0f94213a9915"}},{"ruleId":"D2","level":"warning","message":{"text":"git_util.clone_repo_sync (cognitive 17): git_util.clone_repo_sync has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 4, error handling 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/git/git_util.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d321a0c46b26d41e1f3f3f8e17ce955d4dde2549ca9ae75e346e114816e82e62"}},{"ruleId":"D2","level":"warning","message":{"text":"DBOSRuntime._prepare_launch (cognitive 17): DBOSRuntime._prepare_launch has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 4, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-dbos/src/llama_agents/dbos/runtime.py"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07a91e1bca551d2a1a8406f76c39166e2d8f7382a8f2be346dc81f565dd462e"}},{"ruleId":"D2","level":"warning","message":{"text":"DBOSRuntime.destroy (cognitive 17): DBOSRuntime.destroy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, error handling 4, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-dbos/src/llama_agents/dbos/runtime.py"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d3837bc940886062def801db8f83f67e0e23d84a9fbf82c244a81ada429b01"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteWorkflowStore._build_filters (cognitive 17): SqliteWorkflowStore._build_filters has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/sqlite/sqlite_workflow_store.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ef984446864f79e8b5778ae724557118543c6b31b04a120a1603ea587d6972"}},{"ruleId":"D2","level":"warning","message":{"text":"validate.validate_catch_error_handlers (cognitive 17): validate.validate_catch_error_handlers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c35d5e6c1e57ee3b20285fdf6d66ddfacfb07b1ffaf8b128a2bd2efab8b0ade"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.get_projects (cognitive 17): projects.get_projects has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/projects.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a244d781155e5977e9705c3c6fb281479f62fc6337ba06f3272066b9222c2a54"}},{"ruleId":"D2","level":"warning","message":{"text":"pytest_cmd._run_tests_verbose (cognitive 17): pytest_cmd._run_tests_verbose has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, ternaries 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"211586c2c6e7affd7980d72061cc4032945736f0e16da8a9271385e6b5e5ac19"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client._create_k8s_secret (cognitive 16): k8s_client._create_k8s_secret has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4, if/else 4, ternaries 4, boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"3010954b324ac539e3abbad153ace7e5dd70edc4e5de5020e0c46c7d3ca52c68"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client._create_ingress (cognitive 16): k8s_client._create_ingress has cognitive complexity 16 (threshold 15). Drivers by points: error handling 5, if/else 4, ternaries 4, boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2a8c086ecf7d8d617336c45366e09f1b571b50fa4041b23a61089d32545d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client._list_replicasets_for_deployment_sync (cognitive 16): k8s_client._list_replicasets_for_deployment_sync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 3, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb968df922b0d03cfd5f8a1b7501b37fc7abcf0d42ca9b345856d2f58a0d7ae"}},{"ruleId":"D2","level":"warning","message":{"text":"k8s_client.get_replicaset_pods_for_deployment (cognitive 16): k8s_client.get_replicaset_pods_for_deployment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, loops 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a91f57dc2ff0a3b68113c6025fc6394ed43912d2c4c82e54b4954b126e6602"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow._render_mermaid (cognitive 16): workflow._render_mermaid has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9afb61bea2c9ebedb375992973272dfa2c8b164236b23da772245f8766c0b8"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow._get_nested_workflow_representation (cognitive 16): workflow._get_nested_workflow_representation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, error handling 4, loops 4, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"0856cfc0a69ceb463035f62220658d57a997702862a54bc84e183f39709ec3ea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/deployment.py: FileTooLong \u2014 1322 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a3ad14e54b498d45741ff927c3ba088d9a0a591873ff50c91d3c1c62660789"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: control_plane/k8s_client.py: FileTooLong \u2014 1085 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020ef3715201ecaa1b3b60cf794e16a8f38907844f5f7740829da1977daf8a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: control_loop/reduce.py: FileTooLong \u2014 1024 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1ed4ff3157e731394eaf03b8f5f81b231f5ef28d5c0fda1a77212085d14f04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dbos/runtime.py: FileTooLong \u2014 807 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-dbos/src/llama_agents/dbos/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fb10178c8730265f39385051eef5bba71b2dc0cd55674cc6042eb893d644b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: git/_git_service.py: FileTooLong \u2014 663 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/git/_git_service.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58069cc226725ad2495a10a07439ffd41a2caf9116e6aa4131cc45cd8fd644d1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflow/__init__.py: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"283ac7537fab48e880ef1ace83f4231c4234406310d2375678c7556f737f79fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/_api.py: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_api.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f9f072b9cf8c501eef280453b4102cb443e90c608b817fd3f40fb5d282e164"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: context/state_store.py: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/context/state_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbb268ba495e596aaac575480fe09ede5132d569002ffa22e08c1a069212cd5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: commands/auth.py: FileTooLong \u2014 542 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/auth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e418ac290416929ff34782a6f12f6fcb725cef17c773d414250746d221cc409"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dev_cli/changesets.py: FileTooLong \u2014 511 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/changesets.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bef141e3ade1ade73fb5254523749a3b8bb9d714e3f532d0a07ae846016ccc3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: representation/validate.py: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5c063abed117d5eb0abca2bdf01ccd2ffad2fe64c078f0af561f5313f14895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): packages/llama-agents-server/src/llama_agents/server/_api.py:356-411 | packages/llama-agents-server/src/llama_agents/server/_api.py:541-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llama-agents-server/src/llama_agents/server/_api.py:356\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_api.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"83203485f8efc0f3e85188ef336b73e33d135913e326fedc05673221cf71f613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py:634-651 | packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py:661-678 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py:634\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b93ddda41f32c237d54d7d70851b1caf70b6bb88bb71d3dfe7e4512274c46c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): packages/llama-agents-client/src/llama_agents/client/client.py:245-260 | packages/llama-agents-client/src/llama_agents/client/client.py:297-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-client/src/llama_agents/client/client.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"072270a0769fd309a19e8d1b76e6174d9a3ab53fb82bf96378690a1da74e7810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py:68-82 | packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py:211-225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc938dada7c2e33869e5034a0e48db8e3119693306ce97a986f9bfb79043edad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/llama-agents-server/src/llama_agents/server/_store/postgres_workflow_store.py:512-525 | packages/llama-agents-server/src/llama_agents/server/_store/sqlite/sqlite_workflow_store.py:256-269 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/postgres_workflow_store.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae3ae2812985dd9495a781e860aa703aba7656a7672fde323bffaf904c4e92e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/llama-index-workflows/src/workflows/representation/validate.py:327-340 | packages/llama-index-workflows/src/workflows/representation/validate.py:356-369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0af02e83e1ac28a483eec1c958c315347a0fb592b5979cbdd81f8ba4aee6d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): packages/llamactl/src/llama_agents/cli/auth/client.py:279-294 | packages/llamactl/src/llama_agents/cli/auth/client.py:299-312 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/auth/client.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"a767f7e9c59a33a6b61833bb26f06f5c49cf54ec66bf22a74a7f0ae06dc0d283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/llama-agents-appserver/src/llama_agents/appserver/routers/deployments.py:47-61 | packages/llama-agents-appserver/src/llama_agents/appserver/routers/deployments.py:73-85 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-appserver/src/llama_agents/appserver/routers/deployments.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefd67ae60198d3b35d40fa49ea8836590127f3c672c3468195845f0579400f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): packages/llama-index-workflows/src/workflows/representation/build.py:319-331 | packages/llama-index-workflows/src/workflows/representation/build.py:339-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llama-index-workflows/src/workflows/representation/build.py:319\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/build.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"206ec9021ffca18648411ccf02843f173da88fffb7ce9948f56c0dec49ee1040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/llama-index-workflows/src/workflows/runtime/types/internal_state.py:206-216 | packages/llama-index-workflows/src/workflows/runtime/types/internal_state.py:230-240 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llama-index-workflows/src/workflows/runtime/types/internal_state.py:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/types/internal_state.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5069ef89b1919b92ce38ec29f4b7d5726be15004533da3f4508ebd0386a1f461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/llamactl/src/llama_agents/cli/commands/deployment.py:992-1002 | packages/llamactl/src/llama_agents/cli/commands/deployment.py:1469-1479 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llamactl/src/llama_agents/cli/commands/deployment.py:992\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"d109b6b5cee590d7fa0ee4d64ff23641407ca560995740a34af88c2b3264351a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): packages/llamactl/src/llama_agents/cli/commands/pkg.py:57-67 | packages/llamactl/src/llama_agents/cli/commands/serve.py:101-111 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/pkg.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb906e5347d34be834baf6bfbee694c7cb6d2641c39cfe0a449903704f3e367a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): packages/llamactl/src/llama_agents/cli/commands/auth.py:623-631 | packages/llamactl/src/llama_agents/cli/commands/auth.py:641-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/auth.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c540c91d857b3127fac96d0454cfad2034c58db73100c398ed1d8cf746cae702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/llama-agents-control-plane/src/llama_agents/control_plane/backup/storage.py:77-84 | packages/llama-agents-control-plane/src/llama_agents/control_plane/build_api/build_storage.py:146-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060packages/llama-agents-control-plane/src/llama_agents/control_plane/backup/storage.py:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-control-plane/src/llama_agents/control_plane/backup/storage.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b569c7be0e39767a872ffa82b3c16e3c0a67fe788e524694b7a5d57355906ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): packages/llamactl/src/llama_agents/cli/commands/deployment.py:189-196 | packages/llamactl/src/llama_agents/cli/commands/deployment.py:1258-1265 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb311685b9148980cb379a8e665465acb8f53e28bd74aab0a9c48022919f93f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/dev_cli/commands/pytest_cmd.py:417-423 | src/dev_cli/commands/pytest_cmd.py:580-586 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/dev_cli/commands/pytest_cmd.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4de229ab22d3728153b5176fba45e91a2a4e208a3bad7043b8daaffc6633421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): packages/llama-agents-core/src/llama_agents/core/schema/deployments.py:224-229 | packages/llama-agents-core/src/llama_agents/core/schema/deployments.py:384-389 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-core/src/llama_agents/core/schema/deployments.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5905c67cf87d23ec5f4c5f6f0bf0525ffe83db308d3cea3b6a8eba79009bfff9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-index-workflows/src/workflows/representation/build.py: packages/llama-index-workflows/src/workflows/representation/build.py changed 2 times in last 90 days, max complexity 48. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/build.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ff91bfe8f7ef4b9cf31ebb38f71062ec8233748ed83e8fb12c55d0669cc64"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-index-workflows/src/workflows/utils.py: packages/llama-index-workflows/src/workflows/utils.py changed 3 times in last 90 days, max complexity 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c96cc329deb95624040daa89e9001fb8fc083f815fae36096632f78316ea8e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llamactl/src/llama_agents/cli/commands/deployment.py: packages/llamactl/src/llama_agents/cli/commands/deployment.py changed 2 times in last 90 days, max complexity 26. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llamactl/src/llama_agents/cli/commands/deployment.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b2345722cc57f992abe71b6e24487570fadb7ffdbbf0f9fa0c1e546d0a937c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py: packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py changed 2 times in last 90 days, max complexity 20. 1 of those changes was a fix/bug commit, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/control_loop/reduce.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af244bc40444f3d72017418c7460bf1a335dc3a7fc676bb8501666f37d25e61"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-index-workflows/src/workflows/representation/validate.py: packages/llama-index-workflows/src/workflows/representation/validate.py changed 2 times in last 90 days, max complexity 19. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/representation/validate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2427ae60209a4aee09404fdaddcd2b4e658aee5099bffde349644f730a659d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py: packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py changed 2 times in last 90 days, max complexity 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-utils-workflow/src/llama_index/utils/workflow/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"518e635543920f4f0c8b5897f2736b9948deb2f3cfbd3eeab58c527fd5cfb079"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-agents-integration-tests/src/llama_agents_integration_tests/fake_agent_data.py: packages/llama-agents-integration-tests/src/llama_agents_integration_tests/fake_agent_data.py changed 2 times in last 90 days, max complexity 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-integration-tests/src/llama_agents_integration_tests/fake_agent_data.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac9f4d522c9c70c1e7d3f82779785d30291f947cb418be834672dd22c9f06ec5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py: packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py changed 2 times in last 90 days, max complexity 15. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"725e6b69842111573f07fd5fad8e8ade250a5aefd692febf7fd7bcd7ac05614a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 67 significant file(s) lose their only recent owner: packages/llama-agents-control-plane/src/llama_agents/control_plane/k8s_client.py, packages/llama-agents-server/src/llama_agents/server/_api.py, packages/llama-index-workflows/src/workflows/context/state_store.py, packages/llamactl/src/llama_agents/cli/commands/auth.py, packages/llama-index-workflows/src/workflows/context/context.py, src/dev_cli/changesets.py, packages/llama-agents-server/src/llama_agents/server/_store/postgres_workflow_store.py, packages/llamactl/src/llama_agents/cli/display.py (\u002B59 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31d9e12a17f7e70f10104d51f0b732bf1c09426194ca18dda64d1b1c95c7b4a6"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (69 single-owned of 147 analysed files in total, counted over production source files of roughly 100 lines or more, excluding tests, vendored, generated and example/demo trees, largest first). They are anonymized user #2 (2 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc39ada3bcd243022e8e51535cf46ec3cf9a25ecb6a86a373c94c4ad78923d4b"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2e1c33b058c005e6250f1c0f084e946c06ff1870f1bdd4ba3f17649dd503141"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9ed1397fd27010742b54209fa98777835aa26bc1b9f9254387e57fdd96568ac8"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"643b20b163c34a78de24242666a57d28b9e06c7a10fac122eca59f9d23fa27d6"}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a18c2510c7eb1a6a37e7971ed17fe712bdd28269432681efe2b2b3962ade4593"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c452f31ceb534353f01846c275801a8cfffd53173caf6b98e3e6001d76b9112a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"70678bd814474edb3584d06889b824fc2a0e7512b13d58fddb0f3de5998340b7"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe704202899fb3f0185326e41d10aafd126aa3d76980c330d7a4297665dc66b5"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"621c9c83d35a60099636d881d2688eb58780a3dd69a87916a2d686d687bb4bb8"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"66ccfb01b25af4b6f85bca113fefce749806840049c35f9f4c7359f8794454d3"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ede012004e85d0c52cbe59eb22fba3920af354d004d9cb96f1bc8aa45fc7808"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c5f0c02da7693990bea3fe72231a3c9ca39e4146dfd5d43d510ec73410171a5"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa69664a82ccfe459cfddde27b8f9512af8aa86f513860abe0acd2cd5fa80a8c"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bac012ae02229a904a30c8c9c6ddd85d085f93147c0abaa01f09cafc63bdee52"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5d84eca20182a3b4f68e6a3b2f05982cb4a059683a5aeca9ee2229d19c2f0591"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e53ac5f597916158577de275aaf12e3ebabb4883957bbcf5cc8d14bf2b1d31f4"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ec448c8360247b6d1797d99e93f57cb2dade63af0c261f716f8850db4f8bdfb8"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b257bf5ed48788a7763656d74687ac84dfe4f4cf5500657066d022f5f07253a4"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b47986c165613d205035680c5ba0f39d16d806072fbd778f580238ee1c8b5532"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b0fde5232eb9080ddf2eaa72f622dd47e163a9ec9eaedc7802f86f9bc563d1e"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2225a1f84a81182be61561e295fd7d976d156fa3d8223076be7924ab2f8827e8"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccc0cc717a360059224d480b2bc872b7f88a881960a07fa78798e15be3c752b9"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20e7f682a817c051f487813c0134e17b3db2b50aac13aa7cc9b82ab9225c163f"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"71f65244d0698dd37b8e799eb4177cde6ab86aa38fc5e3cd398102e8ec3a31c4"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ccd24e5dbe14944c362d511bec64be4f1ac20b5afb43cd96afcd31b7e9b62fb"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"86e90bf8db177feb810622a7137658a08840694b309b17be7d9027a401acef45"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49ef898484b9bb09d2a26d7dd2e511d263cd56795c533b5bbc33da951f0b325b"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30378761ff62d72e123eb76eacd3431fbdbd367c31f611532a474630c10a98d3"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9fd8d7b482e8cf6310b15bab3e0780b2150953ca6f771446c333653ea2b5548b"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f496415d02e797819590958cdfef86743ac9b78be992777208a2434ae57cd856"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0ee07fdf613d9779da70e7095a697c70ca1c0018b8c576d747053a03b17220a"}},{"ruleId":"D31","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccafccf4bb4c5b55d995630d24df746916b33c5052b933a29187610c0941399b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: server.py \u2194 __init__.py: \u0060packages/llama-agents-server/src/llama_agents/server/server.py\u0060 (context llama-agents-server) and \u0060packages/llama-index-workflows/src/workflows/protocol/__init__.py\u0060 (context llama-index-workflows) sit in DIFFERENT parts of the tree yet change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f193416aaa5b935dda75186d5f2641c3ba80326bf36f161e5328a8a058d0fcd3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: memory_workflow_store.py \u2194 sqlite_workflow_store.py: \u0060packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py\u0060 and \u0060packages/llama-agents-server/src/llama_agents/server/_store/sqlite/sqlite_workflow_store.py\u0060 change together 75% of the time (12 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-agents-server/src/llama_agents/server/_store/memory_workflow_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc514cf0721ee9fd167f784ae6eabff0133d4e0246ccf185a38dd105e4c5dde4"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: commands.py \u2194 results.py: \u0060packages/llama-index-workflows/src/workflows/runtime/types/commands.py\u0060 and \u0060packages/llama-index-workflows/src/workflows/runtime/types/results.py\u0060 change together 64% of the time (7 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/types/commands.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"824251199714289df803d5744061e7f24814a3e82f1c5c0be93aa6d9c86ff170"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: context_types.py \u2194 results.py: \u0060packages/llama-index-workflows/src/workflows/context/context_types.py\u0060 and \u0060packages/llama-index-workflows/src/workflows/runtime/types/results.py\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/context/context_types.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e4e25139c691698e0a8dacd8a9a7329f179a76ee9444eb9febe2f0b3c9aac3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: step_function.py \u2194 ticks.py: \u0060packages/llama-index-workflows/src/workflows/runtime/types/step_function.py\u0060 and \u0060packages/llama-index-workflows/src/workflows/runtime/types/ticks.py\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"packages/llama-index-workflows/src/workflows/runtime/types/step_function.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0033b8114d9743863d0f6f40ed588a94e03a70263188d04685ac61132f6a8195"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"10f42424b9450bcd5507f60462a64b4b716c13d761598fca0e6c4eed2528d9c2"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18d1b1096b8af854d51302b9a985172e4f38acb9353dbccec6ffa80f1c623c32"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c1fc433977d578f19698f08c45c16c2a007d3ad256af301692174d71648a7e0"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e7ab9274ba4aa2befc0a954ad268a16bf6e26fb59d22c94c01cd81ac0edb896d"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1247ca2a8687f1c0628687a7e962be287cdaa1a0648c7ad8e98c054648e8bbe7"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"50d955ece08443812fdfc09729a55e0dc233ec8cac650480506eea38d608f41e"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1752479c52d70e7e85b37a57cb1dd02ea87ce1094ba77751d35409240bb66f4a"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9f9e735a893fe3dfedddec89e295f3eee750d9ce1fbf0ac12eefd91e7a4accb"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"942da75706d3fdf5e0b3ed7569e8affc4644fab36f08ce55e1e2a54d1a05398b"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5ab5f7955dfd21f87a287361d2dcf619a9aa0613187bdc0af5171358eaeb005e"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c94b04a801c5793fc82c1628b4705c01387fd078d6cb3bfc192e932c84efee5"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bacbc37090b255c9981d976c8e66189bae0111a9e2c5b85b8b0e30f7f60d859f"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"82abfc6b52e0f4755f897fec90763513062ab7fe8507905c087ca45f61c6e007"}},{"ruleId":"D38","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"36c5fbbcc88f2ab9e52d6cc49547f91f345c0c919c718c25ec2ab9b586273fbc"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef6be2cd56d2642990405c60a96891b77adc043d3b2b5ff71f04912b74e1411d"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bb4fb15e524b54ea709729e3fed47646d17f2f02ef46d26ca0c30a8cba06cc8d"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb40b694cde4cc3d7a27516c3b9596068209d5207875054d17e514a8dd9b94a2"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa04e442a0377e41857f45dadae54a11f62f08fd95f5723bd2e3178ea383fc8c"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45a99c6eddb3959f72a43c26d5161b0bf6ed3dfbb1d5092805a88a439a9ba07e"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79976b7d02a82abc2eb7b25817e191387eac64493db9c92bb566d8062f3eb01d"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d942afbea2af6b91d32add83beb73fff99c69037f3d7ec786e59d6946a6ef27"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"020ee5b3dd7a61031b9a812753f9f48cdbf8a3836ccc82c9cf0e2377c4392423"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48c6b6532ddefa5e2698fcb0b4490a983a875e3563ecd0f7c3a1fb221007e62c"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91cdd9ce85df0719f3e2995969169f81c60edec0ba1d53cadc781c0dafecd9eb"}},{"ruleId":"D38","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c37bdd3b19977b7478339df5f9f801b6545d5c416c115351769f1aa58fd6ab0"}},{"ruleId":"D41","level":"note","message":{"text":"No seccomp profile: Workloads do not set a seccomp profile (RuntimeDefault or a Localhost profile). Seccomp blocks the syscalls a container never needs, shrinking the kernel attack surface a container escape would use."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3f418e9f76c3ac90484e0e94a454bfe9b08e914e1cdd218e1fc9e3b261a3bf6e"}},{"ruleId":"D41","level":"note","message":{"text":"No AppArmor/SELinux confinement: Workloads declare no AppArmor or SELinux profile. A mandatory-access-control profile confines what a compromised container can touch on the host, complementing seccomp\u0027s syscall filter."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e83fbc31033373d6c51983ed230eb4ba61f7775ed02afb30f5fc1840bde01d4f"}},{"ruleId":"D42","level":"note","message":{"text":"No runtime threat detection: No runtime threat-detection engine (Tetragon TracingPolicy / Falco) is committed. These observe process, file and network activity in-kernel and can alert or kill on malicious behaviour a static scan cannot catch."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aade9827a37dfc7ee064f80a997f47b5d11e31bc09704e26b9252bef00aa0c58"}},{"ruleId":"D42","level":"note","message":{"text":"No admission-control policy: No policy-enforcement gate (Kyverno / OPA Gatekeeper / PodSecurity admission) is committed. Admission control keeps workloads that violate your security baseline from ever reaching the cluster."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"57f2e92ed1519af6e21f44cce82a94119700b7d516006ea2955d969d5328b76b"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":62,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}