{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"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"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"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"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"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"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"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"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"PregelLoop._first (cyclomatic 68): PregelLoop._first has cyclomatic complexity 68 (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a158f7d6e5719fd9566c5ed134712fa60114be5447ff06d242848b014bd363"}},{"ruleId":"D1","level":"warning","message":{"text":"config.validate_config (cyclomatic 64): config.validate_config has cyclomatic complexity 64 (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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8347c8d69b9b126db58c6afd1511e3a1628bdc55a1360574126a9952efd56a6"}},{"ruleId":"D1","level":"warning","message":{"text":"_draw.draw_graph (cyclomatic 56): _draw.draw_graph has cyclomatic complexity 56 (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":"libs/langgraph/langgraph/pregel/_draw.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce11d6bb24e5d05b668ea8c476d6ad3af3946f099efeffbbe7b23153925046f0"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel.astream (cyclomatic 48): Pregel.astream 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6c01c8568ef21dc0392548688d13278ca7410a389a10c8352774471e1c6e12"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel.stream (cyclomatic 44): Pregel.stream has cyclomatic complexity 44 (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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"baba5f5b6c5058d886a620ee06b5fbf5d2a5813393902b168a6c1772517ea843"}},{"ruleId":"D1","level":"warning","message":{"text":"PregelRunner.atick (cyclomatic 43): PregelRunner.atick 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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22bb081dd95ede0d2f1415b9d4becb10200d28b5c189cb7bbba2bc817044a07"}},{"ruleId":"D1","level":"warning","message":{"text":"PregelRunner.tick (cyclomatic 41): PregelRunner.tick 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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abf41594810e613899af073893acb99a1122eaa869ace02db3ab0c09644d08f"}},{"ruleId":"D1","level":"warning","message":{"text":"StateGraph.add_node (cyclomatic 40): StateGraph.add_node has cyclomatic complexity 40 (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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1bcb55f55bfbd93b4538b2772943cf2266d37a9f09d4e9dce855a54d8d67ca"}},{"ruleId":"D1","level":"warning","message":{"text":"StateGraph.compile (cyclomatic 38): StateGraph.compile has cyclomatic complexity 38 (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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"c166721a705d53df47ec2c2c02dcb2e3c35065e7aa808bb050ddceab25d95322"}},{"ruleId":"D1","level":"warning","message":{"text":"CompiledStateGraph._migrate_checkpoint (cyclomatic 37): CompiledStateGraph._migrate_checkpoint has cyclomatic complexity 37 (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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3f63f024ed68455d8cffc9d412d7b1375175d9aefc757201dcf4da9cf86a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"chat_agent_executor.create_react_agent (cyclomatic 37): chat_agent_executor.create_react_agent has cyclomatic complexity 37 (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":"libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3252882106dc8ef2ee5efbf5450ddc128c1e5c1ae4cd8ee4c4b02ac7b45e6b"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncHttpClient.stream (cyclomatic 37): SyncHttpClient.stream has cyclomatic complexity 37 (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":"libs/sdk-py/langgraph_sdk/_sync/http.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b27d2a69092f7862ecdb4ce30fdd5182ab4539987bfdbf15f7c526819cad4c3"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpClient.stream (cyclomatic 36): HttpClient.stream has cyclomatic complexity 36 (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":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"614f2126622690ccec8f1dea04d6bd0d614454e0cb1cf93a8773d7b42be00668"}},{"ruleId":"D1","level":"warning","message":{"text":"jsonplus._msgpack_default (cyclomatic 34): jsonplus._msgpack_default has cyclomatic complexity 34 (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":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a120fe437b87cfb55038a56998eb1e92027909b093d256b6058acfe343b9f2"}},{"ruleId":"D1","level":"warning","message":{"text":"generate_schema.add_descriptions_to_schema (cyclomatic 34): generate_schema.add_descriptions_to_schema has cyclomatic complexity 34 (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":"libs/cli/generate_schema.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be99fa28ca892530565c38cc9e216cd1cb8209a8d9e2cf920ea433acc9545b6"}},{"ruleId":"D1","level":"warning","message":{"text":"_algo.apply_writes (cyclomatic 32): _algo.apply_writes 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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"297a5970ff90c582654b587f16314f6e6f936e17282c1dabaa7610a8aa5484aa"}},{"ruleId":"D1","level":"warning","message":{"text":"_validate.validate_graph (cyclomatic 32): _validate.validate_graph 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":"libs/langgraph/langgraph/pregel/_validate.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d3fb4cea371e2d36e4fb5a08a9b5f08c705a5350700e4943c701349ac04eee"}},{"ruleId":"D1","level":"warning","message":{"text":"deploy._deploy_cmd (cyclomatic 30): deploy._deploy_cmd has cyclomatic complexity 30 (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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d843aeb342a84a698231a48f7218c06299fca9bdfeec52c8cef4c78c9aec76f"}},{"ruleId":"D1","level":"warning","message":{"text":"_config.ensure_config (cyclomatic 29): _config.ensure_config has cyclomatic complexity 29 (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":"libs/langgraph/langgraph/_internal/_config.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc854e8b09f11b672b19269eb93ef5c880d45a2e586377664b78fcd4bfbcc04a"}},{"ruleId":"D1","level":"warning","message":{"text":"_serde._collect_from_type (cyclomatic 29): _serde._collect_from_type has cyclomatic complexity 29 (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":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"104dbb574767772634aa00843fbf87bb26d21838f005d155f0ffdd959a9f8fa5"}},{"ruleId":"D1","level":"warning","message":{"text":"PregelLoop._put_checkpoint (cyclomatic 28): PregelLoop._put_checkpoint has cyclomatic complexity 28 (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1299d113309c61602655bae15ae035ef754f57f3c86e83cd3b22bf496ae4d1"}},{"ruleId":"D1","level":"warning","message":{"text":"_retry.arun_with_retry (cyclomatic 28): _retry.arun_with_retry has cyclomatic complexity 28 (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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe1d5a6ad1cf15e2694a31ae4f1f4aefcd0f29afab6a8f0aa48499c9148ece7"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteGraph.stream (cyclomatic 28): RemoteGraph.stream has cyclomatic complexity 28 (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. This shape REPEATS in the file: one other method here (RemoteGraph.astream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"054178257cdfa1abf5a7781d5c040d789524b06bf2b3af30e5cc5e5980c36c8b"}},{"ruleId":"D1","level":"warning","message":{"text":"RemoteGraph.astream (cyclomatic 28): RemoteGraph.astream has cyclomatic complexity 28 (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. This shape REPEATS in the file: one other method here (RemoteGraph.stream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a05ef562b357105328771efdb7fa33e0c46a86ba0b77e8678b5da18227674a9"}},{"ruleId":"D1","level":"warning","message":{"text":"stream._drain_messages_inbox (cyclomatic 27): stream._drain_messages_inbox has cyclomatic complexity 27 (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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8417ded3404bca99f1433dc78fca1403385a40b6027ee52c8904f13e1e979e"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseSqliteStore._get_filter_condition (cyclomatic 25): BaseSqliteStore._get_filter_condition has cyclomatic complexity 25 (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. This shape REPEATS in the file: one other method here (SqliteStore._get_filter_condition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"916766891d5ab21bd300cca7e56b8e6ad28c75739d54885958a9d12525404865"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStore._get_filter_condition (cyclomatic 25): SqliteStore._get_filter_condition has cyclomatic complexity 25 (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. This shape REPEATS in the file: one other method here (BaseSqliteStore._get_filter_condition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85501d66cc6c2734eed4bb71c79f19573704da09dab2d7f7bd0d43bebddc429"}},{"ruleId":"D1","level":"warning","message":{"text":"config.python_config_to_docker (cyclomatic 25): config.python_config_to_docker has cyclomatic complexity 25 (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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f297f6687b9047fa82fc6e8ed4235a9af300ceac405efa28441088d9fef057"}},{"ruleId":"D1","level":"warning","message":{"text":"deployment_metrics.compact_deployment_metrics (cyclomatic 25): deployment_metrics.compact_deployment_metrics has cyclomatic complexity 25 (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":"libs/cli/langgraph_cli/deployment_metrics.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6679b24b439156a50494644fa0d71b76bfe7d36e302257b740154a2edd1cc81c"}},{"ruleId":"D1","level":"warning","message":{"text":"_algo.prepare_single_task (cyclomatic 25): _algo.prepare_single_task has cyclomatic complexity 25 (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f55d34828dd08ccb8e37b98928f1367f1feaa9910558e24f07f97a7d1507413"}},{"ruleId":"D1","level":"warning","message":{"text":"GraphRunStream.interleave (cyclomatic 25): GraphRunStream.interleave has cyclomatic complexity 25 (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":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34ffe63f9a4a45c8353476c8d128e052fdced15d0a12b87141862d1b3fc64ff"}},{"ruleId":"D1","level":"warning","message":{"text":"StateGraph.validate (cyclomatic 24): StateGraph.validate has cyclomatic complexity 24 (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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa766dec8ce8d3d86b63a20b2b513cd5e21d03456a2764776365fbfdc780bd6"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolNode._inject_tool_args (cyclomatic 24): ToolNode._inject_tool_args has cyclomatic complexity 24 (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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4f0f0df7cd271730452f4a42a0b340316e67aaf27370a2dbf536036d37a89e"}},{"ruleId":"D1","level":"warning","message":{"text":"uv_lock.python_config_to_docker_uv_lock (cyclomatic 22): uv_lock.python_config_to_docker_uv_lock has cyclomatic complexity 22 (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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4f1d14deb27eae16371735cf5e7ff7ebf6e366a6cb2fd54d6bad2f4fedf726"}},{"ruleId":"D1","level":"warning","message":{"text":"PregelLoop.put_writes (cyclomatic 22): PregelLoop.put_writes 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64d1b6327838d0d9297374ca0ca677138aee891228a296a979b53e8b97d6362"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncSqliteStore._batch_search_ops (cyclomatic 21): AsyncSqliteStore._batch_search_ops 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"3961cefa6df6aa388f1dd50239834501ff8bd33c0950345a5f317732968de0b1"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseSqliteStore._prepare_batch_search_queries (cyclomatic 21): BaseSqliteStore._prepare_batch_search_queries 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7d0a57c45a0b5b6625da2d3d12d00207823993337c0c4522f92e96225acfec"}},{"ruleId":"D1","level":"warning","message":{"text":"SqliteStore._batch_search_ops (cyclomatic 21): SqliteStore._batch_search_ops 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2c9102f807e989eef13be5ca493cfb64acbf9796963238695bff944a8150d3"}},{"ruleId":"D1","level":"warning","message":{"text":"config._assemble_local_deps (cyclomatic 21): config._assemble_local_deps 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76023f52406d8e11fe973fbc4b6b30591b5ac6fa38b0c4a602fd9abd494db90"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnableCallable.ainvoke (cyclomatic 21): RunnableCallable.ainvoke 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"58da4f2df214021664afea61b79a5fa9226860aa2da54ed18bb24659027ce1a6"}},{"ruleId":"D1","level":"warning","message":{"text":"_algo.prepare_push_task_send (cyclomatic 21): _algo.prepare_push_task_send 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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afee3c71be489efe9acf61387765daa6c653345e307614eab04dd1b79af96ef"}},{"ruleId":"D1","level":"warning","message":{"text":"_io.map_output_updates (cyclomatic 21): _io.map_output_updates 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":"libs/langgraph/langgraph/pregel/_io.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"58c7bf58a764fcbec4cfa8c809d242927c01a7709a2da4a87474f65e2ee41e69"}},{"ruleId":"D1","level":"warning","message":{"text":"_retry.run_with_retry (cyclomatic 21): _retry.run_with_retry 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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e70fb20f0d8e5299358257298b77ee6c131755cd9bdac65373744106dd1ac98"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncThreadStream._apply_lifecycle_event (cyclomatic 21): AsyncThreadStream._apply_lifecycle_event 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d3b1767a09057bd5ecd68094f9334c3d546168c4dc8360ae55074872ea54f5"}},{"ruleId":"D1","level":"warning","message":{"text":"_SyncHandleSubgraphsProjection._subgraphs_iter (cyclomatic 21): _SyncHandleSubgraphsProjection._subgraphs_iter 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75741e0d9e37afcc1b892a08209ec226ac22021cfaf4bbc23e528bfa5da23a7"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncThreadStream._apply_lifecycle_event (cyclomatic 21): SyncThreadStream._apply_lifecycle_event 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb0a013d7274eea25384a2896b54557fbaae115456d7f31bc04dcbe06790a41"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnableCallable.invoke (cyclomatic 20): RunnableCallable.invoke 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"082424a7b4a39bee6658171c4e46c381f424aa4bc7c5f021511e810bf21ced12"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemorySaver.get_delta_channel_history (cyclomatic 19): InMemorySaver.get_delta_channel_history 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":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebfe60fed80ee808bf5ab7965262d159a2a5d9384539197c010385fef960642"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemorySaver.list (cyclomatic 19): InMemorySaver.list 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":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1079ad794a57a4e74ac2ccb79cd38523cb656603650ae21f6746b6dcf0e5dd"}},{"ruleId":"D1","level":"warning","message":{"text":"jsonplus._msgpack_ext_hook_to_json (cyclomatic 19): jsonplus._msgpack_ext_hook_to_json has cyclomatic complexity 19 (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":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a42ceacc7477c2d02dde991bb3fb656c59c482ac7f138ab52a935f2005c650"}},{"ruleId":"D1","level":"warning","message":{"text":"deploy.deploy_logs (cyclomatic 19): deploy.deploy_logs 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":3051}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2711156af734ec23693e88b53ef8d3a9675e563288c263ef4021136480fc8b8"}},{"ruleId":"D1","level":"warning","message":{"text":"_HandleToolCallsProjection._tool_calls_iter (cyclomatic 19): _HandleToolCallsProjection._tool_calls_iter 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83ad6f58da67e199e36dea2b00c8af7be8388bc529d7e99f4692c6707b798db"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncThreadStream._run_lifecycle_watcher (cyclomatic 19): AsyncThreadStream._run_lifecycle_watcher 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"29eb9cd32116546d9c24d4714da78d9791586a0875d32aefd925fbf30a159f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"_SyncHandleToolCallsProjection._tool_calls_iter (cyclomatic 19): _SyncHandleToolCallsProjection._tool_calls_iter 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"77577aa8ebc70a5f0aaa5205c3e8d969bf5c6f11fdf437a27ceef2d24937e7d5"}},{"ruleId":"D1","level":"warning","message":{"text":"embed.tokenize_path (cyclomatic 18): embed.tokenize_path 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":"libs/checkpoint/langgraph/store/base/embed.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a356584e1c9d8b1d1b9a23d01b0f06a2477fd8f0fb01599716ad7a3956b2ad62"}},{"ruleId":"D1","level":"warning","message":{"text":"BasePostgresStore._prepare_batch_PUT_queries (cyclomatic 18): BasePostgresStore._prepare_batch_PUT_queries 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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8b7a29cdb99c55ae6c9eef38111ebfecc603a00f66bd8ea32e0c3e4be99223"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseSqliteStore._prepare_batch_PUT_queries (cyclomatic 18): BaseSqliteStore._prepare_batch_PUT_queries 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"7990aa3c97eee55a68dd5005338023d6476ec7efcc40114f068e2fd286f5b191"}},{"ruleId":"D1","level":"warning","message":{"text":"deploy._select_source (cyclomatic 18): deploy._select_source 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b44799de1fe80641d32d5d6a155451f1a3d21d86e5ae74c514591741cbc4572"}},{"ruleId":"D1","level":"warning","message":{"text":"uv_lock._discover_uv_lock_workspace_packages (cyclomatic 18): uv_lock._discover_uv_lock_workspace_packages 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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e43ce0249f6c98d99e0679f8b805286df82b4bf493f2fb56169d2d412ba9b48"}},{"ruleId":"D1","level":"warning","message":{"text":"message.add_messages (cyclomatic 18): message.add_messages 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":"libs/langgraph/langgraph/graph/message.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fde7d604e8e125d12104678143a72b581a4b407c09b35d51dd00ea930c8a84"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel.invoke (cyclomatic 18): Pregel.invoke 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. This shape REPEATS in the file: one other method here (Pregel.ainvoke) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3948}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb369bfeefa909a396ec17cda68cf20b209b803cb5a2dd4aaa04a4c2103052a9"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel.ainvoke (cyclomatic 18): Pregel.ainvoke 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. This shape REPEATS in the file: one other method here (Pregel.invoke) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f322e41bb694813b16414d854e10646bdcfa05e91db823897e01aa13c79fa0"}},{"ruleId":"D1","level":"warning","message":{"text":"AsyncThreadStream.interleave_projections (cyclomatic 18): AsyncThreadStream.interleave_projections 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"1363de36209009679e697061644ebfd69b632143607c3dc120849b6aaba905d3"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncThreadStream.interleave_projections (cyclomatic 18): SyncThreadStream.interleave_projections 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d824d8eca8aa96cb232757dd4b878a23c922292ee91a8e76bb045cdb4f451f0"}},{"ruleId":"D1","level":"warning","message":{"text":"exec.subp_exec (cyclomatic 17): exec.subp_exec has cyclomatic complexity 17 (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":"libs/cli/langgraph_cli/exec.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"decc9f34194b365063b7a6b23685755c13acaa6fc347f1e79dffb52bb6594a08"}},{"ruleId":"D1","level":"warning","message":{"text":"uv_lock._validate_uv_lock_source_entry (cyclomatic 17): uv_lock._validate_uv_lock_source_entry 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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e0bcde6a4326ebd3c7c09cc754a5993c4b40c7806dc52bf4593da56ae14087"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnableCallable.__init__ (cyclomatic 17): RunnableCallable.__init__ 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9717f9b643307f8ebfb220a7dd5e0f43b7977314a545344aebd6e7e7aedccdd"}},{"ruleId":"D1","level":"warning","message":{"text":"RunnableSeq.astream (cyclomatic 17): RunnableSeq.astream 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7ea019039ef219fbbcee2feb04e7054d47a45bebc2052d3dde96df37ce7443"}},{"ruleId":"D1","level":"warning","message":{"text":"_branch._get_branch_path_input_schema (cyclomatic 17): _branch._get_branch_path_input_schema 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":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3db64e9ee062d34f480f7141a294967ec26ed83506e8d72e88407790150a67"}},{"ruleId":"D1","level":"warning","message":{"text":"PregelLoop.after_tick (cyclomatic 17): PregelLoop.after_tick 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05e295468cf9e33a7201b00450f9e33eac252b42678ad22c594f6fad5a26577"}},{"ruleId":"D1","level":"warning","message":{"text":"_runner._panic_or_proceed (cyclomatic 17): _runner._panic_or_proceed 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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfb05788e561b008236ecad4a78d26ae92c5f0868fd8a71bbc70afd31a43fb5"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel._prepare_state_snapshot (cyclomatic 17): Pregel._prepare_state_snapshot 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. This shape REPEATS in the file: one other method here (Pregel._aprepare_state_snapshot) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"735ef6ebe52f1deb21dc8565e95231027fe0c80d48675c05e33d8370fdae59a8"}},{"ruleId":"D1","level":"warning","message":{"text":"Pregel._aprepare_state_snapshot (cyclomatic 17): Pregel._aprepare_state_snapshot 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. This shape REPEATS in the file: one other method here (Pregel._prepare_state_snapshot) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ec1601e2046bb04be5af51d94ee24df6833e5d7fa361a3d8db29d597d16503"}},{"ruleId":"D1","level":"warning","message":{"text":"main._output (cyclomatic 17): main._output 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4398}}}],"partialFingerprints":{"codehealthFindingId/v1":"920b57cab2ee71fd800e31927f7cbeac29d14ba3791df18e4d33caf895521488"}},{"ruleId":"D1","level":"warning","message":{"text":"_SyncSubgraphsProjection._subgraphs_iter (cyclomatic 17): _SyncSubgraphsProjection._subgraphs_iter 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"75bba2c524ffd950104fba496a57f11bcd91b4d4983fb91f90769fd257bb09d1"}},{"ruleId":"D1","level":"warning","message":{"text":"validate.validate (cyclomatic 16): validate.validate 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":"libs/checkpoint-conformance/langgraph/checkpoint/conformance/validate.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"52af02ebd44f914aca302bce48ff33e79bf2c5835afb209aa151069ab70db0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"PostgresStore.setup (cyclomatic 16): PostgresStore.setup 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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"162a06aba105a1e6a984fecc5ae51d42b4edb5c914a7a5b1c4b09c847243032b"}},{"ruleId":"D1","level":"warning","message":{"text":"config._update_graph_paths (cyclomatic 16): config._update_graph_paths 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1e53a9c18f6b222c6944bc856f1445d37ea974fddb4d690610fafb20888cf3"}},{"ruleId":"D1","level":"warning","message":{"text":"_retry._arun_with_timeout (cyclomatic 16): _retry._arun_with_timeout has cyclomatic complexity 16 (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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a793de81ad0d5e292d3a0ab0bbf1605772af8f02a396ced7bef901684aa7a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"_MessagesProjection._drain_inbox (cyclomatic 16): _MessagesProjection._drain_inbox 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fd6952d7c952c90404b964857cc6d55c828b55ae6f034cbae27c38fd2c21b1"}},{"ruleId":"D1","level":"warning","message":{"text":"_HandleMessagesProjection._messages_iter (cyclomatic 16): _HandleMessagesProjection._messages_iter 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83fc32e9620e70981857a40fafa0f7ce17caf28a2fa2543263cf941b202ca3c"}},{"ruleId":"D1","level":"warning","message":{"text":"_HandleSubgraphsProjection._subgraphs_iter (cyclomatic 16): _HandleSubgraphsProjection._subgraphs_iter 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"10be245626148616691c0760fc216a5313b18c79ae55ab9cbbc4e08cbcc92cb5"}},{"ruleId":"D1","level":"warning","message":{"text":"_SubgraphsProjection._subgraphs_iter (cyclomatic 16): _SubgraphsProjection._subgraphs_iter 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9735baaf639bd2cb477fb4a2f12b478859d5e5a6d3c4ecc6f01efaf07b0ec79"}},{"ruleId":"D1","level":"warning","message":{"text":"_SyncHandleMessagesProjection._messages_iter (cyclomatic 16): _SyncHandleMessagesProjection._messages_iter 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85fbbe301c578d0a6868182145e20f4de82e78312eb8942e8d2fb604dd005bd"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncThreadStream._run_lifecycle_watcher (cyclomatic 16): SyncThreadStream._run_lifecycle_watcher 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"10eef110aa35b243454bdc5ef8e4dcb366e0ff5bb0af9267aa479fd71deee78e"}},{"ruleId":"D1","level":"warning","message":{"text":"SSEDecoder.decode (cyclomatic 16): SSEDecoder.decode 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":"libs/sdk-py/langgraph_sdk/sse.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d930516ffb92c01bae57235cb6ed711640c453e4d751ffdf6181f03440ce6b6b"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolCallsDecoder.feed (cyclomatic 16): ToolCallsDecoder.feed 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":"libs/sdk-py/langgraph_sdk/stream/decoders.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fde980a872de037663a4d3f9ba6d37493bfb35b51795e00b26dc9a97d923c7e"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncStreamController._fanout (cyclomatic 16): SyncStreamController._fanout 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":"libs/sdk-py/langgraph_sdk/stream/sync_controller.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d15baf6b3590fb60f031525370d7435592970d197160ecf0d4e0f45e263bbb4"}},{"ruleId":"D2","level":"warning","message":{"text":"_draw.draw_graph (cognitive 134): _draw.draw_graph has cognitive complexity 134 (threshold 15). Drivers by points: if/else 20 (64 pts), loops 20 (52 pts), boolean chains 9, ternaries 4 (9 pts) (nesting depth added 81). 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":"libs/langgraph/langgraph/pregel/_draw.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd20df300d60bee8b3304b4ffc121d1f1c572f2d3557f2624a64f2fb9afe462"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._first (cognitive 123): PregelLoop._first has cognitive complexity 123 (threshold 15). Drivers by points: if/else 37 (90 pts), boolean chains 22, loops 4 (9 pts), ternaries 2 (nesting depth added 58). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f28a2d58eada8de35df058bd86ba52a53b4303e48f76e0d827ab5d5455160f9"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledStateGraph._migrate_checkpoint (cognitive 108): CompiledStateGraph._migrate_checkpoint has cognitive complexity 108 (threshold 15). Drivers by points: if/else 23 (71 pts), loops 8 (21 pts), ternaries 3 (11 pts), boolean chains 5 (nesting depth added 69). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0c062c857989549a3bcb0361893452f8606beeb7f451ee164b32fa757a9716"}},{"ruleId":"D2","level":"warning","message":{"text":"config.validate_config (cognitive 104): config.validate_config has cognitive complexity 104 (threshold 15). Drivers by points: if/else 46 (79 pts), ternaries 6 (11 pts), boolean chains 7, error handling 2 (4 pts), loops 1 (3 pts) (nesting depth added 42). 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2de372b1dc1d76635f80ba7fccb1ad23684f53bc53a11dfa502a2dc5d038801"}},{"ruleId":"D2","level":"warning","message":{"text":"stream._drain_messages_inbox (cognitive 80): stream._drain_messages_inbox has cognitive complexity 80 (threshold 15). Drivers by points: if/else 14 (49 pts), loops 5 (15 pts), ternaries 4 (12 pts), boolean chains 4 (nesting depth added 53). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b30d24be823122657975948d4edfccbdcb4553e254047e36e317fd0a007fb042"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelRunner.atick (cognitive 77): PregelRunner.atick has cognitive complexity 77 (threshold 15). Drivers by points: if/else 17 (46 pts), loops 6 (13 pts), boolean chains 9, ternaries 4 (5 pts), error handling 3 (4 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bba51a8f1c8e6ea06627356f4da20f5578f61f5d832df629080eb303bbdc835"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelRunner.tick (cognitive 75): PregelRunner.tick has cognitive complexity 75 (threshold 15). Drivers by points: if/else 17 (46 pts), loops 5 (12 pts), boolean chains 9, ternaries 4 (5 pts), error handling 2 (3 pts) (nesting depth added 38). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b2477b723956e559c2e1a6a438de5312b8810f76dbe5e63923e9becd5aac3c"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncHttpClient.stream (cognitive 73): SyncHttpClient.stream has cognitive complexity 73 (threshold 15). Drivers by points: if/else 22 (51 pts), ternaries 4 (8 pts), boolean chains 7, error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 36). 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":"libs/sdk-py/langgraph_sdk/_sync/http.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ecab666a6cde24feb11592c4467bed844028fd2d2e81b3ce9f05c3f710a7f"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpClient.stream (cognitive 71): HttpClient.stream has cognitive complexity 71 (threshold 15). Drivers by points: if/else 20 (49 pts), ternaries 4 (8 pts), boolean chains 7, error handling 2 (4 pts), loops 2 (3 pts) (nesting depth added 36). 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":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3cb0cde21aa798bdbd3706a4265fa0e0690c25d90ffedf638d6a57490f4f62"}},{"ruleId":"D2","level":"warning","message":{"text":"GraphRunStream.interleave (cognitive 66): GraphRunStream.interleave has cognitive complexity 66 (threshold 15). Drivers by points: if/else 16 (53 pts), loops 5 (9 pts), boolean chains 4 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2687d51752c98b0583f79d7b74baf94a51b714c18b6ff08b1f59429cf75fe49"}},{"ruleId":"D2","level":"warning","message":{"text":"StateGraph.add_node (cognitive 65): StateGraph.add_node has cognitive complexity 65 (threshold 15). Drivers by points: if/else 29 (51 pts), boolean chains 8, loops 2 (5 pts), error handling 1 (nesting depth added 25). 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45ff027f89d5fd43941c9f4cb61793c31967e1a3d13c13a3f1c3cd4f9057c3e"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.prepare_single_task (cognitive 64): _algo.prepare_single_task has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (36 pts), ternaries 5 (20 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 40). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3637d45e4dfc3045a59cab7a4af5ed36448a4cbc206562530984e956762f65"}},{"ruleId":"D2","level":"warning","message":{"text":"_retry.arun_with_retry (cognitive 64): _retry.arun_with_retry has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (33 pts), error handling 5 (12 pts), loops 4 (12 pts), ternaries 3 (6 pts), boolean chains 1 (nesting depth added 38). 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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7a4ea1d9eeb0e8408cf74c2aa48e0ed027c89189fc471043f40f859d3dffab"}},{"ruleId":"D2","level":"warning","message":{"text":"_validate.validate_graph (cognitive 64): _validate.validate_graph has cognitive complexity 64 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 9 (15 pts), boolean chains 1 (nesting depth added 30). 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":"libs/langgraph/langgraph/pregel/_validate.py"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8e19de09b3af2a3afe081f52e98388d2e204956d99e5c567634da3e10670e1"}},{"ruleId":"D2","level":"warning","message":{"text":"chat_agent_executor.create_react_agent (cognitive 63): chat_agent_executor.create_react_agent has cognitive complexity 63 (threshold 15). Drivers by points: if/else 39 (53 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 17). 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":"libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb903e8d9ba1dd5e72cd00a4038e9279b165b57857d5b869fea99a696b71f01"}},{"ruleId":"D2","level":"warning","message":{"text":"_config.ensure_config (cognitive 62): _config.ensure_config has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (38 pts), ternaries 3 (12 pts), loops 5 (9 pts), boolean chains 3 (nesting depth added 36). 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":"libs/langgraph/langgraph/_internal/_config.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2ec23778ce0cf69be5f58b3e7f1b146451933864c4b4615cde4274145ffb4a"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel.astream (cognitive 62): Pregel.astream has cognitive complexity 62 (threshold 15). Drivers by points: if/else 25 (34 pts), loops 6 (10 pts), boolean chains 9, ternaries 5 (8 pts), error handling 1 (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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb8643db300ebfd04a64735a6e3e143229c7dc012a5bc29ccebd9cc4b9f76f6"}},{"ruleId":"D2","level":"warning","message":{"text":"generate_schema.add_descriptions_to_schema (cognitive 60): generate_schema.add_descriptions_to_schema has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (38 pts), loops 5 (12 pts), boolean chains 10 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/generate_schema.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"721652ae1958b53db268e137198f0391fa714faa6b2179f1862e37aa97425369"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.apply_writes (cognitive 60): _algo.apply_writes has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 7 (10 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cbc1cb281b7a386580abe22671f881cc410a009a2e43cfdebd73f5c115d7628"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncSqliteStore._batch_search_ops (cognitive 58): AsyncSqliteStore._batch_search_ops has cognitive complexity 58 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 6 (18 pts), ternaries 5 (15 pts), error handling 1 (5 pts), boolean chains 2 (nesting depth added 36). 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a0449a3dba18bcc71b090d2292961a23775e11a9c952887957747b71c596cc"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStore._batch_search_ops (cognitive 58): SqliteStore._batch_search_ops has cognitive complexity 58 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 6 (18 pts), ternaries 5 (15 pts), error handling 1 (5 pts), boolean chains 2 (nesting depth added 36). 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"787dad98723949080e46c0f1717e580245df5a6a8fd7b2f35909cb45ef71795b"}},{"ruleId":"D2","level":"warning","message":{"text":"config._assemble_local_deps (cognitive 58): config._assemble_local_deps has cognitive complexity 58 (threshold 15). Drivers by points: if/else 13 (39 pts), loops 3 (11 pts), error handling 1 (6 pts), boolean chains 2 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa90e2f66cef074119b013628bb52859cbbb183180b680d18f11a834a7ce2ff0"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel.stream (cognitive 56): Pregel.stream has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 8, ternaries 5 (8 pts), loops 4 (6 pts), error handling 1 (nesting depth added 14). 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2767}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b112f9436427e03c6955e84542363e4a73e4729e59bddaa901588fd87a7608"}},{"ruleId":"D2","level":"warning","message":{"text":"deployment_metrics.compact_deployment_metrics (cognitive 54): deployment_metrics.compact_deployment_metrics has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 7 (23 pts), if/else 4 (13 pts), boolean chains 9, loops 4 (9 pts) (nesting depth added 30). 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":"libs/cli/langgraph_cli/deployment_metrics.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab161659f167eec810d6e396724845d922420a28f153cfde14c942ae5e50942"}},{"ruleId":"D2","level":"warning","message":{"text":"StateGraph.compile (cognitive 51): StateGraph.compile has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 9 (14 pts), boolean chains 10, ternaries 6 (nesting depth added 14). 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"199b681b5c29537808dbdb3a2650d3a8fbaeb69d96806d53e5e4de2d5d00b4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGraph.stream (cognitive 49): RemoteGraph.stream has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 7, ternaries 2 (5 pts), loops 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (RemoteGraph.astream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"91edb7d9eea7ce5e3f7446d605ae2a041f5b7f0fc9b7f6282e4d12e0906e94f3"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGraph.astream (cognitive 49): RemoteGraph.astream has cognitive complexity 49 (threshold 15). Drivers by points: if/else 18 (36 pts), boolean chains 7, ternaries 2 (5 pts), loops 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (RemoteGraph.stream) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"28830c5a8314db9e55fec5e92ed1f6c3121a06481560d6dc6267c773c7b6858d"}},{"ruleId":"D2","level":"warning","message":{"text":"_SyncHandleSubgraphsProjection._subgraphs_iter (cognitive 49): _SyncHandleSubgraphsProjection._subgraphs_iter has cognitive complexity 49 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 3 (7 pts), boolean chains 4, error handling 1 (4 pts), ternaries 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a5aaf9f3657b2bba17559e0d414aa240757c8016e0ced66325f4f0db3e9749"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresStore._prepare_batch_PUT_queries (cognitive 48): BasePostgresStore._prepare_batch_PUT_queries has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 8 (20 pts), ternaries 1 (6 pts) (nesting depth added 28). 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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afb118264331e391cbf4d4421c751d4eb2b4598e96ddbb77230878e517aecb9"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSqliteStore._prepare_batch_PUT_queries (cognitive 48): BaseSqliteStore._prepare_batch_PUT_queries has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 8 (20 pts), ternaries 1 (6 pts) (nesting depth added 28). 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0746f13bb83a30ec8536c98d9b9ffde8422bf37643c7e82b4d081218a2e14c47"}},{"ruleId":"D2","level":"warning","message":{"text":"StateGraph.validate (cognitive 48): StateGraph.validate has cognitive complexity 48 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 10 (18 pts), boolean chains 3 (nesting depth added 24). 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ffa80a7bc274d24791c2496ecbd5ee9de77b580c1541a91daeec5a749ee0016"}},{"ruleId":"D2","level":"warning","message":{"text":"_serde._collect_from_type (cognitive 46): _serde._collect_from_type has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (23 pts), loops 8 (20 pts), boolean chains 3 (nesting depth added 16). 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":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca6e72d3aedcb3b9fc00d456f73b0b7e2e473bb4f02027b79de4411f241dfd5"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgresStore.setup (cognitive 45): PostgresStore.setup has cognitive complexity 45 (threshold 15). Drivers by points: if/else 8 (29 pts), error handling 2 (7 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bf32de4a2277ff025825e19c6eed4ad284cf293588e44bb264851f4bfa264a"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSqliteStore._prepare_batch_search_queries (cognitive 45): BaseSqliteStore._prepare_batch_search_queries has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 3 (9 pts), ternaries 2 (8 pts), boolean chains 2 (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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a7ae3dcc7a1ea3c03a2f19a988650adc17c74166619305d1479be00b0c0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._deploy_cmd (cognitive 44): deploy._deploy_cmd has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 8, error handling 2 (3 pts), loops 1 (3 pts), ternaries 1 (nesting depth added 14). 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f628f1a9d57fc19549371bb0a84706e0a09ad1f4aae0fa657f58554290a912"}},{"ruleId":"D2","level":"warning","message":{"text":"_retry.run_with_retry (cognitive 44): _retry.run_with_retry has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (24 pts), error handling 4 (8 pts), loops 3 (8 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 25). 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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"177736a1be00d28ff7a5aa9f82b9e24e445107046faba548ecfc9974ff8d9ed4"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncThreadStream._apply_lifecycle_event (cognitive 44): AsyncThreadStream._apply_lifecycle_event has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 8 (24 pts), if/else 7 (16 pts), boolean chains 4 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"1caecf441421b4cc4eaedc5117cc0a2bf7cd61146f8d5a104656a4c7756c6e32"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncThreadStream._apply_lifecycle_event (cognitive 44): SyncThreadStream._apply_lifecycle_event has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 8 (24 pts), if/else 7 (16 pts), boolean chains 4 (nesting depth added 25). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c75f908acdefddde77ac532c7a3e825fa130d05d51f66a9df5b7403671e630"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._inject_tool_args (cognitive 43): ToolNode._inject_tool_args has cognitive complexity 43 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 2 (6 pts), boolean chains 3 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cbe70a5e8fa0978c14e97d70710451d6bd3bcd41805cabb375e00673d05a54"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel.invoke (cognitive 42): Pregel.invoke has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), ternaries 4 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (Pregel.ainvoke) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3948}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a97d2279ceacde0c7dccf2a516d25ceb3952a913315e961c1ee9202f5a8f0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel.ainvoke (cognitive 42): Pregel.ainvoke has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (29 pts), ternaries 4 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 21). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function. This shape REPEATS in the file: one other method here (Pregel.invoke) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4125}}}],"partialFingerprints":{"codehealthFindingId/v1":"535c00a2c4020bfc21201a6c74c2a012dc69dc196942fe6805b6a57c20fad588"}},{"ruleId":"D2","level":"warning","message":{"text":"config._update_graph_paths (cognitive 41): config._update_graph_paths has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 25). 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75746a387d774161a19400a0c326fd57304af1aabe92e13e6777134863072a9"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryStore._batch_search (cognitive 40): InMemoryStore._batch_search has cognitive complexity 40 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 4 (11 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 25). 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":"libs/checkpoint/langgraph/store/memory/__init__.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f63ee95abc56a90ef2b071dbcaccf18045b9a64f802c9aa6e1ea679e72f9de"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnableSeq.astream (cognitive 40): RunnableSeq.astream has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 5 (10 pts), error handling 2 (4 pts) (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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c12ed7bb8e3939c16a99a345b69a96494ba98d44bea532de9b779399da04078"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncPostgresStore.setup (cognitive 39): AsyncPostgresStore.setup has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (26 pts), error handling 1 (5 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed73aa5ce417c9394f99cd402d28a6b1241b289a9ad7dbbb09f1368fffd2eba7"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnableCallable.ainvoke (cognitive 39): RunnableCallable.ainvoke has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (27 pts), error handling 2 (6 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 17). 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"2723d3b82ac885ae1d28dab72a8224f59d28d52e5861c9ddf35246eb19b49d14"}},{"ruleId":"D2","level":"warning","message":{"text":"batch._run (cognitive 38): batch._run has cognitive complexity 38 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 4 (11 pts), error handling 2 (6 pts) (nesting depth added 25). 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":"libs/checkpoint/langgraph/store/base/batch.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87bc5da7f755cb948c82deda8399a1d32d4b588703d2d0eb703b0a483cb82d8"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresStore._prepare_batch_search_queries (cognitive 38): BasePostgresStore._prepare_batch_search_queries has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 3 (9 pts), ternaries 2 (3 pts), boolean chains 2 (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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecfdb1e4d818c65e302a79da112a9d2da19d1045354acb2ec9b02697a58760a"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncSqliteStore._batch_get_ops (cognitive 38): AsyncSqliteStore._batch_get_ops has cognitive complexity 38 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 5 (10 pts), error handling 2 (8 pts), ternaries 2 (8 pts) (nesting depth added 25). 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4f4cea336b412e3ddedd22815f2a94cd066621e02fec5441862de38914b514"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStore._batch_get_ops (cognitive 38): SqliteStore._batch_get_ops has cognitive complexity 38 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 5 (10 pts), error handling 2 (8 pts), ternaries 2 (8 pts) (nesting depth added 25). 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c793aaeeab363b522b71760695923ebf15f6eaafd09e77d9d37fcf8365002ee1"}},{"ruleId":"D2","level":"warning","message":{"text":"main._output (cognitive 38): main._output has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4398}}}],"partialFingerprints":{"codehealthFindingId/v1":"38451a7a8c6ddd07713c37d4a35ba8ca891e756d4e7f9b16658e5f655a7ef0e5"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleMessagesProjection._messages_iter (cognitive 38): _HandleMessagesProjection._messages_iter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (23 pts), ternaries 3 (8 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 22). 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d5152b47d8e532989d123942be69ee779a9e47288d14286aa38ddf4a076248"}},{"ruleId":"D2","level":"warning","message":{"text":"_SyncHandleMessagesProjection._messages_iter (cognitive 38): _SyncHandleMessagesProjection._messages_iter has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (23 pts), ternaries 3 (8 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 22). 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd17cc946eabbdb4e37a440de74bdcc2cff0ea3e309fdb8885ce59158c1c27a4"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemorySaver.list (cognitive 37): InMemorySaver.list has cognitive complexity 37 (threshold 15). Drivers by points: if/else 5 (19 pts), ternaries 4 (7 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 20). 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":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7df8ec32a044e34b2210867238a99baed0afff30288053dcc70662e10dbf524"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessagesProjection._drain_inbox (cognitive 37): _MessagesProjection._drain_inbox has cognitive complexity 37 (threshold 15). Drivers by points: if/else 8 (21 pts), ternaries 3 (8 pts), loops 3 (6 pts), boolean chains 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"78749a44fe609e91f1e17224708f09835af575567a6db783299f8e7f5bdc7b0c"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryStore._extract_texts (cognitive 36): InMemoryStore._extract_texts has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 3 (13 pts), boolean chains 2 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/memory/__init__.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba655d71107d8f2de7a682f9ee18fd41c33b2ebff030dd19e858423569af872"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.prepare_push_task_send (cognitive 36): _algo.prepare_push_task_send has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 5 (11 pts), boolean chains 5 (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":938}}}],"partialFingerprints":{"codehealthFindingId/v1":"721cc7422eb8e97bc1143226e172ad6d6bd4a48faeafad639015ebebf2b07984"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop.put_writes (cognitive 36): PregelLoop.put_writes has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 5, ternaries 2 (5 pts) (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"656452a3d57c7c7e9bea720bf3a0021ee11e5dc95b91e2b24d17741b905fde38"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleSubgraphsProjection._subgraphs_iter (cognitive 36): _HandleSubgraphsProjection._subgraphs_iter has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (7 pts), boolean chains 2, ternaries 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81bf1c44cfdc010ec3cf2c5b0a51e12b217e87843d4f875e85f8c938f63cab3"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemorySaver.get_delta_channel_history (cognitive 35): InMemorySaver.get_delta_channel_history has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 6 (10 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 17). 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":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adc6c0d64816694e583735ae240628f8c4609a9f028792fc0e943f46930a39b"}},{"ruleId":"D2","level":"warning","message":{"text":"_io.map_output_updates (cognitive 35): _io.map_output_updates has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (29 pts), loops 3, boolean chains 2, ternaries 1 (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":"libs/langgraph/langgraph/pregel/_io.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4dfcb54dbe06fc31d45ac3a69d9a5825d2ab65d084504c41e401a450b29036"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnableCallable.invoke (cognitive 34): RunnableCallable.invoke has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (23 pts), error handling 2 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b057e83b2a61244ce0c372edf0a769500a052262fc4e0dea93891643fb2bab6"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleToolCallsProjection._tool_calls_iter (cognitive 34): _HandleToolCallsProjection._tool_calls_iter has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"538541d216799ca766b585317bda962535773813de179fe0a32571a61fd07e0f"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncThreadStream._fanout (cognitive 34): AsyncThreadStream._fanout has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 4 (7 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 20). 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5f2dd6c49c954bff79be2d27c781d30b0a5ae3e79ac8d59368eb02708f38dd"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncThreadStream._run_lifecycle_watcher (cognitive 34): AsyncThreadStream._run_lifecycle_watcher has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 6, error handling 2 (4 pts), loops 2 (3 pts) (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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1878}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20222e2f74d8ea54195285ca3e25d66b9b7ccb8452ba59782e56e75472dcbc1"}},{"ruleId":"D2","level":"warning","message":{"text":"_SyncHandleToolCallsProjection._tool_calls_iter (cognitive 34): _SyncHandleToolCallsProjection._tool_calls_iter has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (22 pts), ternaries 2 (6 pts), loops 2 (4 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"781e2e69caf17fa73d812c42af97a3d776835530fb6c570440e0f83f8bb0efed"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncStreamController._fanout (cognitive 34): SyncStreamController._fanout has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 4 (7 pts), error handling 1 (2 pts), boolean chains 1 (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":"libs/sdk-py/langgraph_sdk/stream/sync_controller.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"68abe7163f9b6555a37748d349bddf3a73f12fec4761f82f05003b2bbec2e28b"}},{"ruleId":"D2","level":"warning","message":{"text":"validate.validate (cognitive 33): validate.validate has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 5, ternaries 1 (3 pts), loops 1 (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":"libs/checkpoint-conformance/langgraph/checkpoint/conformance/validate.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"506c37458be6e531f70164a1b0ad896f09180d6cbdfd0624abbe970dfb551795"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._put_checkpoint (cognitive 32): PregelLoop._put_checkpoint has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 9, ternaries 6 (8 pts), loops 2 (3 pts) (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc18b4ab35171a9e95eaed11ecc638ec76d5481e7dd774c43db0a96dd805145"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop.output_writes (cognitive 32): PregelLoop.output_writes has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (24 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 18). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1635}}}],"partialFingerprints":{"codehealthFindingId/v1":"5563ab1a1fb778b9e50819006ed2457b0e1cdcf1828623d40d2939b56ff52df1"}},{"ruleId":"D2","level":"warning","message":{"text":"embed.tokenize_path (cognitive 31): embed.tokenize_path has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 17). 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":"libs/checkpoint/langgraph/store/base/embed.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f708fa079a0d0cb96c3c0bbfdb8a770f07c15918a75421010b5124cc2e02a80"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMessagesHandler.on_chain_start (cognitive 31): StreamMessagesHandler.on_chain_start has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 2 (6 pts), boolean chains 4 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"af53eb7057b2bf6be578f130e3dd84f5d1569b819a3cc048e84a0ba28155c6ec"}},{"ruleId":"D2","level":"warning","message":{"text":"StateGraph._add_schema (cognitive 30): StateGraph._add_schema has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (25 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b0070513fcc260ef2b0608a8e5ff61340631e7961d14840b993d942bf3de8a"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.tasks_w_writes (cognitive 30): debug.tasks_w_writes has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (16 pts), ternaries 5 (12 pts), boolean chains 1, loops 1 (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":"libs/langgraph/langgraph/pregel/debug.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd59b604d314e1c381c47028f672e75cf8417784327771af96b2d0b6d8c2555"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncThreadStream._run_lifecycle_watcher (cognitive 30): SyncThreadStream._run_lifecycle_watcher has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"14651cfd69ab05d2897db67ceab760d2309ba99377f26ef9f4c05ef1a6c8abe2"}},{"ruleId":"D2","level":"warning","message":{"text":"config.python_config_to_docker (cognitive 29): config.python_config_to_docker has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 7 (8 pts), boolean chains 5, loops 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"d928e55ee70c2a1aeeaa94912a1822db674b04f57819c58d667dea3f4388cfac"}},{"ruleId":"D2","level":"warning","message":{"text":"_checkpoint.create_checkpoint (cognitive 29): _checkpoint.create_checkpoint has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 5, loops 1 (2 pts), ternaries 1 (nesting depth added 14). 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":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"850c9010e593c03aecc1d90a3896c9b38990f976a900f722ba1307c9503dd7dc"}},{"ruleId":"D2","level":"warning","message":{"text":"_runner._panic_or_proceed (cognitive 29): _runner._panic_or_proceed has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 14). 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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42baa30ae9a27351adc1bc35c9df785c1ab00ed4a8f5530b6ca13e5ba81da62"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._combine_tool_outputs (cognitive 29): ToolNode._combine_tool_outputs has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 2 (5 pts), loops 2 (3 pts), boolean chains 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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4cbc13882edb6df9cdb6ceab4e98e10848f7ce12008494112b4ba1ae11ac1a"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSqliteStore._get_batch_list_namespaces_queries (cognitive 28): BaseSqliteStore._get_batch_list_namespaces_queries has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (4 pts), ternaries 1 (2 pts), boolean chains 1 (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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abc9ad3bf0b9d16aafd24462b0a11ca013deba4358e6dc7f551400e45e1014b"}},{"ruleId":"D2","level":"warning","message":{"text":"message.add_messages (cognitive 28): message.add_messages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3, boolean chains 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":"libs/langgraph/langgraph/graph/message.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5be9b3953907be0b02d40a1098e3c3551e733ec2941d94a12724f779c8b9cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamController._fanout (cognitive 28): StreamController._fanout has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 4 (7 pts), error handling 1 (2 pts), boolean chains 1 (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":"libs/sdk-py/langgraph_sdk/stream/controller.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"508f10f808472e98484b503cea17e43189a1ad047bc8645b4b3237dc2fa22a77"}},{"ruleId":"D2","level":"warning","message":{"text":"config.validate_config_file (cognitive 27): config.validate_config_file has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (19 pts), error handling 2 (8 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cfd03dac5ddee415ae4e711da5f918a22f34253da57053c275b74553947bef"}},{"ruleId":"D2","level":"warning","message":{"text":"uv_lock._discover_uv_lock_workspace_packages (cognitive 27): uv_lock._discover_uv_lock_workspace_packages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 5 (6 pts), ternaries 2 (5 pts), boolean chains 3 (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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"3879e6ced811d1e3055881dde095530b8ddb03b5fd1d20509b7d562668f3624f"}},{"ruleId":"D2","level":"warning","message":{"text":"_config.merge_configs (cognitive 27): _config.merge_configs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 2 (3 pts) (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":"libs/langgraph/langgraph/_internal/_config.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"78232084119d1f991b54cbd5211615e4b7266628ced074c584995e0eb5ef244f"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpClient.request_reconnect (cognitive 27): HttpClient.request_reconnect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 4 (8 pts), boolean chains 3, loops 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d167df5e6fb053a05cd7e4ad7a57cf6c2e59e9a609e57b3689d3d9bed67478"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncThreadStream.interleave_projections (cognitive 27): AsyncThreadStream.interleave_projections has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 14). 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"0263b579aeb17b3d6e8476791bb027f7052822f733cb892f11a18da2ac13bd17"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncHttpClient.request_reconnect (cognitive 27): SyncHttpClient.request_reconnect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 4 (8 pts), boolean chains 3, loops 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_sync/http.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5e4ffee81a62d5007422cf492229deaffb0ba1c3380a5b27ae1f83a6fc8903"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncThreadStream.interleave_projections (cognitive 27): SyncThreadStream.interleave_projections has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 14). 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"db10defc222e123c69457dcdf6802dc8a07023526d6f7f5063b716ccf05257b0"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseSqliteStore._get_filter_condition (cognitive 26): BaseSqliteStore._get_filter_condition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 2 (6 pts) (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. This shape REPEATS in the file: one other method here (SqliteStore._get_filter_condition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2efd5f6007e03c421bcf4e1545df994798909d10497ac9376c22faf5b1828ca"}},{"ruleId":"D2","level":"warning","message":{"text":"SqliteStore._get_filter_condition (cognitive 26): SqliteStore._get_filter_condition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 2 (6 pts) (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. This shape REPEATS in the file: one other method here (BaseSqliteStore._get_filter_condition) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"40de708c20a022b563045b09c5e5922785c0976caff6c070f07a8fcdfb0ff3cc"}},{"ruleId":"D2","level":"warning","message":{"text":"_fields.get_enhanced_type_hints (cognitive 26): _fields.get_enhanced_type_hints has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), boolean chains 4, error handling 2 (4 pts), 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":"libs/langgraph/langgraph/_internal/_fields.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"73edbdd8bcd1ea0a3f2ab1e465d8f41934f947d2b56142157179ff83240c9ee3"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnableCallable.__init__ (cognitive 26): RunnableCallable.__init__ has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 2 (6 pts), boolean chains 5, loops 1 (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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c858ece44478caa7b591b2325797cbab3e53869cd525d1c8ea45e9259420bf91"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelRunner.commit (cognitive 26): PregelRunner.commit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 3 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b312b37985d8972f5aae04cc9cbaf478234861f0de281d6195c8c7533f1ae74"}},{"ruleId":"D2","level":"warning","message":{"text":"subscription.filter_covers (cognitive 26): subscription.filter_covers has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 3 (4 pts) (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":"libs/sdk-py/langgraph_sdk/stream/subscription.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b261a3d1c52648b013ff3d61dd2fe816be2b075f9f2be70a278a93c7343f70a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ignore._build_dockerignore_negation_hints (cognitive 25): _ignore._build_dockerignore_negation_hints has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (5 pts), boolean chains 2 (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":"libs/cli/langgraph_cli/_ignore.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"8018cdbbacf8da61c6534d39b35ba5e882567f646d6e60d13b01964659eb621a"}},{"ruleId":"D2","level":"warning","message":{"text":"config._update_http_app_path (cognitive 25): config._update_http_app_path has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (7 pts), boolean chains 3 (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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42b8a8726ba61d90a95bfe91f4c38d93873cbe51a9efaec36bdcd8c7807f6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"uv_lock._validate_uv_lock_source_entry (cognitive 25): uv_lock._validate_uv_lock_source_entry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2 (3 pts), boolean chains 2 (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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3d9d9d2e2f9ba258d69492ab263a54ea1136aaf71f974103fac12232f7a9c0"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop.after_tick (cognitive 25): PregelLoop.after_tick has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (2 pts) (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"711bb7fc765a8fa683fe129e9ea908dcd497f21f78d0dda4584f9f60ee295b39"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMessagesHandlerV2._find_and_emit_messages (cognitive 25): StreamMessagesHandlerV2._find_and_emit_messages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (8 pts), boolean chains 4 (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":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bd80cf4625d6aea225a80a565dd6b351fef8d8085a45f5d9557843690da853"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel.get_subgraphs (cognitive 25): Pregel.get_subgraphs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (16 pts), ternaries 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 14). 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1beb4bf7592100e0491210586e79684d04c2cc8f33a02c77b386840e1ce27abc"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel._prepare_state_snapshot (cognitive 25): Pregel._prepare_state_snapshot has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 2 (3 pts) (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. This shape REPEATS in the file: one other method here (Pregel._aprepare_state_snapshot) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90215601a784f40e6ede576c92a662b0281e8662e450478abfebd56c4ba1028"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel._aprepare_state_snapshot (cognitive 25): Pregel._aprepare_state_snapshot has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 3, loops 2 (3 pts) (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. This shape REPEATS in the file: one other method here (Pregel._prepare_state_snapshot) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf858e901f5d0f1053a4f3c23ad939d051277ff1fb1dffdacef3bd44b0c5269"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._select_source (cognitive 24): deploy._select_source has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 4 (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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6a93f9805239ecb35ba217afa8d8d5f1f2b1d798c79224cdd79f5363a86d2b"}},{"ruleId":"D2","level":"warning","message":{"text":"exec.subp_exec (cognitive 24): exec.subp_exec has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 6 (10 pts), error handling 2 (3 pts), 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":"libs/cli/langgraph_cli/exec.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdfdb118d6169d52a2792da7dc00263d75475ad4ca5fa259eec8a985e125e2d7"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo._proc_input (cognitive 24): _algo._proc_input has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 2, loops 1 (2 pts) (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"eced3d3d2925ff359b3e92c3815dadb01847b7cea0aa9c23dee7ed6a2e73bb68"}},{"ruleId":"D2","level":"warning","message":{"text":"_runner._acall_impl (cognitive 24): _runner._acall_impl has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 1 (4 pts), boolean chains 1, error handling 1 (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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5decca1f94cb66993e94ab8b1013442cc301cc5b3781b036bb33193f852ac80"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesDecoder.feed (cognitive 24): MessagesDecoder.feed has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (4 pts), loops 1 (3 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/stream/decoders.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d3f2bf8247c8426b9b4ab0668ed228ccc7a75e93ce4ff1de41ef211dd38d5e"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseCheckpointSaver.get_delta_channel_history (cognitive 23): BaseCheckpointSaver.get_delta_channel_history has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (7 pts), boolean chains 1, ternaries 1 (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. This shape REPEATS in the file: one other method here (BaseCheckpointSaver.aget_delta_channel_history) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6e2188a33891c4afd8201cbf59b9b9de0a87b192d6b33edc3ca068ec9c06b8"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseCheckpointSaver.aget_delta_channel_history (cognitive 23): BaseCheckpointSaver.aget_delta_channel_history has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (7 pts), boolean chains 1, ternaries 1 (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. This shape REPEATS in the file: one other method here (BaseCheckpointSaver.get_delta_channel_history) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a4bf048c324bcfd40ed3f55930a142702a6f29f38b6467f8890183335ea797a"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy.deploy_logs (cognitive 23): deploy.deploy_logs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 2, error handling 1, 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, 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":3051}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32952f05b4847cfecb6e09767dfbe012e7b3413eebd23dd7671fc50f0a32318"}},{"ruleId":"D2","level":"warning","message":{"text":"uv_lock.python_config_to_docker_uv_lock (cognitive 23): uv_lock.python_config_to_docker_uv_lock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7, loops 4 (5 pts) (nesting depth added 2). 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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"42510106c5ebcb4bb8b1e82377696c32091c46e20bb3873f0e820fdcdb171a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"BranchSpec._finish (cognitive 23): BranchSpec._finish has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 1 (2 pts), ternaries 1 (2 pts), 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":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"48160b0802b1e82a35fa29d40ed5474aee6e864206628b3a8f513608a0855f23"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo._scratchpad (cognitive 23): _algo._scratchpad has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (4 pts), boolean chains 2 (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c3fa49dd275a10ff51d87cee4ed7045e9990c11658f9058159054b770337a3"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_node._get_all_injected_args (cognitive 23): tool_node._get_all_injected_args has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 3, loops 1, ternaries 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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01c618fc09e1e57334d899cd557be599d3653671e50fccd78d18b7e478a88f5"}},{"ruleId":"D2","level":"warning","message":{"text":"state._is_field_channel (cognitive 22): state._is_field_channel has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (13 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"774425384af3925ce214b3d1a69413f73dde3c084457e282f0ba0b1989e1129a"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._suppress_interrupt (cognitive 22): PregelLoop._suppress_interrupt has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 3 (8 pts), boolean chains 5 (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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1536}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1184f832caf7bf965ea6af129a4378e489caed61c3ccccae50aa3cd43e02be"}},{"ruleId":"D2","level":"warning","message":{"text":"_runner._call (cognitive 22): _runner._call has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7c2314c8ecb0839aa796b72888811ec7fe4d50d6ae3bba808a4b9fa610d297"}},{"ruleId":"D2","level":"warning","message":{"text":"_SyncSubgraphsProjection._subgraphs_iter (cognitive 22): _SyncSubgraphsProjection._subgraphs_iter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 3 (4 pts), error handling 1 (2 pts), 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9786d0dedeca6dc46b3baa333859baaa726716b40dde8665fab67bc559b27b"}},{"ruleId":"D2","level":"warning","message":{"text":"jsonplus._msgpack_ext_hook_to_json (cognitive 21): jsonplus._msgpack_ext_hook_to_json has cognitive complexity 21 (threshold 15). Drivers by points: error handling 7 (14 pts), if/else 3 (5 pts), boolean chains 2 (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":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e7a204d7fa78ba2d34e489b99f2b2d20acedabe65b3af27ce4d7f241be012cb"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryStore._filter_items (cognitive 21): InMemoryStore._filter_items has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 3, loops 2 (3 pts), ternaries 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":"libs/checkpoint/langgraph/store/memory/__init__.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d99ed06d95e4cfe2ac3383ca8b45f346277f59afb561435922ec8bc09e664a6"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresSaver._try_advance_walks (cognitive 21): BasePostgresSaver._try_advance_walks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (3 pts), boolean chains 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"7710928abd9d5db516253d83a43f492bdfcb2d7274ddc3d4bfb119f565fb6b02"}},{"ruleId":"D2","level":"warning","message":{"text":"dependency_tracking._find_version_for (cognitive 21): dependency_tracking._find_version_for has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (7 pts) (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":"libs/cli/langgraph_cli/dependency_tracking.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8246c63863e0df0c07ab32474706bd5659dd6209cdb95ccff58c67e73c559746"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.local_read (cognitive 21): _algo.local_read has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 3 (6 pts) (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c394907e6052360b2c2e82347529d9c8f04b115cae6335fc545a0cc8c765f7e6"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMessagesHandler._find_and_emit_messages (cognitive 21): StreamMessagesHandler._find_and_emit_messages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (8 pts) (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":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fae4786651847858b537310ba479d822086c28563b57dff7cddce1ea438af2"}},{"ruleId":"D2","level":"warning","message":{"text":"_retry._arun_with_timeout (cognitive 21): _retry._arun_with_timeout has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 5 (8 pts), error handling 2 (3 pts), boolean chains 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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8e5efd61e05d745a30afe013d2fdfd28624a862cc428cee783f642b15fbcc9"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncThreadStream._finalize_interleave_decoders (cognitive 21): SyncThreadStream._finalize_interleave_decoders has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 4 (6 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2709e747491f6c393ee9905ccde48e4b8f6c306a004b35dbdd11db48d133722"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgresSaver.get_delta_channel_history (cognitive 20): PostgresSaver.get_delta_channel_history has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (7 pts), 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d06ed98bd94dc7551372d60bb03c37d3f2dc87d42eee1caa12e519483171de"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncPostgresSaver.aget_delta_channel_history (cognitive 20): AsyncPostgresSaver.aget_delta_channel_history has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 4 (7 pts), 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a8ef487baa62a782d0aaa4bc6a1d5811903cd161649086f172a2a7efa1bd70"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresStore._get_batch_list_namespaces_queries (cognitive 20): BasePostgresStore._get_batch_list_namespaces_queries has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (4 pts) (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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"546fc5429100e2eaeee5889c860d1995b24af0c5b9bbdfcd2fcbf3896df6a7bf"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._poll_revision_status (cognitive 20): deploy._poll_revision_status has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (2 pts), ternaries 1 (2 pts), 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2e0f9c10ba9df00b251289c9abc450608a4da2176e705e314e17c957fe6f21"}},{"ruleId":"D2","level":"warning","message":{"text":"entrypoint.__call__ (cognitive 20): entrypoint.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (3 pts), boolean chains 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":"libs/langgraph/langgraph/func/__init__.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f873f1d9109586ffcbb3e6614786fd8ad80027069e9728c09047e69af6e534"}},{"ruleId":"D2","level":"warning","message":{"text":"BranchSpec.from_path (cognitive 20): BranchSpec.from_path has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"98effe10a418d293388c04bcdbff23a761e152d65f942f9ca894d0c2bcc8aa7a"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.prepare_push_task_functional (cognitive 20): _algo.prepare_push_task_functional has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 6 (7 pts), boolean chains 5 (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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e80409ea9845bfd938ff6f37fa2ffa1b5215b7f3f20d52f9f466bb53c56cf0"}},{"ruleId":"D2","level":"warning","message":{"text":"_checkpoint._mark_bumps_seen (cognitive 20): _checkpoint._mark_bumps_seen has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (7 pts), boolean chains 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":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"1070fb7c0dfffad47acd4b1bef5833e09250993b88f447265a961df463864a31"}},{"ruleId":"D2","level":"warning","message":{"text":"_utils.get_function_nonlocals (cognitive 20): _utils.get_function_nonlocals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts), error handling 1 (2 pts), 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":"libs/langgraph/langgraph/pregel/_utils.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fe80d49e61f361185d6cf028aac348ed6e5d0bb5eba09363e167b9b996d925"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._validate_tool_command_list (cognitive 20): ToolNode._validate_tool_command_list has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (5 pts), boolean chains 2 (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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"287a408f82108c336a4aab5b08e1b46d34ed72ba231d2b938d43c6c040b0f4f6"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleSubgraphsProjection._route_sibling_inboxes_to_grandchildren (cognitive 20): _HandleSubgraphsProjection._route_sibling_inboxes_to_grandchildren has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 4 (8 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9ae778f1c426ccec488201d0223a6ddb127e675a24b15ad4c30046e9070e65"}},{"ruleId":"D2","level":"warning","message":{"text":"_SubgraphsProjection._subgraphs_iter (cognitive 20): _SubgraphsProjection._subgraphs_iter has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 3 (4 pts), 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c2af05d17a5129484ad51b5f3132fd019185bfee8b703378d6ada809a5af2e0"}},{"ruleId":"D2","level":"warning","message":{"text":"batch._dedupe_ops (cognitive 19): batch._dedupe_ops has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (7 pts), 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":"libs/checkpoint/langgraph/store/base/batch.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bcf035690ca21a0cd1ac3478623990b736171979d464bc145a61c8b4b26af83"}},{"ruleId":"D2","level":"warning","message":{"text":"memory._does_match (cognitive 19): memory._does_match has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts) (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":"libs/checkpoint/langgraph/store/memory/__init__.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b7ebc2e225312da162f323c35f58425d8a1207498e0fee694db2c05b27750a"}},{"ruleId":"D2","level":"warning","message":{"text":"BasePostgresSaver._build_delta_channels_writes_history (cognitive 19): BasePostgresSaver._build_delta_channels_writes_history has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 4 (8 pts), boolean chains 1 (nesting depth added 8). 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14cbdaac6b54c379dd6b2d08a03d681183dde4b361de8e34a98c566a5d43c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"config.config_to_compose (cognitive 19): config.config_to_compose has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 3 (4 pts), boolean chains 2 (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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e251474eefdcef03932f71da3991a1f3305df1a07a8a2f8c59dc5688904c26"}},{"ruleId":"D2","level":"warning","message":{"text":"dependency_tracking.find_tracked_packages (cognitive 19): dependency_tracking.find_tracked_packages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), boolean chains 2, error handling 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":"libs/cli/langgraph_cli/dependency_tracking.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2aaf2e02d7a08c827da61bdbf989cbed31d9993574d8a3bf5cd6f587aa4bc8e"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._resolve_or_create (cognitive 19): deploy._resolve_or_create has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, ternaries 2, error handling 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"916ca2c2b96fd40e2f6329fcdcdc7d649a58bd0374b3206c4029ea82dcee24b2"}},{"ruleId":"D2","level":"warning","message":{"text":"_config._merge_callbacks (cognitive 19): _config._merge_callbacks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (6 pts), ternaries 1 (2 pts) (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":"libs/langgraph/langgraph/_internal/_config.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb13440fa0e3923347437c2d0e30f9414c22cfffa7de08892a17be1e88e94044"}},{"ruleId":"D2","level":"warning","message":{"text":"RunnableSeq.ainvoke (cognitive 19): RunnableSeq.ainvoke has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (5 pts), error handling 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d82070734351ef808be33273dd8edbe7ae020286fe3a075956e0d7d21254ad"}},{"ruleId":"D2","level":"warning","message":{"text":"CompiledStateGraph.attach_node (cognitive 19): CompiledStateGraph.attach_node has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (8 pts), boolean chains 2 (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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4a128a2f0adab59fb68c767bb1b587e46fca1cdcf38e485c4fa3960df86b89"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._put_exit_delta_writes (cognitive 19): PregelLoop._put_exit_delta_writes has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, loops 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2425015ea61d29ee5911c669d4f09f8275ff7d532eeb6702ca29377984097dd"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncThreadStream._finalize_interleave_decoders (cognitive 19): AsyncThreadStream._finalize_interleave_decoders has cognitive complexity 19 (threshold 15). Drivers by points: loops 4 (6 pts), if/else 3 (5 pts), ternaries 3 (5 pts), boolean chains 3 (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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1e1b6575dbcf9785d59d22cad3a748788512908d95fea7bc06168dad94be84"}},{"ruleId":"D2","level":"warning","message":{"text":"_SyncToolCallsProjection._tool_calls_iter (cognitive 19): _SyncToolCallsProjection._tool_calls_iter has cognitive complexity 19 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 3 (4 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (nesting depth added 6). 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6c33c8253f8939f9b79765a1455058b5e5620e0a76a1f8b122cda10119a872"}},{"ruleId":"D2","level":"warning","message":{"text":"SSEDecoder.decode (cognitive 19): SSEDecoder.decode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, error handling 1 (3 pts) (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":"libs/sdk-py/langgraph_sdk/sse.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2887bd53d4f368b77839a1cee65c53eb5142ce8e18f4d8e330da0e03a1b63f"}},{"ruleId":"D2","level":"warning","message":{"text":"state._control_branch (cognitive 18): state._control_branch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (5 pts), ternaries 1 (2 pts), 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4aa4cc883dc3cfbbd40d8671aaa8d3dad18e7fec159ab2818f5c06787ef0aea"}},{"ruleId":"D2","level":"warning","message":{"text":"ui.ui_message_reducer (cognitive 18): ui.ui_message_reducer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), 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":"libs/langgraph/langgraph/graph/ui.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ccd3d9c226ed375093f3be36122b79c3c37a06f40b776dd4d1a2e4da17c4df"}},{"ruleId":"D2","level":"warning","message":{"text":"_algo.prepare_next_tasks (cognitive 18): _algo.prepare_next_tasks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b14b3ecb41a8e1a9ed4b4159b63016f7569c3d5e8fd0652d68449247eadb0dd"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._emit (cognitive 18): PregelLoop._emit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (6 pts), boolean chains 2, 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e657001d0e6bebf6347661315e3942347c5bcb1e2b3f28f14f8ac74f352297"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteGraph._sanitize_config (cognitive 18): RemoteGraph._sanitize_config has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), boolean chains 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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a359bdf40ae9323d440be5781e3680257f898600828e9005dde5cdda722a3c04"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._execute_tool_sync (cognitive 18): ToolNode._execute_tool_sync has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 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. This shape REPEATS in the file: one other method here (ToolNode._execute_tool_async) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":930}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa8a1f14e494710a5ce86ca3e145fcd3d773391bb3ee44874f9186e6a624215"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._execute_tool_async (cognitive 18): ToolNode._execute_tool_async has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 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. This shape REPEATS in the file: one other method here (ToolNode._execute_tool_sync) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1090}}}],"partialFingerprints":{"codehealthFindingId/v1":"e390f33a087d58c5623d6bc5404a3f0d3f7466e25e9635ca539d7c1282253623"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_node._filter_validation_errors (cognitive 18): tool_node._filter_validation_errors has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1, 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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a94e5e109ae53f20ff51fc94fb587ba7dde7f6b0a356b228cf8415183926959"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallsDecoder.feed (cognitive 18): ToolCallsDecoder.feed has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (5 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/stream/decoders.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"823d635da015b3e96bab2fa56a4e1ad3a263bd5cec79a369d427e88a8b1283d4"}},{"ruleId":"D2","level":"warning","message":{"text":"PostgresSaver.list (cognitive 17): PostgresSaver.list has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (8 pts), 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"331905eef4a066da05883e676b27d9684a6e3b927001c2d7bbb98c598cec55e1"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncPostgresSaver.alist (cognitive 17): AsyncPostgresSaver.alist has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 4 (8 pts), 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"81e1920bd47159850ea8c0a5d4c2923e19b58431932be10fd95a400523683877"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._create_host_backend_client (cognitive 17): deploy._create_host_backend_client has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 2, loops 1 (2 pts), 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":2041}}}],"partialFingerprints":{"codehealthFindingId/v1":"695c3c386d9e653ac9faf8232015d29dea2ebdbcfab50f714ee18c48556fd13b"}},{"ruleId":"D2","level":"warning","message":{"text":"StateGraph.add_edge (cognitive 17): StateGraph.add_edge has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff634702079bfbbb290cab18934b55beb3beb8482e0e1715dfa7c627e0e1c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"AsyncBackgroundExecutor.__aexit__ (cognitive 17): AsyncBackgroundExecutor.__aexit__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 1 (3 pts), loops 2 (3 pts), 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":"libs/langgraph/langgraph/pregel/_executor.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b6d61cfb5641d2e37ae213b5c59b28c5e168e6a5fe2ce51bd325f4c10f90b0"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop.__init__ (cognitive 17): PregelLoop.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 2 (nesting depth added 2). 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"1175d6bef6652751a810deae47cb145dcb96249427f286629e07b2dc3e42f70c"}},{"ruleId":"D2","level":"warning","message":{"text":"PregelLoop._resume_error_handlers_if_applicable (cognitive 17): PregelLoop._resume_error_handlers_if_applicable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2, 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ce1a6abb1a0517c69d7845cb9f6ae0856a9d106c9d507616785a62770160db"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMessagesHandlerV2.on_llm_end (cognitive 17): StreamMessagesHandlerV2.on_llm_end has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cbef8b890289a91541430923ddd4c17b7dfccf321c9e069cccb1e2a7e6b8bd"}},{"ruleId":"D2","level":"warning","message":{"text":"_utils.find_subgraph_pregel (cognitive 17): _utils.find_subgraph_pregel has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 2 (5 pts), boolean chains 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":"libs/langgraph/langgraph/pregel/_utils.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"572a4fc478d71372cce49213a2f1466561cf1556f86416c81361745b7f9414ed"}},{"ruleId":"D2","level":"warning","message":{"text":"_write._assemble_writes (cognitive 17): _write._assemble_writes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), ternaries 1 (3 pts), boolean chains 1, 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":"libs/langgraph/langgraph/pregel/_write.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e63e489d7fbbfe6c633042fdaa6a5f118cdfc995ad738f37e4ffad4f58d923f"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolNode._validate_tool_command (cognitive 17): ToolNode._validate_tool_command has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, ternaries 1 (2 pts), 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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d96042af8df5f204cfae836669f0f3d35af4c0c6456c74b4b3eb53cf23f9f0"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_node._infer_handled_types (cognitive 17): tool_node._infer_handled_types has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff8804040f777011ba4e6c65969558345d26abeebf809cccb76a9778a45d943"}},{"ruleId":"D2","level":"warning","message":{"text":"errors._extract_error_message (cognitive 17): errors._extract_error_message has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (5 pts), boolean chains 2 (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":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"294c202e160d7cea833e2281118df133a12a285af88addb0fcb19020d6c50f38"}},{"ruleId":"D2","level":"warning","message":{"text":"base._keep_latest (cognitive 16): base._keep_latest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (6 pts), 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a24ce383fe299abc9ca6e348eb93fdb8507c26c415e5b45b343af9a221666df"}},{"ruleId":"D2","level":"warning","message":{"text":"archive._add_directory (cognitive 16): archive._add_directory has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (5 pts), loops 2 (3 pts) (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":"libs/cli/langgraph_cli/archive.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3462a859958657ecd9a13eb21fdfab2ee744ce90fe42604abb1bf16434877d8"}},{"ruleId":"D2","level":"warning","message":{"text":"config.node_config_to_docker (cognitive 16): config.node_config_to_docker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 3, boolean chains 1 (nesting depth added 2). 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41569811acc67b54a93a1fb8fd5931ff82c7a8883d055d67a1cda52ce9f77de"}},{"ruleId":"D2","level":"warning","message":{"text":"_Emitter.result (cognitive 16): _Emitter.result has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (16 pts) (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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"183f5575638c3a01d90c1f8acf0cc3fbaa5990258efd125ea5c84f06f3b6a639"}},{"ruleId":"D2","level":"warning","message":{"text":"deploy._call_host_backend_with_optional_tenant (cognitive 16): deploy._call_host_backend_with_optional_tenant has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 1, ternaries 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd300370b5ddbfea80cea598436fbda13b563a27c7e8366a9325828300a2f77d"}},{"ruleId":"D2","level":"warning","message":{"text":"_fields.get_field_default (cognitive 16): _fields.get_field_default has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), 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":"libs/langgraph/langgraph/_internal/_fields.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5de9d50f0682a9659d36cc3876331dbbf39671b9b9adb93b1c70d8a51e30dd"}},{"ruleId":"D2","level":"warning","message":{"text":"_branch._get_branch_path_input_schema (cognitive 16): _branch._get_branch_path_input_schema has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 6, error handling 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":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f58eb131747dd692c5f58e8cd563ec9e7cd60460a9e7052c7cff849c67fe7e40"}},{"ruleId":"D2","level":"warning","message":{"text":"_messages._messages_delta_reducer (cognitive 16): _messages._messages_delta_reducer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2, boolean chains 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":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f60dae8c01b22c5b6e60dcf4717fdee4473e287ee39ef39f71580034ba33520"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelWrite.do_write (cognitive 16): ChannelWrite.do_write has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, 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":"libs/langgraph/langgraph/pregel/_write.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"614b580a9282d8e96cf205a265081886361ee5d30e0173286e3f1da235a97eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"debug.map_debug_tasks (cognitive 16): debug.map_debug_tasks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, 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":"libs/langgraph/langgraph/pregel/debug.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09269cf465b3ab8711d60257f620d5e4ac7d1bccfcd43106b39b4cf235c3bbe"}},{"ruleId":"D2","level":"warning","message":{"text":"Pregel._defaults (cognitive 16): Pregel._defaults has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, boolean chains 3. 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2664}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c8baf751dc514dba715b04de03afbb35f7cc97a829a6748617ec176b4d1feb"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamMux.aclose (cognitive 16): StreamMux.aclose has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 1 (2 pts), 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":"libs/langgraph/langgraph/stream/_mux.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"489d3dbfc9891817197d5ea4c64e44481ddff87c4a824cd9d89a23c0dd26eb33"}},{"ruleId":"D2","level":"warning","message":{"text":"SubgraphTransformer._complete_open_handles (cognitive 16): SubgraphTransformer._complete_open_handles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (5 pts), loops 2 (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. This shape REPEATS in the file: one other method here (SubgraphTransformer._acomplete_open_handles) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"78158e79829c1a5f1ed771b6c63a5e20578e4345fd7815339aa6b759408d69b4"}},{"ruleId":"D2","level":"warning","message":{"text":"SubgraphTransformer._acomplete_open_handles (cognitive 16): SubgraphTransformer._acomplete_open_handles has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 2 (5 pts), loops 2 (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. This shape REPEATS in the file: one other method here (SubgraphTransformer._complete_open_handles) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e5e3516b5b3c5474df371dc58a1901bf6ec0c71b624fd9be8f9509a6a1a7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncScopedStreamHandle._register_descendant (cognitive 16): SyncScopedStreamHandle._register_descendant has cognitive complexity 16 (threshold 15). Drivers by points: if/else 2 (6 pts), loops 3 (5 pts), error handling 1 (3 pts), 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"0abbe1b87d25ff7fa4a9a73ec80dae7b60118d840ebbc3cfb4a755d9f600cf4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/main.py: FileTooLong \u2014 3014 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2514 over it, 6.03\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df9a22731a02179513169a133b5e36b7361a100733d11ce10bd1ec838fd035e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langgraph_cli/deploy.py: FileTooLong \u2014 2355 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1855 over it, 4.71\u00D7 the bar. 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":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8ccfd0cb453553ba57a6cc89939ab60d1f5204ec6869d76f18224f0fe980f7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/_loop.py: FileTooLong \u2014 1556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1056 over it, 3.11\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc785cf831e6a900571689679f692bb7aa10bbb77df5b34fcec4d0ba70c4965"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _async/stream.py: FileTooLong \u2014 1389 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 889 over it, 2.78\u00D7 the bar. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb2a4cbece9af721c4a2c1f78cd5b04a145859dfe76a372e389f077a439064d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langgraph_cli/config.py: FileTooLong \u2014 1344 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 844 over it, 2.69\u00D7 the bar. 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb6844a308a43e6290a2d104dc4c224df2c286d7012c16cc1e66a47021b8ee9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _sync/stream.py: FileTooLong \u2014 1235 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 735 over it, 2.47\u00D7 the bar. 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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25aa01ef13769ec3e0ce6d2631a8a9adac9cf208a4753c5f95723e219ffdcfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: graph/state.py: FileTooLong \u2014 1138 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 638 over it, 2.28\u00D7 the bar. 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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b958a25d8e7c92302e415bf6bf21bf6f71e5f94155c4cdb28f06e5e7fc7b74e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/_algo.py: FileTooLong \u2014 1129 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 629 over it, 2.26\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a03e729061edc461b811fd55a3a646d6c487e9341e50c5fe517c8698919fb3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pregel: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d44f91c40894f1e259cf009a47edfbf579b5d78e780b3343d0c041ade6961"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/remote.py: FileTooLong \u2014 902 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 402 over it, 1.80\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3be9529e0d8e59344ec1c56f60b3b0be96865ae6e5c81e0d406a7fd6bd4d9c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prebuilt/tool_node.py: FileTooLong \u2014 876 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 376 over it, 1.75\u00D7 the bar. 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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c81613899caa6d30cf5dd566b2a53633aa25996758a98ff3515678f2ce629b3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langgraph_cli/uv_lock.py: FileTooLong \u2014 823 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 323 over it, 1.65\u00D7 the bar. 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":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0be190d31770618ace44d1fd4ec01ade70e6b611b1a3a22a630b3cbfba43f9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/_runner.py: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5248263842dcd09e2c876d9e8f3cab2508b4e82d5fabc10ccffa887acd6e9e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _internal/_runnable.py: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 225 over it, 1.45\u00D7 the bar. 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0953e3d3db6ec682481a836ec670ce2c94f46ac8c01f0df59eca9a9791e9f3b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sqlite/base.py: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36\u00D7 the bar. 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63085cb0cceac6b91a0a9b2fbc3c7ce226962763b4934646146c3670e2866633"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AsyncThreadStream: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaaf5978a796cee0e158b7d676c38eec2992f0295ae16a06fd760911e2ff865"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _async/runs.py: FileTooLong \u2014 662 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 162 over it, 1.32\u00D7 the bar. 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":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"217192c4d7d32298537d7b9b627cd21afb2f07811b14a5bbf14d04ca31994a67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _sync/runs.py: FileTooLong \u2014 660 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 160 over it, 1.32\u00D7 the bar. 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":"libs/sdk-py/langgraph_sdk/_sync/runs.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc17233d935b630e8b4312a3b09746b2d850f471ad1ce9cfb8d203959698868"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langgraph_cli/cli.py: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 152 over it, 1.30\u00D7 the bar. 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":"libs/cli/langgraph_cli/cli.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4625a2faab3f6f3eddc1d19109595f96108e9572b34e55637de4b54b95a4f17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: serde/jsonplus.py: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.30\u00D7 the bar. 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":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"deeeb517266ebf293ee5fdc4e80c0892aabfd2eb015fd6a3370a33cf52b24a83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: postgres/base.py: FileTooLong \u2014 643 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 143 over it, 1.29\u00D7 the bar. 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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1d17e566825d2c3a0b59ac779e59e8d8d38cadef6f704e2de85ac62544ea76"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RemoteGraph: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d79df932c9b54a52a98cb6550682b0eb05996a2293270b3744524c575be2750"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stream/transformers.py: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 100 over it, 1.20\u00D7 the bar. 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":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f032a1e82d75a6d65c04c49ab963108fba0bad36c05bb4e697aff9e2d7e91186"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pregel/_retry.py: FileTooLong \u2014 580 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 80 over it, 1.16\u00D7 the bar. 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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"436a40975c6a4999d677e7f97e41ee992921e277a49bfe194f8b436c7d601b74"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: prebuilt/chat_agent_executor.py: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. 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":"libs/prebuilt/langgraph/prebuilt/chat_agent_executor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0befa09c22cc88526c6bb6d1554d11c387767da995abe9f6795fa7cb75651bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SyncThreadStream: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1087}}}],"partialFingerprints":{"codehealthFindingId/v1":"e90b16689e046a62bf95994b209e9e946a2e0a46e88c43ca8b5995bc895f36c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: postgres/aio.py: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3 over it, 1.01\u00D7 the bar. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4adf68863612034d86738e9ee8470f5748f3580db6ddd135019b2c6f08eca89f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (418 shared lines): libs/langgraph/langgraph/pregel/main.py:1639-2135 | libs/langgraph/langgraph/pregel/main.py:2142-2634 \u2014 These two members are variants of one another: 418 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b71a2d3b30d42084a696f9d0fb9ac1e95e6c1b85a18f162acbd3f8b10242bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (218 shared lines): libs/langgraph/langgraph/pregel/main.py:2785-3138 | libs/langgraph/langgraph/pregel/main.py:3198-3615 \u2014 These two members are variants of one another: 218 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2785}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e6182199d46487b2855d83b71ab7e6d1c83d23324af321f1f7cf7c4652f9da2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (111 shared lines): libs/langgraph/langgraph/pregel/main.py:1237-1351 | libs/langgraph/langgraph/pregel/main.py:1362-1477 \u2014 These two members are variants of one another: 111 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7269ddbf8e836a04dd04c6b3708d61d365dcd6d984195195d960343167968fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (99 shared lines): libs/sdk-py/langgraph_sdk/_async/http.py:219-351 | libs/sdk-py/langgraph_sdk/_sync/http.py:220-349 \u2014 These two members are variants of one another: 99 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"813890fdc0742bd0773cf1b68ced3e9824f918c321b24741b525689196278ba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (68 shared lines): libs/langgraph/langgraph/pregel/_retry.py:598-703 | libs/langgraph/langgraph/pregel/_retry.py:712-852 \u2014 These two members are variants of one another: 68 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1aaebe1af20ec8f8c6edd4e347475a728c78f23251561c26a7d0f993fa256f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): libs/checkpoint-postgres/langgraph/store/postgres/base.py:319-424 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:347-436 \u2014 These two members are variants of one another: 56 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71aee2cab4d29c6b98649e50e81fe91fc688b6d280c5894ae3c6d29c9309d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (56 shared lines): libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:717-786 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:941-1010 \u2014 These two members are variants of one another: 56 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"530c689e47d174e36f6f35e2754ef87e20b67be2847f7aae50b6c2e2b00ba2c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (52 shared lines): libs/langgraph/langgraph/pregel/_runner.py:192-364 | libs/langgraph/langgraph/pregel/_runner.py:379-581 \u2014 These two members are variants of one another: 52 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc51c5b2370f5d58a44edbec6893163a2c4c9dc20a45a92703e3681fb2b98f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:488-526 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:944-983 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"551b37e54e5f0688a3831eed277a7fc779113a11d11b92b6d40366b021dfa59d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): libs/prebuilt/langgraph/prebuilt/tool_node.py:807-834 | libs/prebuilt/langgraph/prebuilt/tool_node.py:842-868 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4cb4de57619e14b9ef77bd4519e59b10065a32e3e107ac4d1ee8977aced5dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): libs/sdk-py/langgraph_sdk/_async/assistants.py:328-383 | libs/sdk-py/langgraph_sdk/_async/assistants.py:543-621 | libs/sdk-py/langgraph_sdk/_async/threads.py:314-377 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:332-387 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:545-620 | libs/sdk-py/langgraph_sdk/_sync/threads.py:309-368 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"271931a958ba92a67a50b8f236e77b78ec8d20f5a58c4b2bbe295ef0e25c8f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:827-835 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:643-661 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:724-742 | libs/checkpoint/langgraph/checkpoint/memory/__init__.py:623-631 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d5f6ed8fdf4aba8a53f7dfe83d0d792426af636fc8b64c2745b58c9db26e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): libs/cli/langgraph_cli/config.py:1017-1052 | libs/cli/langgraph_cli/config.py:1058-1095 | libs/cli/langgraph_cli/config.py:1101-1138 | libs/cli/langgraph_cli/config.py:1144-1183 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6af6abff91f2d62912a4bac0c75e6a7551f27bbd7ed26721927eed9468c1a8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (95 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:519-632 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:467-561 \u2014 These two members are one piece of code written twice and then edited apart: 95 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5c095389756dc081b1fd07850b0aff946f1ca7be82a8b9cbdd377ec8e3d381"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): libs/langgraph/langgraph/pregel/remote.py:774-878 | libs/langgraph/langgraph/pregel/remote.py:929-1033 \u2014 These two members are one piece of code written twice and then edited apart: 105 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ccecfff2eb1d6064124c0cdb13dad026af304fadc5f65a4044d6e935fa25de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (111 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1435-1545 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1305-1415 \u2014 These two members are one piece of code written twice and then edited apart: 111 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"250b1447663745a723af87cad3788e5c2b5cb37e7ba8465b801a936aa49b1617"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (85 corresponding lines): libs/langgraph/langgraph/pregel/_loop.py:1848-1932 | libs/langgraph/langgraph/pregel/_loop.py:2104-2190 \u2014 These two members are one piece of code written twice and then edited apart: 85 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c54a473b51bab234509b584766687fbb336618b094d3b7faebf3ab1cddd1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): libs/langgraph/langgraph/_internal/_runnable.py:409-482 | libs/langgraph/langgraph/_internal/_runnable.py:487-557 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"69967fb33e6560279f574b1cea0b2d5146ebdb2d874accb878ef3223b4197916"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (106 corresponding lines): libs/langgraph/langgraph/pregel/main.py:3964-4069 | libs/langgraph/langgraph/pregel/main.py:4141-4246 \u2014 These two members are one piece of code written twice and then edited apart: 106 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3964}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9edf1abf6240edec512fc84a752ac14a210afea0e3eb7f80cdeeef5d8faf592"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:520-599 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:648-721 \u2014 These two members are one piece of code written twice and then edited apart: 74 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"becea868bdf3a65c1f2b99c9a5aabeb6464f040ae0e81572c6da948e9dbc7cfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:228-293 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1122-1193 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae5c376da4554335ebdb75ad01769bb53c04408e99803e052bad00654d44ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:512-612 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1376-1466 \u2014 These two members are one piece of code written twice and then edited apart: 91 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4f77e566ff647ee0f5ab182bd67a667516d81bf63f09eb157cfc32b3f5263f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:758-807 | libs/sdk-py/langgraph_sdk/_sync/stream.py:830-881 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"652d2a86eb2e71801d76afb771e47988b19ac0525ec48c0835fba80dae5528ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:864-913 | libs/sdk-py/langgraph_sdk/_sync/stream.py:894-958 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47b003f668186b9818183bf9c402b74bdff77250ece2c757de537c913c19685"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): libs/prebuilt/langgraph/prebuilt/tool_node.py:936-1029 | libs/prebuilt/langgraph/prebuilt/tool_node.py:1096-1189 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"90aae7f2ba141128eee5303d334b958c318519a4764323fc1cf45de3d4618b75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:927-976 | libs/sdk-py/langgraph_sdk/_sync/stream.py:972-1024 \u2014 These two members are one piece of code written twice and then edited apart: 50 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"29000555c0c064d414d923702ad34572e9219e314405731bcfb187ef4bd2c12f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1980-2037 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1644-1692 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aea0ab127c231cdf887056e12c3f3d395f4c59ffb735eeb9fbaffc3b68cd352"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:156-207 | libs/sdk-py/langgraph_sdk/_sync/http.py:157-208 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb88b40e6d03977589c0e887229311b31abaef30484e23a255f6d8ce758db108"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): libs/langgraph/langgraph/pregel/_runner.py:730-801 | libs/langgraph/langgraph/pregel/_runner.py:879-956 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"2405ad60d8117f962278504db8ab2204fa55a893ccbda1f5b71607dcc6ff1a9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1060-1107 | libs/sdk-py/langgraph_sdk/_sync/stream.py:562-620 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b3e82956491a5f6f7e5853ecb31485923b72313c2bdee020b0b1c8fd0dd9b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:275-350 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:244-310 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0f59af669ddf43927b88b4fb21b6ba2440d136c460a7207e3c4bdbc7999f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/cli/langgraph_cli/config.py:917-1011 | libs/cli/langgraph_cli/config.py:1189-1236 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf8568f4566c145708c84a50bdc52754cb9f4f7c1afb0db8d576376970f43ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): libs/checkpoint/langgraph/checkpoint/base/__init__.py:610-678 | libs/checkpoint/langgraph/checkpoint/base/__init__.py:683-719 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8a1764db462a5c9fd7a940faa47adebe8db4de78fc10a5fa88b07e27799955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:125-195 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:132-184 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7827ddeb549cb1ba783aa84c3df45a50b2dae1e5ae9c9156df0ac9b9632c89d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:409-464 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1288-1335 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d14405ecee3fce2b5fbbaa1c38465d12337ea92837d6e50c52e0dca487ba870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:445-495 | libs/sdk-py/langgraph_sdk/_async/stream.py:700-745 | libs/sdk-py/langgraph_sdk/_sync/stream.py:769-817 | libs/sdk-py/langgraph_sdk/stream/decoders.py:163-196 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e1a4e0df8645101aa0520c8cc3e78bc49fdb1a25f24c0a35f56e5d12421270"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:211-309 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:375-453 \u2014 These two members are one piece of code written twice and then edited apart: 79 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af22aee3331eb6027f92421a37f4b7bdae0e73e72d20537284e7a5d8fa89aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:146-221 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1065-1131 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bdbcc9520ed031a023039bbd2db96f2297325119e1df8164b273c530410d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (142 corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:497-640 | libs/sdk-py/langgraph_sdk/_sync/threads.py:488-629 \u2014 These two members are one piece of code written twice and then edited apart: 142 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefe11fc582f7ca0a3349ec6e1ecaa7bcee836b4082009e95acb4355fd86e29d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): libs/langgraph/langgraph/pregel/_loop.py:1791-1823 | libs/langgraph/langgraph/pregel/_loop.py:2047-2079 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"637bd7f15bfd62beda07d0cb4f649ded306c56897ee7f1a065cdaf104500def4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:407-440 | libs/sdk-py/langgraph_sdk/_sync/stream.py:355-392 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d813179de1c34cd28c038459eba7277f2cf0082fab54c6bdb5d00b37e6a2dd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:198-266 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:187-235 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca6ff6d2302085b926ecf1db87351bdf5d6bc2c2593921a3cb2b699ee461b0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/langgraph/langgraph/pregel/_checkpoint.py:465-499 | libs/langgraph/langgraph/pregel/_checkpoint.py:509-534 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c293b5db4e84d83fc26e61707524921d79ec06f95c6ec12c2d519d122f9451e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:568-601 | libs/sdk-py/langgraph_sdk/_sync/stream.py:635-666 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":568}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f2f47cf81c481caeaed3d95c1cc70412fff1961980a2a03635bc4792d328e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1879-1936 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1537-1589 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f31df2d682cc29f9214125def5d933d68240feb9f24416b6a9356cc2f4318c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): libs/cli/langgraph_cli/cli.py:181-217 | libs/cli/langgraph_cli/deploy.py:2251-2287 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/cli.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0d7862cedb70e8ada93c7beb96b38cdedb76c22ce8102cff137b253dab318a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:514-535 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1082-1104 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d760529d20024ea5c15734254af1e82ce1cf781de05054f810ec299ea23100"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1622-1689 | libs/sdk-py/langgraph_sdk/stream/controller.py:230-274 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1622}}}],"partialFingerprints":{"codehealthFindingId/v1":"5694e9f99d935f5126ba1e123b39c764c635d83eb59afe80104509e16f0214a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (152 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:733-884 | libs/sdk-py/langgraph_sdk/_sync/runs.py:728-881 \u2014 These two members are one piece of code written twice and then edited apart: 152 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9293079a34f7e846e87ba20283fd456c687a74672358f40ebc51da2b923cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:319-398 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:463-529 \u2014 These two members are one piece of code written twice and then edited apart: 67 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"564d598b1f61b78a22a904dbade00e6a0ea1774f2cb93cf3cf2958c895202a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): libs/prebuilt/langgraph/prebuilt/tool_node.py:1037-1088 | libs/prebuilt/langgraph/prebuilt/tool_node.py:1197-1256 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"30115ac6c41de368ce5026fad2cabd3fc5ebe11f529be580cefc8e3034c30305"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): libs/langgraph/langgraph/_internal/_runnable.py:771-803 | libs/langgraph/langgraph/_internal/_runnable.py:811-849 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e65e9c77cbc787a548f0c6da7aae36acf1f42c1ebe87eea6b57b4de98e5e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:186-225 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:793-833 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8bde8283b44f4278dd7262f238aa6763e34353eddaa807160e12eff21d03c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1565-1598 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1435-1469 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf0bd391e26b1fd2db1f8c7b910b43f765c6abeae04ab8dab9cf0a3d5dd367"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:415-474 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:374-415 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"9628a03541c189fd1fd09d6a472280ea09b3b3f4d0327197340a0f02026d60c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:381-450 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:730-788 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b673d1ade9c7c4c95702416fb8a146c001c194c04aa83579f2226e0c6cd9bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 34\u002B corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:418-452 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:986-1019 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:362-401 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1241-1279 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 34 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"040d65235a54cb102b605ba36f0c1dbf977b57f2ad2dfb33086b867bb6ca83ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): libs/langgraph/langgraph/pregel/_loop.py:1713-1746 | libs/langgraph/langgraph/pregel/_loop.py:1969-2002 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1f7a283a2df1c64c9de9856552e3e643a0c4770cdbc95d7abc1492c263cdc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): libs/langgraph/langgraph/pregel/remote.py:1048-1080 | libs/langgraph/langgraph/pregel/remote.py:1095-1132 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ce856a0b48c87e4bd1579a227a1fbc917a186eae36f15c04271671108a89f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:229-278 | libs/sdk-py/langgraph_sdk/_sync/stream.py:254-296 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc1a4dc946acfc19ac19f6ad1b0fe784dc262f1eb5f089f75fe59ac247e17ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 37\u002B corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:478-514 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:421-462 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:827-868 | libs/checkpoint-postgres/langgraph/store/postgres/aio.py:554-599 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 37 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"45bc40ff090ded835918b67efe2228fa276a8da2ad9e816c54afdd133958935d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): libs/langgraph/langgraph/_internal/_config.py:251-284 | libs/langgraph/langgraph/_internal/_config.py:291-324 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_config.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6a641b2ed9e6a4c660f338eccd7dc32383aefa50c7eacdc4d5d91bcdec42f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:627-650 | libs/sdk-py/langgraph_sdk/_sync/stream.py:692-718 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"84059c4f1fe8349f39dd058d88768f4a34cd9d8691faa37d33e0a41310095006"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:843-879 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/utils.py:82-117 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"d20e5fa24b5dd0ff00ac780942f2e25471e120d5a3b4d0ab1d2ba153063f0aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/langgraph/langgraph/_internal/_runnable.py:659-672 | libs/langgraph/langgraph/_internal/_runnable.py:677-693 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"19389c9ba8e99a51577227afef4392545fcfed62b023c76e4fe4cdefa02c4eb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/langgraph/langgraph/pregel/main.py:1482-1502 | libs/langgraph/langgraph/pregel/main.py:1507-1527 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5893886856d2a8855773c79404cf7d06b5f1cc89ffcf100c9a0880eee008b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/langgraph/langgraph/pregel/main.py:4312-4342 | libs/langgraph/langgraph/pregel/main.py:4356-4376 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b022c3241622a45de831c03b363f5dedfc845fdda08debcc0472ae66b0898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1811-1834 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1487-1505 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5559218cfb6b6dce0765077dabe0b010f0a86688b22d7a22f955ec57f6d536"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:604-624 | libs/sdk-py/langgraph_sdk/_sync/stream.py:669-689 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb102f51e964ec063317bf0e68f29178917974856744df37f252b57783bbabe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/langgraph/langgraph/pregel/_messages.py:133-146 | libs/langgraph/langgraph/pregel/_messages.py:330-356 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d4b3e643558a2c299adaffe2d877b5a118b15e5b526bdc2696d66ba3de1185"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (163 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:466-628 | libs/sdk-py/langgraph_sdk/_sync/runs.py:461-623 \u2014 These two members are one piece of code written twice and then edited apart: 163 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"df88becfe8b99fb4e071352b023463c5170c34833492ce908351a0bc3f7b6f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:465-496 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:590-623 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a530c0bc8449f68054fa9680007af96732b8a1d495a93b494aaac635e65127e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1149-1166 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1068-1084 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b148730bd2bff0c5e72b34149b02e4f4d3e7085b050fff285c0710d5108c395a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:267-303 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:633-671 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"64d368bf6c13aa066cc1d75334cf69d8e6ba165b2d5ff5e0abbd16b0defab439"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:369-386 | libs/sdk-py/langgraph_sdk/_sync/stream.py:318-334 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f12c3014ef00b914a4e888ee3c958349e7ac86a1e6f51d1e5ba134059821e6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): libs/langgraph/langgraph/pregel/main.py:1537-1567 | libs/langgraph/langgraph/pregel/main.py:1577-1611 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b50463dd613995fbd960f66ccd7e8b92f825d2bc5a710b8b7c6e1c2b756a7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:407-456 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:538-581 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a8dcb7b0ef02e897f51266b7337a98c26ffbc8533a1d17f80092a7b763bc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libs/langgraph/langgraph/stream/run_stream.py:111-134 | libs/langgraph/langgraph/stream/run_stream.py:411-438 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cd5fb7c21d0e0649fe57a35cdb2963c6c319d97184e8095cff7f9e7ba5cd0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:225-265 | libs/sdk-py/langgraph_sdk/_sync/threads.py:221-261 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"20e7fcbcdd93bcd2afc2040ec1d62f85a153f66860602d23d8bdc3df74beb028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:306-372 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:674-721 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30381bdd558e6057fb88ab9f8786d3b1dff9485b8d866019c26351bfb63db10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libs/langgraph/langgraph/pregel/_loop.py:1766-1778 | libs/langgraph/langgraph/pregel/_loop.py:2022-2034 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"77af48ccf88ec14a2ded8eb6179196061e37028200caf6a828a205ebab437e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): libs/langgraph/langgraph/pregel/main.py:3629-3671 | libs/langgraph/langgraph/pregel/main.py:3685-3725 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14a9a66a9606698858125547be3ffda943cd98bc095dfa9a783617da2d890c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:382-401 | libs/sdk-py/langgraph_sdk/_sync/http.py:374-393 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2b6b87bbba82a15c2a9bdcfdeaaa5de34ff1e6762a2e0cfca5ef4347b2574a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:153-165 | libs/sdk-py/langgraph_sdk/_sync/stream.py:198-210 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b45a46479d0b8960acfb938480ea2c3b40ec304c84127af444325441bcfb152"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): libs/langgraph/langgraph/stream/transformers.py:849-864 | libs/langgraph/langgraph/stream/transformers.py:867-882 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b687c2f8c247fa9d1b23edb9c77bf6789b1984bcf1cbbed555460ea887e2f12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:46-60 | libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:53-67 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"323019cc41bacf3907b54ca6793ff00b6206374276b3d8f879d1098f2ef9ea18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:460-471 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1027-1038 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"a033e9e7882ce244e7217501ced060445d29cb19b6f8a4f6ad62c65a589c44c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): libs/langgraph/langgraph/pregel/remote.py:1177-1214 | libs/langgraph/langgraph/pregel/remote.py:1259-1296 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5c9e9e8b22a921efa90226aa1d399e39e4b891df8b09c9b68d25f11a4d15ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/sdk-py/langgraph_sdk/_async/assistants.py:285-312 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:291-316 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6960741f115f77fbd4464c59713e60a9b71c808c751e3337407a6ae1dd281399"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:985-1031 | libs/sdk-py/langgraph_sdk/_sync/runs.py:976-1022 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab91982cca75d7cd214ad1aa579bb21605ffbf8a9484072dd3df96e0881b2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): libs/langgraph/langgraph/_internal/_runnable.py:722-741 | libs/langgraph/langgraph/_internal/_runnable.py:747-766 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e039eebb568eed65e8ad2186c0c3839e1121e6268078826eab4614573d53372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): libs/langgraph/langgraph/channels/binop.py:79-93 | libs/langgraph/langgraph/channels/delta.py:76-93 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/binop.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd615bab78cf88164e1a5c9d95b2bf54f60660b823d74c511a9ad0d446d0b31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/checkpoint/langgraph/checkpoint/base/__init__.py:128-137 | libs/langgraph/langgraph/pregel/_checkpoint.py:538-546 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2882466c17cc43fd43905fd3665f97f9c053e6102e3aed9155dba6c7ac524cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:1043-1090 | libs/sdk-py/langgraph_sdk/_sync/runs.py:1034-1081 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f10bb792038ce836411d200fc4eab3ba9e82e8f71c916169452d4e16ae904f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): libs/langgraph/langgraph/pregel/main.py:4249-4265 | libs/langgraph/langgraph/pregel/main.py:4268-4284 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4249}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dbf36779244e458b6b773f55364fe46bdfa352e97ae3cd9b812e9a689f417b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): libs/sdk-py/langgraph_sdk/encryption/__init__.py:45-67 | libs/sdk-py/langgraph_sdk/priority/__init__.py:39-59 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/encryption/__init__.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"962231be59d6394a8bc136e9b8de8688fe3e3d4cae88cfd0d7af933a6b0a79a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/base.py:767-780 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:100-121 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:867-882 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca050668a47d745e4a33172a8313741d44708281466737587c22e668a7f30c29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/langgraph/langgraph/stream/transformers.py:895-908 | libs/langgraph/langgraph/stream/transformers.py:911-924 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1bb8fc5fc200717613edf9a87cfa20de3e96b97d1b187ce7467239f8fa568a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): libs/langgraph/langgraph/pregel/_executor.py:108-127 | libs/langgraph/langgraph/pregel/_executor.py:201-219 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_executor.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"f309600e8db3595267b37bb95173854df0d36f1841583cfcd2ac6bb112e1ec55"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): libs/sdk-py/langgraph_sdk/_async/cron.py:349-419 | libs/sdk-py/langgraph_sdk/_sync/cron.py:338-408 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/cron.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b526f37d10c91dc763840e31b7d1a2b69c81da4e24a223f3a475e8360e26a06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libs/checkpoint/langgraph/store/memory/__init__.py:209-219 | libs/checkpoint/langgraph/store/memory/__init__.py:224-234 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/memory/__init__.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4c84c85d195a28b2c7167691e2474abed6f045cb15212e683d627cafd7e515"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): libs/cli/langgraph_cli/host_backend.py:485-506 | libs/sdk-py/langgraph_sdk/_async/assistants.py:398-450 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:402-452 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/host_backend.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5417c853e15078d69682745f9ce02a613449c4f05d8f09584c13471bd4839ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/langgraph/langgraph/pregel/_remote_run_stream.py:222-233 | libs/langgraph/langgraph/pregel/_remote_run_stream.py:350-363 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_remote_run_stream.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dd37cb7c8fea64a3b7a2f06cf49dc8f7538cb82aee8504a4dd1f0ae4c90f08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): libs/langgraph/langgraph/pregel/_loop.py:1828-1843 | libs/langgraph/langgraph/pregel/_loop.py:2084-2099 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2f876a3281d3c940856a74d9105b0977b5c0081914315720d6b4b1f5ede6f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): libs/sdk-py/langgraph_sdk/_async/store.py:97-142 | libs/sdk-py/langgraph_sdk/_sync/store.py:97-142 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d11d865ef521d019112c70a955ffad360ff2f437faac2677217b121ba592e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/langgraph/langgraph/pregel/main.py:1093-1104 | libs/langgraph/langgraph/pregel/main.py:1122-1133 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6eeb57b98325752350d9945f9e772ff4f801116c5e2a4d57a6fe1d11dbd8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): libs/langgraph/langgraph/pregel/_algo.py:1401-1406 | libs/langgraph/langgraph/pregel/_algo.py:1410-1414 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ad6d3f27e595f2a280976ba1fc571ee8a0308947e663092063efec2b06f080"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:192-207 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:551-567 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0c9b2bd31099a4e0ba068326f0e1fc7fb51191ad1ee7b15fefbf51a5511fee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/langgraph/langgraph/graph/_branch.py:154-167 | libs/langgraph/langgraph/graph/_branch.py:177-190 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"a894cc5ff87a3a107a54409d86c26c09195a2fffcb07f24ae16b83e149821fcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:991-1000 | libs/sdk-py/langgraph_sdk/_sync/stream.py:491-499 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"9100e5c990db8f897ab3d9533e67b7c1b820d0c69696d70d722a43f9724e3263"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1257-1278 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1139-1164 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"167ae2c2a39de7b106f367d6f3ae1bde0b95ce18d5c349bd56f70f2cb1bb2f83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 45\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:653-706 | libs/sdk-py/langgraph_sdk/_async/threads.py:720-764 | libs/sdk-py/langgraph_sdk/_sync/threads.py:642-692 | libs/sdk-py/langgraph_sdk/_sync/threads.py:706-751 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 45 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"29bfacf3b47b2830137d6e520836a4abae15a9919fab5780dde3c8df125286a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): libs/sdk-py/langgraph_sdk/stream/transport/http.py:51-62 | libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:33-43 | libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:38-50 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:41-55 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6207a6a735ba3740293b04c65aa9ee3bfe2b42921469768041065c44e4dc02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:897-936 | libs/sdk-py/langgraph_sdk/_sync/runs.py:894-929 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"4173f2814f8720e625c5b0ffc7d71de566132abb2f706a37c90f56a1703e3f76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/langgraph/langgraph/stream/stream_channel.py:183-196 | libs/langgraph/langgraph/stream/stream_channel.py:226-239 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/stream_channel.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52e3113a7cd65665454b1144595284f043dd6a9f288ace731f62d9f58feb43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): libs/sdk-py/langgraph_sdk/_sync/cron.py:81-167 | libs/sdk-py/langgraph_sdk/_sync/cron.py:194-282 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/cron.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"319fab4cf9cf5f739c4bdb92e12262faedfaeb0bab3a4961fcd17ffc87a12cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): libs/langgraph/langgraph/stream/transformers.py:201-211 | libs/prebuilt/langgraph/prebuilt/_tool_call_transformer.py:70-75 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/transformers.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d93fd98357d8b93b70af72723eb9073e7a9e9196959092c70af699f74d2fc9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:775-810 | libs/sdk-py/langgraph_sdk/_sync/threads.py:762-786 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd06fafb08b02db398eeed2bca701e506b20676803dded9efe4079ca411c8b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 25\u002B corresponding lines): libs/langgraph/langgraph/pregel/remote.py:520-547 | libs/langgraph/langgraph/pregel/remote.py:559-588 | libs/langgraph/langgraph/pregel/remote.py:613-637 | libs/langgraph/langgraph/pregel/remote.py:648-672 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 25 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"c497eb8e0f3e7781c8e339ec3ca8eeaf835501a3099ef96c8f0b7cd617820b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): libs/langgraph/langgraph/pregel/remote.py:266-289 | libs/langgraph/langgraph/pregel/remote.py:299-322 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"84fec96aef4eb7618b5077472fe0fbff697765fd6db9b2e532910133f738a9b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): libs/langgraph/langgraph/pregel/remote.py:446-472 | libs/langgraph/langgraph/pregel/remote.py:482-508 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e1933dec1e579d13d0cf12c8b4749b02745db6ff25d297e3eff704da052173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1402-1410 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:194-206 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9679ac3cb9456a43dd1c31fab6c7fa7afa438d427c7cd578cb7feda65f0073"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/langgraph/langgraph/stream/run_stream.py:672-683 | libs/langgraph/langgraph/stream/run_stream.py:713-724 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6635a80460122819873e1274a26908baf3265e2e394be3c4d3e9f418548eeae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:637-645 | libs/sdk-py/langgraph_sdk/_sync/runs.py:632-640 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b35987c52cd8b87310cc20f3d21a788ff97c3b20e20f1cf8c3767abdd09ae7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/langgraph/langgraph/_internal/_future.py:47-58 | libs/langgraph/langgraph/_internal/_future.py:62-79 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_future.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d22a940be70d7a74a2b700e3a06323f70b557613eaaf34293e359dd68d71f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1780-1797 | libs/sdk-py/langgraph_sdk/stream/controller.py:358-365 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1780}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7c730fc5b56cf6e65e0124a179d7ab10731da0913a2673c9bbe4634072f2d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/sdk-py/langgraph_sdk/stream/transport/http.py:190-199 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:175-183 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9cabd32ae82f734691cc4adf074a53b82140822e781973a9fd94c09e32b5d5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:543-548 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:620-632 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1474-1477 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f51fa4f07c7903806d6bb04c44ebf72dd2d1eea74eb9f819236324f30978372"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 33\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/assistants.py:460-492 | libs/sdk-py/langgraph_sdk/_async/threads.py:57-100 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:462-494 | libs/sdk-py/langgraph_sdk/_sync/threads.py:56-98 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 33 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"850a4f7fae5c64a98f644c45325b8a2bf2f641d2aa1f7f9d94310d3b44714739"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:355-367 | libs/sdk-py/langgraph_sdk/_sync/http.py:353-363 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"addafc4cecf52559a284147deaf30c0298e4bdc26c64b6305b7d9c055df2fe56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): libs/sdk-py/langgraph_sdk/_async/assistants.py:666-700 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:665-699 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"527104a9838b79b612982011f02f7137de2007c22915afe4755e2544d71400f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:70-84 | libs/sdk-py/langgraph_sdk/_async/http.py:95-105 | libs/sdk-py/langgraph_sdk/_async/http.py:116-126 | libs/sdk-py/langgraph_sdk/_sync/http.py:71-84 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a144e40c6b4a2fae4a2a444cefb8d4bccbefb7ee689a5fe6810e3b570e159e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): libs/checkpoint/langgraph/checkpoint/base/__init__.py:844-855 | libs/langgraph/langgraph/pregel/_checkpoint.py:46-53 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"02155268c204a8ca85d1e240d0d837bf4e4453c90e9baccefb69d9f30e019df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): libs/sdk-py/langgraph_sdk/_async/store.py:46-85 | libs/sdk-py/langgraph_sdk/_sync/store.py:46-85 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd263ff9d10d27b248da70b9caae44a914c095c9599b33803ef4e0a263bdf59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): libs/langgraph/langgraph/channels/ephemeral_value.py:56-68 | libs/langgraph/langgraph/channels/untracked_value.py:57-65 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/ephemeral_value.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"14002f3fbc519ea11b98476ff0393fd9d52a02bd78e6ebb80eb609bb55825ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1124-1130 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1041-1049 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"078d0acbfb378b8a2daaffcd893d98417d8f4c48e344e977b725815a575f3c0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:774-790 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:155-166 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"55aa2031c947d84460ba6052ccd68c3abd1a200b12b378df7f7dd0d63f7db60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): libs/sdk-py/langgraph_sdk/_async/assistants.py:101-151 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:100-145 \u2014 These two members are one piece of code written twice and then edited apart: 46 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aff03b9cdd25d379f578d59eaf620664a9c794993604b250c4bffa7387f0c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:453-484 | libs/sdk-py/langgraph_sdk/_sync/threads.py:444-475 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"793aaba8870bfb59ed8d436ecc49259afcc8576050625c9e04319945942b96f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): libs/checkpoint-postgres/langgraph/checkpoint/postgres/_ainternal.py:17-23 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/_internal.py:15-21 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/_ainternal.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bb833741455adb645ef4a6f2f9873352b4f42e37d024101def0d4e4fe5f1fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:109-112 | libs/sdk-py/langgraph_sdk/_sync/stream.py:97-100 | libs/sdk-py/langgraph_sdk/stream/decoders.py:53-56 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cd2b80b9e76a8c5d15a094b14620b29b27e9da84b7f6f5dca2d9952ccd99a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:1100-1127 | libs/sdk-py/langgraph_sdk/_sync/runs.py:1091-1118 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"3123410c8e5c2da61e37b8a6e801f7d88c817831c62feef0758f466feee44daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1800-1806 | libs/sdk-py/langgraph_sdk/stream/controller.py:393-400 | libs/sdk-py/langgraph_sdk/stream/sync_controller.py:249-256 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"44df1ed9a146f0aafaced8a121ad5c047970ba035b445af1f28f3fa67218bf7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1873-1876 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1531-1534 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1873}}}],"partialFingerprints":{"codehealthFindingId/v1":"e59bbbdeb38e8ec241c31bde56c9b986d944f7cca44726879d5d1f3d4a17b599"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:137-143 | libs/sdk-py/langgraph_sdk/_sync/http.py:138-144 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"600f8aeea00bd4cbff046aa7327402a524737c835939956d5a919f6f465c69ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:946-973 | libs/sdk-py/langgraph_sdk/_sync/runs.py:939-964 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"02b418b42f9317c5e07375f006bc1809dc65207c0bebb8e258881d13fc6cdcb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1964-1977 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1628-1641 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1964}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6498931c9ddf288ad2dfee44e896ba81a94a1087da8da7cffe3d7f053dca35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): libs/sdk-py/langgraph_sdk/_async/http.py:54-59 | libs/sdk-py/langgraph_sdk/_sync/http.py:55-60 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aee37da8e935218ec568cc9259540eeaa4bfbac56f3e6cc94c73e209bede59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): libs/sdk-py/langgraph_sdk/_async/runs.py:1196-1222 | libs/sdk-py/langgraph_sdk/_sync/runs.py:1186-1212 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae1646230a7bea889f9131a704455ac892adad8e90665e98232ffe8cd3a71ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1939-1941 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1608-1610 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1333d4fba28651530efafbdcb7c8b959b8c1327f2c8bd00ae04cd4f69955792"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): libs/sdk-py/langgraph_sdk/_async/threads.py:418-443 | libs/sdk-py/langgraph_sdk/_sync/threads.py:409-434 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"34647d072c0728e01dc3abc0cd4c41c3ba65cf692d762d342a6a67336a836938"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): libs/cli/langgraph_cli/config.py:377-381 | libs/cli/langgraph_cli/deploy.py:514-517 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"deab6b26afbfafdc344672a4b231d49ace666d89a49fb2a9524aaa1cdecb5078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): libs/sdk-py/langgraph_sdk/_async/store.py:152-178 | libs/sdk-py/langgraph_sdk/_sync/store.py:152-178 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bd495e1a066adc083802c67962a4be5c6a790e232fdf44b48fbf7ccc004810"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (61 corresponding lines): libs/sdk-py/langgraph_sdk/_async/store.py:192-254 | libs/sdk-py/langgraph_sdk/_sync/store.py:192-252 \u2014 These two members are one piece of code written twice and then edited apart: 61 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"3311d8ce7c8303d93224ecb9bac602265b7876bbe6eaee8612f128ec59eafe69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): libs/sdk-py/langgraph_sdk/_async/store.py:266-313 | libs/sdk-py/langgraph_sdk/_sync/store.py:265-313 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8ad3f4e8939f8710e3ae98dcff8df38bd3600b47e82c8260221d2426a5e2b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): libs/sdk-py/langgraph_sdk/_async/stream.py:1944-1948 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1613-1617 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa9c45ce046785f7ffbe2419add7dd4c81597bd9dfcba785b2c7f00cfa67d00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (86\u201388 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/cron.py:87-172 | libs/sdk-py/langgraph_sdk/_async/cron.py:204-291 \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 \u0060libs/sdk-py/langgraph_sdk/_async/cron.py:87\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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/cron.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e7deb7c6eaaefadaed9ce70aa7dae971d31451154b6b770359d8cb50b3b01b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (133\u2013138 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/runs.py:236-373 | libs/sdk-py/langgraph_sdk/_sync/runs.py:236-368 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/runs.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/runs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 251 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b4065ec40d9e7097b5201498ff6ed0b49894a14c3892b70abe32dd22305a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74\u201376 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1709-1784 | libs/langgraph/langgraph/pregel/main.py:2212-2285 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1709}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d44e67e321232cfa2db5200b8f0491bffd97aea9b2b5218d33261e9a2cf2eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1965-2039 | libs/langgraph/langgraph/pregel/main.py:2465-2539 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"881fda8a091588aa800ff931bbfda02e9bf067e630e086a3f0165133d286ea58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2785-2858 | libs/langgraph/langgraph/pregel/main.py:3198-3271 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2785}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b50c6cbfb230b854b6525107d0e019cc5822476c48ba62bda5a1f526590510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72\u201373 lines \u00D7 2): libs/langgraph/langgraph/pregel/remote.py:806-878 | libs/langgraph/langgraph/pregel/remote.py:962-1033 \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 \u0060libs/langgraph/langgraph/pregel/remote.py:962\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. 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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de723607b197c5a69271b4cad25bc8f0a3639234a760c5c1c872389ddb99bc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (69\u201371 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/cron.py:436-506 | libs/sdk-py/langgraph_sdk/_sync/cron.py:425-493 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/cron.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/cron.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/cron.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"0358fec4280152961ce03c18437680b8f4ed3ba186e97eece1f2f5a084dc1bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201365 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1898-1962 | libs/langgraph/langgraph/pregel/main.py:2399-2462 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b7169de306c349a8a2d97538e29c1935c4c26b172eac4701dbdda785a03a0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): libs/prebuilt/langgraph/prebuilt/tool_node.py:967-1029 | libs/prebuilt/langgraph/prebuilt/tool_node.py:1127-1189 \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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c08a1b875c40fd81e6c1b2739a1406c462b259073b1103300881a2ef317a1a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/threads.py:114-173 | libs/sdk-py/langgraph_sdk/_sync/threads.py:112-171 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/threads.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 228 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py:112\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. 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060http\u0060 to \u0060HttpClient\u0060 in one and \u0060SyncHttpClient\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc46b95e3cee86af95e40e5437e7f50c6df6060a8ea2cf60681f477effb33b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201358 lines \u00D7 4): libs/sdk-py/langgraph_sdk/_async/assistants.py:328-380 | libs/sdk-py/langgraph_sdk/_async/threads.py:314-371 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:332-384 | libs/sdk-py/langgraph_sdk/_sync/threads.py:309-365 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. 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":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c0607d40131a4054c414535faad07b92a21b31d767d8847585150122eb7f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:854-907 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1152-1205 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6943fc72c390db3b0009665a189d369df1db5ceb81e958f23d8050bdcf0aec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:287-338 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:887-938 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5c6f5637f5c8521ed93d114ded27f070a165ae0848fa0662c3a8c2d625035c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201350 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:275-324 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:244-283 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:275\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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8768ed48a23d8354005d104a27a28a4c799353f6d7312dbabb979db0218ccc00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (50 lines \u00D7 2): libs/checkpoint/langgraph/store/base/__init__.py:975-1024 | libs/checkpoint/langgraph/store/base/__init__.py:1262-1311 \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":"libs/checkpoint/langgraph/store/base/__init__.py"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beee51fb326a00b358bcef5c0cba83bfd017a06f7085e58a756b1e1974d068b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1812-1860 | libs/langgraph/langgraph/pregel/main.py:2313-2361 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc6328885505dba2858075cc5200c890b96e72e5b5df24c6385f0a05f294ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201348 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/http.py:221-268 | libs/sdk-py/langgraph_sdk/_sync/http.py:225-271 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/http.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9577eb983e3ac8ab983dabcc9d0a867a1b3be9924ccb3d8dad1b628f7d2232a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/assistants.py:398-444 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:402-446 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/assistants.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/assistants.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47a460f53d07a1ad8a6b764a4093710e4ae2abfde56617a30ed1502e1889ca1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201345 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:575-619 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:508-548 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"443dafbcac49fb7e1ab8d6d29771ba21e0f8e0c68022da2d4c9c87a342bd9ff3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:4026-4069 | libs/langgraph/langgraph/pregel/main.py:4203-4246 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4026}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f08b773c237aa9c1b1ea6d03c7da5653a442ca4d4fa032becc9be4719263667"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201343 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:198-240 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:187-208 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff9d5cc1dc919dc4b3c5dc5eaf5333103bc8729207fb0e7fe4d7e2ec750c75f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2073-2115 | libs/langgraph/langgraph/pregel/main.py:2573-2615 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2073}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccc43d2af70a59fcfc408a7cb19935f68d005d39e550b272fdf63a5adf38748"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:314-355 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:267-308 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"822984a62355b9a62246bf9cc2faca9037e359d7cb895906b2f30bb0cf767b07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/runs.py:1043-1084 | libs/sdk-py/langgraph_sdk/_sync/runs.py:1034-1075 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/runs.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/runs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 251 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b24fe59b0bcbc1303b7cf5976e6662ea8cde6d47eb3eb6ede545134bbd8d270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:572-612 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1426-1466 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"929fd992980a17ec0320fbe1908d7942add2e8293b580b4699ea457a2a81c92c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201340 lines \u00D7 2): libs/langgraph/langgraph/_internal/_runnable.py:414-453 | libs/langgraph/langgraph/_internal/_runnable.py:489-526 \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 \u0060libs/langgraph/langgraph/_internal/_runnable.py:414\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. 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":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"302ca762298abe0f0ce366946e2fca8c531412938a6e983f62d2b171702688a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1313-1351 | libs/langgraph/langgraph/pregel/main.py:1438-1477 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"123679776e5199d89c9bcebf250861bb433a44918ad269efa5b42642e5f2e545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201338 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/http.py:300-337 | libs/sdk-py/langgraph_sdk/_sync/http.py:302-337 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/http.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"257c56f52410b444c2ed2ef75fc001de00e21b491d31e910c149190cd133d9e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201336 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:389-424 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:409-436 \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 \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py:389\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a8e977a8f77bdcba71b282def613f76ad43d1459bef40d77be103c9e21b4c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): libs/langgraph/langgraph/pregel/_loop.py:1877-1912 | libs/langgraph/langgraph/pregel/_loop.py:2133-2168 \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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ac39854d38eabc1ebee76b9f4d24fc3d0d374c225eaaedf94ca266f784cba8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 4): libs/cli/langgraph_cli/config.py:1020-1052 | libs/cli/langgraph_cli/config.py:1061-1095 | libs/cli/langgraph_cli/config.py:1104-1138 | libs/cli/langgraph_cli/config.py:1149-1183 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one 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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1c78b9ff20144882b6a0f6881d4b26cdab728ab37eb55dbece2ae699517652"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:617-651 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:197-231 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"7994dfe2803f3233ef8b658041bd72bc9de36a919d681949065819c8be497443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/threads.py:225-259 | libs/sdk-py/langgraph_sdk/_sync/threads.py:221-255 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/threads.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 228 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"47ed65d868e22479e0698078eb26e6de89ec334932ad69730840720a87eaad22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2885-2918 | libs/langgraph/langgraph/pregel/main.py:3303-3336 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2885}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a6b6be167364a8318ea0a1915d9da606695e79b2f19fc2880b96869fec7bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:358-390 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:311-343 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"511d3dbbea26b9e254c94434f4d48ddf2fb452da125ca0f0fbbbfcc31b2f8a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): libs/langgraph/langgraph/pregel/_retry.py:662-693 | libs/langgraph/langgraph/pregel/_retry.py:810-842 \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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc5db90f674abd1db31c6cf9dd704968cc4c9b5062382c4e7d5646af93cd4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2967-2999 | libs/langgraph/langgraph/pregel/main.py:3406-3438 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2967}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6e87ab9d5d625d37e99d15fdca982b34d3d057c2dfaab42c637d1aff4f0a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:496-526 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:952-983 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a357b292d42689e63971c9ad44bf2e60c02b5c279fc483c7a4765de34ac39971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): libs/langgraph/langgraph/pregel/_retry.py:604-632 | libs/langgraph/langgraph/pregel/_retry.py:716-745 \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 \u0060libs/langgraph/langgraph/pregel/_retry.py:716\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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a764174b5b14c5ea516e850d53ea2dfdc1d4e48bbddd6cdfe7c57fba40675d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): libs/prebuilt/langgraph/prebuilt/tool_node.py:936-965 | libs/prebuilt/langgraph/prebuilt/tool_node.py:1096-1125 \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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b1a01e1f8709524c490ca3e6a6b948c61c01a2d2483899d25b2d99f2fbe05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): libs/cli/langgraph_cli/config.py:978-1006 | libs/cli/langgraph_cli/config.py:1208-1234 \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":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b99cfdefef4cb3e334a37decb91773712c7cc9d484746f74cd78c8158b853a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:262-289 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1164-1191 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py:1162\u0060 calls \u0060condition\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:261\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"334d1a6787a88c8308df539b2d3b70cff7ad16b37f3420b44042562cf5539158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1639-1666 | libs/langgraph/langgraph/pregel/main.py:2142-2169 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1639}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb4f61b183f5987e022020d2db814a81161f740b4e5f5d3bc61873b0c23ea68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1867-1894 | libs/langgraph/langgraph/pregel/main.py:2368-2395 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb729d2da20f7a90013498d8abdadb3167986cf2cd7697d2a17deea186a1f4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:874-901 | libs/sdk-py/langgraph_sdk/_sync/stream.py:919-946 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"520affc10166df3fd944d7f3df759a46c0266f15f35593a46a6e5f60970cda15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:96-122 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:597-623 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"077fab41646db01021df9125e577844997fefeb74989f6d65a2f2b09a323fc64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:993-1019 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1253-1279 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d1aca582d46f23674fe6982ce20363357d49ce36860a5beae6b53f0230788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:558-584 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:680-705 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"517bd52c65f02f2d306c2af2dc952eff66e6dbe152d2fe00fbfc9cb2f1b04093"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1285-1311 | libs/langgraph/langgraph/pregel/main.py:1410-1436 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d7f2b7bb9b4fd926b9e8b679b3fa1be924f63db5c0119dd6080bbc9d008dce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1681-1707 | libs/langgraph/langgraph/pregel/main.py:2184-2210 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"959670811673255c039d15438b0b575c8af0d71bad097a1ac14e5410d948d896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1776-1801 | libs/langgraph/langgraph/pregel/main.py:1852-1878 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1776}}}],"partialFingerprints":{"codehealthFindingId/v1":"846bcd83e3d5038d9935969526246d05bd7fce49912c5603a59f58cc5fd3b914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2277-2302 | libs/langgraph/langgraph/pregel/main.py:2353-2379 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2277}}}],"partialFingerprints":{"codehealthFindingId/v1":"81dfaaaf7f00a56f9dfc089e59774ba7ab45661d02f40cdc3a6bd80c8bdd1ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:359-384 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:459-484 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3780ba06f9855df9a39c46d9ebc3bd147ccc8f56a50c17085131d50f006302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:910-935 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1208-1233 \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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e99878c7a585cb6180c58a73467e7729cba6e0d03d1d289ffb7b2b62f4d292a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:91-115 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:233-257 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd0223b6b8f4b9930adc50c3e8ad488ef69e7b83627e03729267c2193d0d038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:319-343 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:797-821 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"08d823e98102f13decf6df4251f93de2bff22aa7066000804ea86b925f85cce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): libs/langgraph/langgraph/pregel/_runner.py:241-265 | libs/langgraph/langgraph/pregel/_runner.py:435-459 \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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060None\u0060 to \u0060GraphBubbleUp) and self._should_route_to_error_handler(t) and self.schedule_error_handler is not\u0060 in one and \u0060GraphBubbleUp) and self._should_route_to_error_handler(t) and self.aschedule_error_handler is not\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"b210bbcc94234efc9d170f214701db945078e0b540f81b8e7280a95c9b348d67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1237-1261 | libs/langgraph/langgraph/pregel/main.py:1362-1386 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c413cf3bba71f86726f39e7274aee70452fc4a82c9c5330249b0b923f82abc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/assistants.py:586-610 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:586-609 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/assistants.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/assistants.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 146 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/assistants.py:586\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":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eeeba280dedbd38620fda0270b3ad908db14f44c2e980259ac0c08c972221e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1522-1545 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1391-1415 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9ddf1686c97e3d7a0d38cd6422a0be98f7961acae2a2af37932e2bfa1e42db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2862-2883 | libs/langgraph/langgraph/pregel/main.py:3278-3301 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2862}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e81e066010e46d36e0bf7afbe6d02720968dbe53830b91abc06e18abb6b6f03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): libs/sdk-py/langgraph_sdk/_async/assistants.py:632-654 | libs/sdk-py/langgraph_sdk/_async/cron.py:520-542 | libs/sdk-py/langgraph_sdk/_async/threads.py:388-409 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7477f59f03adf1849b4ef8b76de621290c9f960f9a295a58b0a553185d955c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): libs/langgraph/langgraph/pregel/_loop.py:1798-1820 | libs/langgraph/langgraph/pregel/_loop.py:2054-2076 \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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1798}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade5f4dafc6f9b459358b66a9cce19d5f166fd468adebd2073ab12a9687f7753"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): libs/langgraph/langgraph/pregel/_runner.py:738-760 | libs/langgraph/langgraph/pregel/_runner.py:885-907 \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 \u0060libs/langgraph/langgraph/pregel/_runner.py:738\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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e220be376c89f38cebea409dfebd7d24ba0931e5b09b434883f1f7c1750d00c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:3015-3037 | libs/langgraph/langgraph/pregel/main.py:3465-3487 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060loop\u0060 to \u0060SyncPregelLoop\u0060 in one and \u0060AsyncPregelLoop\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3015}}}],"partialFingerprints":{"codehealthFindingId/v1":"14af7b06347be0a979fc24b1d89adfa7ecd912a50a63b4a2fc668f1efbf86ca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): libs/sdk-py/langgraph_sdk/_sync/assistants.py:631-653 | libs/sdk-py/langgraph_sdk/_sync/cron.py:507-529 | libs/sdk-py/langgraph_sdk/_sync/threads.py:379-400 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"libs/sdk-py/langgraph_sdk/_sync/assistants.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff34a1076b2fde9cbc0db03b653bf8057466f37c523c2c820291cc97e064085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:429-450 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:377-398 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:429\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. 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":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3479e1ebe9a2435581838ac34c05e3188b08a610687dda94a55298361cb5ec4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1463-1484 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1494-1515 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060index_config\u0060 to \u0060PostgresIndexConfig\u0060 in one and \u0060SqliteIndexConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1463}}}],"partialFingerprints":{"codehealthFindingId/v1":"102436eeab9251587dde79ed5f7c0e1a21207dcd1d15d1e8b094c73b4c8bd766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/langgraph/langgraph/graph/state.py:1651-1672 | libs/langgraph/langgraph/graph/state.py:1679-1700 \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":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"551a08b598090bc84afaeedc37d68c1a17ed7b34afe507f18d71a0ef6fd5a155"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201322 lines \u00D7 2): libs/langgraph/langgraph/pregel/_checkpoint.py:465-486 | libs/langgraph/langgraph/pregel/_checkpoint.py:509-521 \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":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7027ab317808786a342df9ef7280b2935a2c656efafa19506e0a14e525fa24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/langgraph/langgraph/pregel/_loop.py:1713-1734 | libs/langgraph/langgraph/pregel/_loop.py:1969-1990 \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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1713}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b449ffd5ce541186ba3b0a72d59f6e45cc10b32126597ec80a15e275a33a6a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/langgraph/langgraph/pregel/remote.py:1193-1214 | libs/langgraph/langgraph/pregel/remote.py:1275-1296 \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 \u0060libs/langgraph/langgraph/pregel/remote.py:1193\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. 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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":1193}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31e1ea07cbc71a57626058c187520ed7a43325d7d63e05f1cecd93361ef26c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/http.py:159-180 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:141-162 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"0586570f6b7b89941f4d4b27b5e4a3e4440ce85af12167c12895e44393473613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:444-464 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1315-1335 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"db138d6de2e3c19502a9c4989717a711fccd9fca7ddc596bd9b52af756520d93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:526-546 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1384-1403 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:526\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":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ce1a61470d0735e0ba6580c7bbf856a6a4634fe023d283294dc977bd8f641e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1995-2015 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1658-1676 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3796eadfd9379a86b82d8b917fdf5e63ff01247c3f70d5ba627d562654eafa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 4): libs/langgraph/langgraph/pregel/main.py:1764-1783 | libs/langgraph/langgraph/pregel/main.py:2089-2107 | libs/langgraph/langgraph/pregel/main.py:2265-2284 | libs/langgraph/langgraph/pregel/main.py:2589-2607 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1764}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ae8d308d860d6c16d47a1a644ab33bba56608342fdea4823fbd477678ec3c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:551-570 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1408-1425 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5cce59a95361c75bab7087564db4fdea20e90179df8a02f7afe715cd089bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/langgraph/langgraph/pregel/_algo.py:447-466 | libs/langgraph/langgraph/pregel/_algo.py:493-512 \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 \u0060libs/langgraph/langgraph/pregel/_algo.py:447\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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"79806de0b75cab4b131ee17bd651fe40f7b1a1dfe873dc88d10ac7136225ac9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1263-1282 | libs/langgraph/langgraph/pregel/main.py:1388-1407 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1263}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfca40bc004bac0c8d8026c0106bea2fbc53e5ffbf60449d986a71f3bf41c955"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1791-1810 | libs/langgraph/langgraph/pregel/main.py:2292-2311 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7a4cf3520f31a8c6e20d39092964c6bcff5289ae24bfba34b07b170d2b1044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:4004-4023 | libs/langgraph/langgraph/pregel/main.py:4181-4200 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4004}}}],"partialFingerprints":{"codehealthFindingId/v1":"c538fad2ca853f58728fde7bc68ddbb7591796ab474f74a286546310baa18396"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:251-270 | libs/sdk-py/langgraph_sdk/_sync/stream.py:270-289 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:251\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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf89372f79613567117449a1063e89bedcca546898e91bf92dd1b4715e7a2a05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:319-337 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:347-365 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e809d66a8613c49fcf2130ea038b636bfb8984b15defbfd6c5903b0377ec76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/checkpoint/langgraph/checkpoint/base/__init__.py:660-678 | libs/checkpoint/langgraph/checkpoint/base/__init__.py:701-719 \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":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8c9a43195096a14e6c0beb92b65019bd71151654c76a3325ca751099377e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/prebuilt/langgraph/prebuilt/tool_node.py:807-825 | libs/prebuilt/langgraph/prebuilt/tool_node.py:842-860 \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":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb2d886522d97c0cf93ec96c5f62147e81bd9b9c034aaf42c49b3cf795021af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:119-137 | libs/sdk-py/langgraph_sdk/stream/sync_controller.py:33-51 \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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"282a5b207a93afc292992f1211d609b7c903c4ebc5a17c0d3bed2f685fc38660"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:789-807 | libs/sdk-py/langgraph_sdk/_sync/stream.py:863-881 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:789\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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"5396ce744476b697dbe054659c351eb92df0e63a08b646d8ccdf248a6c83aea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): libs/langgraph/langgraph/pregel/_loop.py:902-919 | libs/langgraph/langgraph/pregel/_loop.py:1798-1815 | libs/langgraph/langgraph/pregel/_loop.py:2054-2071 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"9201312d0fe885980ab47770b2a92e46d1d05d990056d212aa8113be22c3923d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1371-1388 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:237-254 \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":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e856e32d0d91b12e4baf33206c42a19b974187d5961b60972279aa749083c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:643-660 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:724-741 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ba81f9928030aad7ae0edf7d8e2bac34427a65f269fe614331f96ec7399650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:436-453 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:512-529 \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 \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:436\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":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4102312e5bb871a61b4614b50225b6b1387deee1da7f2408bed7fb980048c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): libs/cli/langgraph_cli/cli.py:205-217 | libs/cli/langgraph_cli/deploy.py:2270-2287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/cli/langgraph_cli/deploy.py:2270\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":"libs/cli/langgraph_cli/cli.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c1f4d6aaaa80cc67cdf06dcd6d58f19c6e6e8606cef27fe02cff2792596258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): libs/langgraph/langgraph/pregel/_algo.py:1030-1046 | libs/langgraph/langgraph/pregel/_algo.py:1178-1195 \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 \u0060libs/langgraph/langgraph/pregel/_algo.py:1030\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. 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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"43f4dd93b7b9eea6658bf8469f3cc9cb4b2a6d47149f7eb2d74219db7dca0e6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/langgraph/langgraph/pregel/_loop.py:1915-1932 | libs/langgraph/langgraph/pregel/_loop.py:2173-2190 \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 \u0060libs/langgraph/langgraph/pregel/_loop.py:1915\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0f75e4b00d7801ce71c628d20b3720c126b1a01064eda325759f9d1746ffb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:2928-2945 | libs/langgraph/langgraph/pregel/main.py:3352-3369 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":2928}}}],"partialFingerprints":{"codehealthFindingId/v1":"0549b3c48755db1dc9d0f7b54b6e4aa89b851b3fc0318ea454d6e6f591473027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:728-745 | libs/sdk-py/langgraph_sdk/_sync/stream.py:798-815 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:728\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. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6ad4ba0483c6e6c9fc61bab1bca42811f7bbaded0d270edd9dc91681838a0b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:77-93 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:578-594 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc5c9aca4e7b2056a15a4fd32c2a24872b2ee62890b23680c3f3869e1e5b195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/prebuilt/langgraph/prebuilt/tool_node.py:1072-1088 | libs/prebuilt/langgraph/prebuilt/tool_node.py:1240-1256 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/prebuilt/langgraph/prebuilt/tool_node.py:1237\u0060 calls \u0060_awrap_tool_call\u0060, \u0060cast\u0060 and \u0060libs/prebuilt/langgraph/prebuilt/tool_node.py:1071\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/tool_node.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3cf6356d914e2247894033634bb98153287b9ee3df3bc9c1d0cc4291c2aab1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/http.py:281-297 | libs/sdk-py/langgraph_sdk/_sync/http.py:284-299 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/http.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbdb82d368106151058a675a85e0c61b7b733c76796270134c99152305ba4756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/runs.py:868-884 | libs/sdk-py/langgraph_sdk/_sync/runs.py:865-881 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/runs.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/runs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 251 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/runs.py:868\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f58f2e78bc8e09940018716f2b3a4eff5b48c1b38813abf8a3c37578b58e4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:604-620 | libs/sdk-py/langgraph_sdk/_sync/stream.py:669-685 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c47cee344524a1db117bdf25c9c7fbeb70e4610c0972cfee39aefdd17cfabdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 6): libs/sdk-py/langgraph_sdk/_async/assistants.py:364-378 | libs/sdk-py/langgraph_sdk/_async/assistants.py:587-602 | libs/sdk-py/langgraph_sdk/_async/threads.py:352-367 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:368-382 | libs/sdk-py/langgraph_sdk/_sync/assistants.py:586-601 | libs/sdk-py/langgraph_sdk/_sync/threads.py:346-361 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/assistants.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95f169fd0829fdb0a0e26bfb8c87cd154e5c607dd19f196155ef4ee13cd9ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): libs/langgraph/langgraph/pregel/main.py:1774-1789 | libs/langgraph/langgraph/pregel/main.py:1850-1865 | libs/langgraph/langgraph/pregel/main.py:2275-2290 | libs/langgraph/langgraph/pregel/main.py:2351-2366 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4f64c6585b15cebae418ef9eda35a7f22d636205c4c3ffeb32afa81c1821fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:490-505 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1058-1073 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:490\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":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610f0224bb074ffed93c3a4b325106ee67f08f5124da14543424d2157a8c8dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:478-491 | libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:477-492 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"2deffc26c246f7e8304e16ba70dfff6ffc1e863bfc5c86910a2061066029b076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:481-496 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:608-622 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:608\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":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63c9cd8983fff484e291246163321a240031275c0d98ffcc5874ba8a6756f13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libs/langgraph/langgraph/func/__init__.py:449-464 | libs/langgraph/langgraph/graph/state.py:225-240 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/func/__init__.py"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c1d8b6cdcc3100c65d3616db447f09781fce1e2334bb1e9495f17c35a57188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:936-949 | libs/langgraph/langgraph/pregel/main.py:976-991 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65afac6b2d33171e9c9c59ad8edea0ebe1f0fbd143e7e893ecfa2a1f8896d0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:2022-2037 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1677-1692 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e25370d9b6e2a59e2dbe696e2e487967570dd93990e9481575472ad2dbec5f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_sync/stream.py:415-430 | libs/sdk-py/langgraph_sdk/_sync/stream.py:786-801 \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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc08dc28f21960b84fcb02bdd6ccd6da3d3ee75892ceb636629e3c7dbd5403a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): libs/langgraph/langgraph/pregel/_algo.py:558-572 | libs/langgraph/langgraph/pregel/_algo.py:581-595 | libs/langgraph/langgraph/pregel/_loop.py:1720-1734 | libs/langgraph/langgraph/pregel/_loop.py:1976-1990 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/langgraph/langgraph/pregel/_algo.py:558\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":"libs/langgraph/langgraph/pregel/_algo.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b847cbe9d0be5c10063fa53bf2e0efb8e8425dcafe7729ee73bfdf3ff54938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:434-448 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:835-849 | libs/checkpoint-postgres/langgraph/store/postgres/aio.py:567-581 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:434\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:561\u0060 calls \u0060isinstance\u0060, \u0060Lock\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:832\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c46a4ae50f61b43cfc31a9f41430effea534f58ea70851dbbb97d40e00eb999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:486-500 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:496-510 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:486\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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdda73968f6326de3c87be2da8400f34c5568baedec32d9d36dc5bf4ce0c859"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1045-1059 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1342-1356 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1045}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a543fd39179903c933081f94e9ab50eef4bc8527b38d3a995b6a88fb126ef6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:4249-4263 | libs/langgraph/langgraph/pregel/main.py:4268-4282 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4249}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3f8834c171e9caea97809ef32f2c93553dce934ed2f2c7f18b8a873c6de3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/http.py:193-207 | libs/sdk-py/langgraph_sdk/_sync/http.py:194-208 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/http.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/http.py:193\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":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5780b02eb4bd12dae7751880122538e151a93c3bb238a3d9f528f9c930d193"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1578-1592 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1449-1463 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:1578\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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec08e2ba0913a8930b50210b88733c03c69c0ec9d7e770de0225712001c7708b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:204-217 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:812-825 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:204\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":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e6d3bc170818e4fe9aa0d40013e5594c4ac8811a62bcf253f23ced215016047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:281-294 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:426-438 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:281\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":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b3a08c06a9dda147ac4600cb2e3dd062d34b7d9999d09c6b43cf556426cd09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:729-742 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:953-966 \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 \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:729\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. 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"468377233082ad2da6d40d8c5ce85f0ae1c52e52c71c545474b52e24b2550437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/langgraph/langgraph/_internal/_runnable.py:862-875 | libs/langgraph/langgraph/_internal/_runnable.py:919-932 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libs/langgraph/langgraph/_internal/_runnable.py:933\u0060 calls \u0060AsyncExitStack\u0060 and \u0060libs/langgraph/langgraph/_internal/_runnable.py:880\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_runnable.py"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fa800782bebdfdb0867bf25fa84909da60acd29e93cd5e9f24e54d9e1758cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/langgraph/langgraph/pregel/_runner.py:297-310 | libs/langgraph/langgraph/pregel/_runner.py:499-512 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060None\u0060 to \u0060GraphBubbleUp) and self._should_route_to_error_handler(t) and self.schedule_error_handler is not\u0060 in one and \u0060GraphBubbleUp) and self._should_route_to_error_handler(t) and self.aschedule_error_handler is not\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b474a9bcde2904ebb37bb69025fc2a54dfe2ead5aa59042acc5296ed356d9d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:3119-3132 | libs/langgraph/langgraph/pregel/main.py:3596-3609 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3119}}}],"partialFingerprints":{"codehealthFindingId/v1":"695337d9ae86948b402532592427fd0cde8d0b8b93507f4b2ac6c571f52ac6ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1980-1993 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1644-1657 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f44e01814b9f89d40aca648e1dceb7207a8394ac438081483a1f28b4899413"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:722-734 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:774-784 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:946-958 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:998-1008 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fcc0d2609fa965e1916a4eec4c32fc757a55112f97afa9f66e0231c2858c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:855-867 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/utils.py:95-107 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25d2b986969043c0e98ed6ed559d411f1afeff287b51b775e0fc20b3095ee89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:491-503 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:1355-1367 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 116 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py:491\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":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2aac9d76421be770f5a80a53ca153beb74693b1a45d795d0d6d320046d96ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/langgraph/langgraph/pregel/_runner.py:352-364 | libs/langgraph/langgraph/pregel/_runner.py:569-581 \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 \u0060libs/langgraph/langgraph/pregel/_runner.py:352\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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b337b9fcbc81f6053b26341bb90c28de3ba113b2084a1e8c0b41f4913979365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/langgraph/langgraph/pregel/_write.py:76-88 | libs/langgraph/langgraph/pregel/_write.py:91-103 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_write.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e01fbeb99508d789809b6a6d1cd1a4f7ada54f43b4172ab70f8012103302d044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1822-1834 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1494-1505 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:1822\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. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bd9c789b91cc14273fa3aa3ac1f62964d367b3fbdfd45fb1160723aa35e6498"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): libs/checkpoint/langgraph/store/base/__init__.py:1013-1024 | libs/checkpoint/langgraph/store/base/__init__.py:1300-1311 | libs/checkpoint/langgraph/store/base/batch.py:180-191 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/checkpoint/langgraph/store/base/batch.py:178\u0060 calls \u0060_ensure_task\u0060, \u0060create_future\u0060 and \u0060libs/checkpoint/langgraph/store/base/__init__.py:1012\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/base/__init__.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"949f56631b12b2cfa1ff062bfb7e1fd67d8af18f119827e261de8bbe9df48987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/langgraph/langgraph/pregel/_checkpoint.py:488-499 | libs/langgraph/langgraph/pregel/_checkpoint.py:523-534 \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 \u0060libs/langgraph/langgraph/pregel/_checkpoint.py:488\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"de944f8fc9716a17613d14981a5dacd1d724d53fca5fd69958b0823529bc21d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:772-783 | libs/sdk-py/langgraph_sdk/_sync/stream.py:846-857 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d208f35840f2b57ca37b554f704ba5134b3ae9a9c861e406b44ebbbf124b3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/http.py:72-83 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:58-68 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2034ecbddf09e2ee831ea48b0a17cd14934a5a5675b7caddc1631b749742abf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:46-57 | libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:53-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf51035737119d00bf2d68bbc4adaf29ef24b5b32b46b01c08a688b3b94fe66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): libs/sdk-py/langgraph_sdk/_async/stream.py:460-470 | libs/sdk-py/langgraph_sdk/_async/stream.py:715-725 | libs/sdk-py/langgraph_sdk/_sync/stream.py:414-424 | libs/sdk-py/langgraph_sdk/_sync/stream.py:785-795 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea0679cb37acc1355aa83e936dd03ec04b02d9b4f25ac1155d1e3624ffe61e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libs/sdk-py/langgraph_sdk/_async/stream.py:478-488 | libs/sdk-py/langgraph_sdk/_async/stream.py:732-742 | libs/sdk-py/langgraph_sdk/_sync/stream.py:802-812 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e87e336ac7b81cddbd7498ce8a4c261290235070626400c61bdf9d37c0760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:50-60 | libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:57-67 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:62-72 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:50\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. 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":"libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7a7c19cc0c3516b8f179f27937ce252ef1b28d4dd530e8fe897f059ddd01bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:56-66 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:557-567 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c6d81cc5f087df6ae50a17f1a247bb206d3006387ba7fd98df16a3aab36948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:518-526 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1086-1096 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py:518\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":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba29d5677149dab9ef41b4f2fe9d659e4e84e1179415ccfde8549dbbdd8f1d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:718-728 | libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:738-748 \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":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed48e3471fca0495693f6fdc72e48de423d81b4d17899cd45623ff5ad0ec685a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/checkpoint/langgraph/store/base/embed.py:362-372 | libs/checkpoint/langgraph/store/base/embed.py:379-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. 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":"libs/checkpoint/langgraph/store/base/embed.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"066b987751136595061c8ed29e90c02976630c09df53f2df040a9c3b256df1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/langgraph/langgraph/channels/named_barrier_value.py:57-67 | libs/langgraph/langgraph/channels/named_barrier_value.py:135-145 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/named_barrier_value.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0eff5cf08293dcaba34899fb54f4b9457e76020d08c51a82f475ea903e0cf90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/langgraph/langgraph/pregel/remote.py:794-804 | libs/langgraph/langgraph/pregel/remote.py:949-959 \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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cfcd641619ac2dc1573b383fa95a8197207234c75091cc61bae59d82a65f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/langgraph/langgraph/stream/run_stream.py:148-158 | libs/langgraph/langgraph/stream/run_stream.py:441-451 \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":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b47862fa588050cd35e3aad70f6aa20a2c86192903ce56c21031d03ade175c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/threads.py:614-624 | libs/sdk-py/langgraph_sdk/_sync/threads.py:603-613 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/threads.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 228 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/threads.py:614\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":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b83075bc5924c5085a38f8822148ebbadca58082802a9601c87542b2be300b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_sync/stream.py:371-381 | libs/sdk-py/langgraph_sdk/_sync/stream.py:579-589 \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":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"369686e0548f91dd5946643f07c9c1bdd51146165f7f3d84eb671c6c5f16497a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): libs/langgraph/langgraph/callbacks.py:166-175 | libs/langgraph/langgraph/callbacks.py:177-186 | libs/langgraph/langgraph/callbacks.py:207-216 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one 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":"libs/langgraph/langgraph/callbacks.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3c8a3262782d35a06a49bf7100ea10521cd815e3e00a91f7de6a461c7f10b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/cli/langgraph_cli/progress.py:29-38 | libs/cli/langgraph_cli/progress.py:60-69 \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":"libs/cli/langgraph_cli/progress.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f378438f585b15669537013c3442217fb2a95285f33c3353c7cb0e0142f02fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): libs/langgraph/langgraph/pregel/_messages.py:337-344 | libs/langgraph/langgraph/pregel/_messages.py:347-356 \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":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f587a944002ce5034f6a4663a509dcb5a6d2d6467430b7d578ef98e77a2b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/langgraph/langgraph/pregel/remote.py:538-547 | libs/langgraph/langgraph/pregel/remote.py:579-588 \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 \u0060libs/langgraph/langgraph/pregel/remote.py:538\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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bcc07c925fd3c6088352ca199424eb585b84a7dff58c4893eb9bc4b2dfd370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/langgraph/langgraph/pregel/remote.py:1064-1073 | libs/langgraph/langgraph/pregel/remote.py:1116-1125 \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":"libs/langgraph/langgraph/pregel/remote.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a3729ba89cbf109e29948b32bd30223085ac6dd004eff977d3f941eb4c27d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:185-194 | libs/sdk-py/langgraph_sdk/_sync/stream.py:230-239 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afb4028505453c0aeedda5e6a08bd87fa8a428b548c9965e6210f7dab38458c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1098-1107 | libs/sdk-py/langgraph_sdk/_sync/stream.py:611-620 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeef562abd3e59a3041ed1306373676f6640ee437f63d06f508b0305d2ec75e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1458-1467 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1328-1337 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1458}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb5cc7654f648397fb88a870d77e907bad63bc142816e786a66a283a7c20fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/threads.py:626-635 | libs/sdk-py/langgraph_sdk/_sync/threads.py:615-624 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/threads.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 228 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/threads.py:626\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":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b8742f46f5d2b881cba157ffff7005b0fd79ff192cc7c547a43b324f6b5f40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:38-47 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:41-50 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2e0f4bb221e8f21a7a8d086a0e80a284b8f65cbf15144f6efc2ef06305364c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py:827-835 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:653-661 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:734-742 | libs/checkpoint/langgraph/checkpoint/memory/__init__.py:623-631 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1fde3bf10b290eeae33077db2d672d235fbccdf4096d52174206122e261595"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:546-554 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:481-487 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"30321e8a8df2619752799f5fd02999b366609e0af49ea5a010ed3bf84f6fb99d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/aio.py:463-471 | libs/checkpoint-postgres/langgraph/store/postgres/base.py:1030-1038 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/store/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/store/postgres/base.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af8e1a65531e813b62aacc7d817b1a976053e2d03dd29bc275cdfbe259ea005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:339-346 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:367-375 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"eade86151591108a8b5da6d22e6e6ec3cba44f4010c78a527170c96e74b31799"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1402-1410 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:194-202 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060content\u0060 to \u0060bytes | orjson.Fragment\u0060 in one and \u0060bytes | str | orjson.Fragment\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c58e17aceccb5ec5f48c1bbd88747fd04e5304f91dc4dab8fe47bce8a1e697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/langgraph/langgraph/pregel/_runner.py:763-772 | libs/langgraph/langgraph/pregel/_runner.py:910-919 \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":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcac988dec3b7eca5b96cf972f0302ac7ca707c747976817fe5850035f52395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:4328-4336 | libs/langgraph/langgraph/pregel/main.py:4362-4370 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":4328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8c27b6b4b8ee973aa23e2aa6d13ac1004d8641635b5287a9cc38bbe8f370e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:709-717 | libs/sdk-py/langgraph_sdk/_async/stream.py:768-776 \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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"3898ee0d3410a8592fd06a4e7eee3236ab0f244d7aa23763c4d2cbc27a9aecb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:950-958 | libs/sdk-py/langgraph_sdk/_sync/stream.py:995-1003 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c474eee32d3a56ed2ce8b5e4f2838e268024d5087d71bda7930da4974859f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/http.py:51-59 | libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py:33-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d0d4b6705afd584757e819854f12780c2957370a9739ae434e0fe73bf1aae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8): libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:733-742 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:744-751 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:753-760 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:762-769 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:957-966 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:968-975 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:977-984 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:986-993 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:733\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. 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":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea36cb83abddde2db6a6f4ff0fe489a1c5ae9cf3c9fcf33bc8928785b3e444b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/langgraph/langgraph/pregel/_loop.py:1828-1835 | libs/langgraph/langgraph/pregel/_loop.py:2084-2091 \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 \u0060libs/langgraph/langgraph/pregel/_loop.py:1828\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":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"aabe480157d0ee084cd5e7f9e0393c5ee25a4f773e1ce1cf427287410692e479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:153-160 | libs/sdk-py/langgraph_sdk/_sync/stream.py:198-205 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5995a020ad4d8c681b8d19900842ad996d558a3cd4f3e066ef6f394d9bd0a562"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1149-1156 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1068-1075 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"dccdd690f9e7c7f2417183c63a59692e980977d34f85dd256b91b0e07ee39b24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): libs/langgraph/langgraph/graph/state.py:1661-1667 | libs/langgraph/langgraph/graph/state.py:1689-1695 | libs/langgraph/langgraph/graph/state.py:1719-1725 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/state.py"},"region":{"startLine":1661}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd5dc81b372e7977bd30fc410c82ab14e9a3c5225584600ff12142355c973b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:542-548 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:540-546 \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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f13b2c0cbc79b3cc7300c5664274dab0590768fb19173dac41bff1e1f380945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:477-483 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:661-667 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cce7af0c562a2bffb7c1dddfbd0002f35197cbe7fdd79822ecb2a3c9fc872ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1392-1398 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:258-264 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1392}}}],"partialFingerprints":{"codehealthFindingId/v1":"771252b1f1509ecc23e56b389d02059aaf0cb4a199e27d820ccd2088f81fa898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py:544-551 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:665-672 \u2014 before extracting anything, compare \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 92 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"122316bc996a9e3dfc01ad1d4177021d47ea49d95c9defc7bf23dfbccf7c0825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:663-672 | libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py:692-698 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d01c3637e7a5462c6b5636d645058a64bb2d5d40f39693b98934c38c3c7574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/langgraph/langgraph/channels/binop.py:83-89 | libs/langgraph/langgraph/channels/delta.py:85-91 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/binop.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba42ff73d483069290be134d2feeff1aeccc7b29414569e41b82c5d5d157d80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/langgraph/langgraph/pregel/_retry.py:697-703 | libs/langgraph/langgraph/pregel/_retry.py:846-852 \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":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6995a74f78a2a7dc2c3112a6121badf0b797d99328d01fa8c354cb60e939ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/langgraph/langgraph/stream/run_stream.py:124-130 | libs/langgraph/langgraph/stream/run_stream.py:424-430 \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":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af9bc4869ba2c555899ddde850d1b3a319d4c20e584b3ec535337e2f397e8cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/http.py:170-176 | libs/sdk-py/langgraph_sdk/_sync/http.py:171-177 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/http.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 125 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6839de0888d242b40f5029c9a974695d72b92aca0bac001c25eb3d9c5935b137"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/runs.py:614-620 | libs/sdk-py/langgraph_sdk/_sync/runs.py:609-615 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/runs.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/runs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 251 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/runs.py:614\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":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c609f1fb470dbd20b97add32ce078443bde018042a94da352eb68cb6171f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:644-650 | libs/sdk-py/langgraph_sdk/_sync/stream.py:712-718 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060handle\u0060 to \u0060ScopedStreamHandle\u0060 in one and \u0060SyncScopedStreamHandle\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e08c275c37a90536df05782fcbc254a9555185a0a330c15d7da47e03b6ce28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1060-1066 | libs/sdk-py/langgraph_sdk/_sync/stream.py:562-568 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:1060\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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc337dd3538334b260242f43c806953c28c11e164fd1c42f81315d1fd0bfa43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): libs/checkpoint/langgraph/checkpoint/base/__init__.py:128-134 | libs/langgraph/langgraph/pregel/_checkpoint.py:538-544 \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 \u0060libs/checkpoint/langgraph/checkpoint/base/__init__.py:128\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libs/checkpoint/langgraph/checkpoint/base/__init__.py:135\u0060 calls \u0060get\u0060 and \u0060libs/langgraph/langgraph/pregel/_checkpoint.py:545\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/__init__.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d7914a8b24340dc67c378200538ef715e66fa6ede248a2b9e6d3ba3e7e8a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/http.py:107-114 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:75-82 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/http.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"071437ecc50b5ec1c99c2457fc4a09da3a7ee53c6867e9cea317b5cbf4ac0825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/langgraph/langgraph/pregel/main.py:1489-1493 | libs/langgraph/langgraph/pregel/main.py:1514-1518 \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":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb74f01e5490ac0dbf06b9bee64c0b4b73d1e8b231095ce8dd86d6c3fb2ab997"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py:72-88 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:214-230 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 83 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"215e2a0a1197f470e6b17bbcfb3b9dcf7fb42448f06cd602c961499419c584c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 3): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:654-681 | libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py:895-920 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:160-187 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 123 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca2820d803c73f096dac18e40edc610e68bc67cd9a9ae05ceffe40d83d8ae1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:730-752 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:270-292 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"301eebd8d849608a2d30779538e2846e575d0cc0dfd8eb899208b9ae058f422b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py:784-797 | libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py:297-315 \u2014 before extracting anything, compare \u0060libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py\u0060 and \u0060libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c6bbce9495f457b85ff8db770737ac80673754beb104f3b4cf75cc21cdb90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1318-1334 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:143-160 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d11fe4840dee58fc0aab887aa809daa091863766b80fed3d5ca60f955353968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/checkpoint-postgres/langgraph/store/postgres/base.py:1343-1362 | libs/checkpoint-sqlite/langgraph/store/sqlite/base.py:215-228 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1745a6c2e42d99b4e884509be46b2c56288e72b5090a9dc7481d74012d8a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/langgraph/langgraph/channels/ephemeral_value.py:42-46 | libs/langgraph/langgraph/channels/untracked_value.py:42-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060libs/langgraph/langgraph/channels/untracked_value.py:48\u0060 calls \u0060checkpoint\u0060 and \u0060libs/langgraph/langgraph/channels/ephemeral_value.py:48\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/ephemeral_value.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a043b2ae1157dcfced6c64f270c39ebb0342e7c26cba0263b516a5b1b0ce09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/runs.py:1140-1186 | libs/sdk-py/langgraph_sdk/_sync/runs.py:1131-1176 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/runs.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/runs.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 251 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/runs.py"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"680707ac34d2eb2233c5817045749e6ea35e001cd7b87f01120e81db0c8c3fa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): libs/sdk-py/langgraph_sdk/_async/stream.py:504-515 | libs/sdk-py/langgraph_sdk/_sync/stream.py:142-153 | libs/sdk-py/langgraph_sdk/stream/decoders.py:65-76 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"78517b4b74491a366c6c0a43f18c02fc940ec0f389e008441fda0eaa680b7c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): libs/sdk-py/langgraph_sdk/_async/stream.py:529-534 | libs/sdk-py/langgraph_sdk/_sync/stream.py:114-119 | libs/sdk-py/langgraph_sdk/stream/decoders.py:90-95 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ccf91dfa566c30f9683b3132f1a2c646007fec0ec6342af80f989480a1bafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:657-669 | libs/sdk-py/langgraph_sdk/_sync/stream.py:725-737 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"68bd25c58e3d3edd0c62a452ce2625e65823a1339c4bed0d04f171e5036b89a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:672-680 | libs/sdk-py/langgraph_sdk/_sync/stream.py:740-748 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da18b7fc313b623e67dd21437640791cf8c73777f38815ab919d7bcf5171dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1333-1341 | libs/sdk-py/langgraph_sdk/stream/controller.py:183-191 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060libs/sdk-py/langgraph_sdk/stream/controller.py:176\u0060 calls \u0060gather\u0060 and \u0060libs/sdk-py/langgraph_sdk/_async/stream.py:1330\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b9f06a952e2004d30b8f09c25e80f6c529da719b602f086d51af767af19fd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1417-1430 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1289-1302 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1417}}}],"partialFingerprints":{"codehealthFindingId/v1":"843caf6cad735ab19d40029ef9e10ac15048b5aeaeab9ad4719a36e8805fb238"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1549-1556 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1419-1426 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"784b483c9988815295875cd354370b96323e0df38924c7f21f5c468f1e46305e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1603-1615 | libs/sdk-py/langgraph_sdk/stream/controller.py:204-216 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1603}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd94c24ffd01065308693a209647229d1a4675f3b4b43cf74c195a0032e56d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/stream.py:1866-1870 | libs/sdk-py/langgraph_sdk/_sync/stream.py:1524-1528 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/stream.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/stream.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 29 separate duplicated blocks between them, totalling at least 376 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fafe78c44b03c7803511aefe936a9af1837f48e9668b8df54b984351c570bc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): libs/sdk-py/langgraph_sdk/_async/threads.py:821-857 | libs/sdk-py/langgraph_sdk/_sync/threads.py:797-834 \u2014 \u0060libs/sdk-py/langgraph_sdk/_async/threads.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/_sync/threads.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 7 separate duplicated blocks between them, totalling at least 228 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"libs/sdk-py/langgraph_sdk/_async/threads.py"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"970948bd7f95062f24cb32f2eb02bfa8cf3e7efd2010b12da6d46c989ace0125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py:140-153 | libs/sdk-py/langgraph_sdk/stream/transport/ws.py:210-223 \u2014 before extracting anything, compare \u0060libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/stream/transport/ws.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060client\u0060 to \u0060httpx.Client\u0060 in one and \u0060httpx.AsyncClient\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5930c3c83e3cccdb6e1998a29598becab87b0d4f12125bbb4d8733a3fc9b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (110 corresponding lines): libs/langgraph/bench/wide_dict.py:14-123 | libs/langgraph/bench/wide_state.py:14-135 \u2014 These two members are one piece of code written twice and then edited apart: 110 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/wide_dict.py"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1854016ec20751d1e16e09d8dede541d7e6ec65baa7351f0ab99eb9337edc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): libs/langgraph/bench/fanout_to_subgraph.py:12-58 | libs/langgraph/bench/fanout_to_subgraph.py:62-108 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/fanout_to_subgraph.py"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f0f7eccd04af1fe41fca63ecde329e1aaf4c2f5edfd6bbfa0cde2a30f5ae45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 3): libs/langgraph/bench/pydantic_state.py:237-295 | libs/langgraph/bench/wide_dict.py:61-119 | libs/langgraph/bench/wide_state.py:73-131 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060libs/langgraph/bench/pydantic_state.py:237\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":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"820a1aa9ac0c0ec216009fda7db6339a0a9b9e6db8b3ab1d6709b810edcd102e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): libs/langgraph/bench/fanout_to_subgraph.py:38-58 | libs/langgraph/bench/fanout_to_subgraph.py:87-108 \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":"libs/langgraph/bench/fanout_to_subgraph.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc005c9fe2cdd0131dbc76f2f38ceb3cec0e5c6e67a978cb38526a9212e44a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): libs/langgraph/bench/pydantic_state.py:75-86 | libs/langgraph/bench/pydantic_state.py:92-105 \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":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c96c3aa5e6c3de229f0968fd5285e827546a686190537c107616f2d4b15502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): libs/langgraph/bench/pydantic_state.py:145-155 | libs/langgraph/bench/pydantic_state.py:157-167 \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":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"da861a1babd06fff5d1d519d05953943d21e56d48ca626d84e5f3e0b33613996"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): libs/langgraph/bench/pydantic_state.py:175-184 | libs/langgraph/bench/pydantic_state.py:198-207 \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":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcfc095b93949fe65e5724449e5edf6e198a143f0149b022aa3aeec26526766d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): libs/langgraph/bench/pydantic_state.py:20-27 | libs/langgraph/bench/pydantic_state.py:35-44 | libs/langgraph/bench/pydantic_state.py:86-95 | libs/langgraph/bench/pydantic_state.py:105-112 | libs/langgraph/bench/pydantic_state.py:122-131 | libs/langgraph/bench/pydantic_state.py:139-146 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bdc4d8e3090ff166d75518f52be9e2fff2f04630f7e93225c25f66c0d6bbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): libs/cli/examples/graph_prerelease_reqs/agent.py:22-38 | libs/cli/examples/graph_prerelease_reqs_fail/agent.py:23-39 \u2014 \u0060libs/cli/examples/graph_prerelease_reqs/agent.py\u0060 and \u0060libs/cli/examples/graph_prerelease_reqs_fail/agent.py\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 1 separate duplicated blocks between them, totalling at least 17 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/examples/graph_prerelease_reqs/agent.py"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e6e7ffb3ca36e2e88aeba6a6010c4a1e81385ad0c7d4ca4ae8d837d7f7ec23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): libs/cli/examples/graphs/agent.py:31-50 | libs/cli/examples/graphs_reqs_a/graphs_submod/agent.py:35-54 | libs/cli/examples/graphs_reqs_b/graphs_submod/agent.py:35-54 \u2014 before extracting anything, compare \u0060libs/cli/examples/graphs/agent.py\u0060 and \u0060libs/cli/examples/graphs_reqs_a/graphs_submod/agent.py\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/examples/graphs/agent.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"48230248d78a05898f77c7a50e60985df3dad030e2c44475515b9cb5dd2d3e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/chatbot-simulation-evaluation/simulation_utils.py:60-64 | libs/cli/examples/graphs/storm.py:181-185 \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 \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/chatbot-simulation-evaluation/simulation_utils.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57037f308f2c26be113f62f28de1cb6fe2d4b2485eed5bddf4e5f60bdfffad3"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: langgraph-sdk: langgraph-sdk: abstractness 0.06, instability 0.00, distance 0.94 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"292003434259122ab3580f6c0526980fe335b21ca6242eb4eb04897a11263474"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseStore (LCOM4 5): BaseStore\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/base/__init__.py"},"region":{"startLine":708}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92ba9fc476f02129b1be287121be4770823cc4a614b0dc14d236aa971b47ac8"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the jest suite in libs/cli/js-examples/ ran and not one test passed (FAIL tests/graph.int.test.ts), so the coverage would describe the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: psycopg: \u0060psycopg\u0060 3.3.9 is published on PyPI under \u0060LGPL-3.0-only\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"57e0195d284ef3fb0f29fa195d135277e5d941641db63632b6ec32fc013a89a1"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: psycopg-pool: \u0060psycopg-pool\u0060 3.3.3 is published on PyPI under \u0060LGPL-3.0-only\u0060, which this policy bans, and it is in the SHIPPED closure of this repository \u2014 so it is installed by everything that depends on this repository, not just by its test environment. A distribution offering SEVERAL licences is a choice and is only charged when every one of them is banned. Replace the package, or record an accepted exception. \u2605 The licence that makes this row is LGPL-3.0, and unmodified use is often permitted: the LGPL lets your code use an UNMODIFIED copy of the library that stays a separately installed package (its own entry in node_modules, site-packages or the gem path, which a user can replace) without your code coming under the LGPL. What it then asks is that you pass on its licence and notices and let users swap in their own build of it (LGPL-3.0 section 4). Modifying it, copying its code into yours, or merging it into one bundled or statically linked artifact is where the obligations grow, and this policy cannot see which you do \u2014 that is why it denies LGPL-3.0 by default. If you use it unmodified and separately installed, allow it in your repository\u0027s licence policy rather than replacing it: add \u0060LGPL-3.0-only\u0060 / \u0060LGPL-3.0-or-later\u0060 to the allow-list of the licence check your CI runs (\u0060license-checker --onlyAllow\u0060, the \u0060allow-licenses\u0060 input of GitHub\u0027s dependency-review-action, \u0060[licenses] allow\u0060 in cargo-deny\u0027s deny.toml), record why in the same change, and hide this row on the findings page with that reason. This scan\u0027s banned set is not read from that file, so the row stays until it is hidden."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d69adffe5ca0b299c9e0412ab901f969fc9cec24bd1a876ccd86f17d760fbfd6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/langgraph/langgraph/pregel/_loop.py: libs/langgraph/langgraph/pregel/_loop.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in PregelLoop._first at line 931. 17 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/_loop.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a46d45e1aaea206a9d3ce3594f22160c55ee3d66f8791809bb160470987e21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/langgraph/langgraph/pregel/main.py: libs/langgraph/langgraph/pregel/main.py changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in Pregel.astream at line 3180. 18 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/main.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/main.py"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1e224b774e8668b29340b359b202c78d68d5c12be6e3a4dc2f5247d51b4175"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/cli/langgraph_cli/deploy.py: libs/cli/langgraph_cli/deploy.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in deploy._deploy_cmd at line 2532. 6 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/cli/langgraph_cli/deploy.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":2532}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb532ab51b7fc24806d36e0142ba1dc209b8c8b76685ed9db394f1ad71f6f56c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/sdk-py/langgraph_sdk/_sync/http.py: libs/sdk-py/langgraph_sdk/_sync/http.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 37 in SyncHttpClient.stream at line 210. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/sdk-py/langgraph_sdk/_sync/http.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/http.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b29cbe7ec9ee2d4a6a0973ff5e22e8b57543d386352cdd03cd11ef56420694e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/sdk-py/langgraph_sdk/_async/http.py: libs/sdk-py/langgraph_sdk/_async/http.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in HttpClient.stream at line 209. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/sdk-py/langgraph_sdk/_async/http.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0e60c95eb87452364c223406687ab774c5aae1868376f4bca4ae4de969c8f7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/langgraph/langgraph/pregel/_runner.py: libs/langgraph/langgraph/pregel/_runner.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in PregelRunner.atick at line 366. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/_runner.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_runner.py"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"f587997d90148d5269be6829afaa9292af6cea9cb7d43a8e76b53ee5de36bdd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/cli/langgraph_cli/config.py: libs/cli/langgraph_cli/config.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in config.validate_config at line 384. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/cli/langgraph_cli/config.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3e7ea057f64b48b32091021134d8134d6cf59db596774a730514044fc57cf1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/langgraph/langgraph/pregel/_retry.py: libs/langgraph/langgraph/pregel/_retry.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in _retry.arun_with_retry at line 706. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/_retry.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19121d90de4f311b2820a43e35cc99a3aec7bf141d7468554ab6b7bd3553e7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/langgraph/langgraph/graph/message.py: libs/langgraph/langgraph/graph/message.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in message.add_messages at line 64. 2 of those changes were fix/bug commits, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, 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. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/graph/message.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/message.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb06a7c870802f01dc5807dab32fdbb13462d81d6f63a9a913c86e1ca59b57d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/cli/generate_schema.py: libs/cli/generate_schema.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in generate_schema.add_descriptions_to_schema at line 37. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/cli/generate_schema.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/generate_schema.py"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03714bbd2d2f34b916a4741072943b25bc6bb82b3f5a502babee5199255ebe6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/cli/langgraph_cli/uv_lock.py: libs/cli/langgraph_cli/uv_lock.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in uv_lock.python_config_to_docker_uv_lock at line 868. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/cli/langgraph_cli/uv_lock.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/uv_lock.py"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba47b126a9a6c75b70c813cdbcfa475f20062a70b8b00f63d98be542b06fbc2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/sdk-py/langgraph_sdk/sse.py: libs/sdk-py/langgraph_sdk/sse.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in SSEDecoder.decode at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/sdk-py/langgraph_sdk/sse.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/sse.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de9137659d7f806ad0a547a10ff3b3c50fe640fbc72f32378c846ee98dca3c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: libs/checkpoint/langgraph/checkpoint/memory/__init__.py: libs/checkpoint/langgraph/checkpoint/memory/__init__.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in InMemorySaver.get_delta_channel_history at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/checkpoint/langgraph/checkpoint/memory/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b75e086af5ca7c6abec92c37a203b4fb3d82fdac951901da5e746ef6aaa9e21"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: libs/langgraph/langgraph/pregel/_checkpoint.py: libs/langgraph/langgraph/pregel/_checkpoint.py changed 11 times in last 90 days and 11 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is _checkpoint.create_checkpoint at line 268), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(langgraph): keep a DeltaChannel\u0027s value when its field changes to a plain reducer (#9302)\u201D; \u201Cfix(langgraph): snapshot a DeltaChannel that an update_state Overwrite resets (#9263)\u201D; \u201Cfix(langgraph): keep a fork\u0027s DeltaChannel snapshot from starting nodes that never ran (#9264)\u201D; \u201Cfix(langgraph): never store exit-mode delta writes under the null task id (#9229)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/_checkpoint.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_checkpoint.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb70ca12b5618281d959152c66dacd6fe2e58be2931033237bb7ad75c31a3e55"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py: libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is SqliteSaver.get_delta_channel_history at line 517), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(checkpoint-postgres,checkpoint-sqlite): treat an empty checkpoint_id as the latest in delta history (#9262)\u201D; \u201Cfix: order delta channel replay by task path (#8544)\u201D; \u201Cfix(checkpoint-sqlite): walk delta ancestors by parent pointer (#8557)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7decc34b47b070567f2706864fca3385b469ad6f8a7d6ebfac40e39800980d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py: libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is AsyncSqliteSaver.aget_delta_channel_history at line 645), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(checkpoint-postgres,checkpoint-sqlite): treat an empty checkpoint_id as the latest in delta history (#9262)\u201D; \u201Cfix: order delta channel replay by task path (#8544)\u201D; \u201Cfix(checkpoint-sqlite): walk delta ancestors by parent pointer (#8557)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef713be456f2a89766005d38f81733e37a358df36ab803318fd08b7f7277315"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: libs/langgraph/langgraph/pregel/_messages.py: libs/langgraph/langgraph/pregel/_messages.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 14 (its worst body is StreamMessagesHandler.on_chain_start at line 215), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(langgraph): give messages and tools events the namespace of their graph (#9458)\u201D; \u201Cfix(langgraph): emit node-output messages from a graph streamed inside a node (#9463)\u201D; \u201Cfix(langgraph): give every message written to a messages DeltaChannel an id (#9275)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/langgraph/langgraph/pregel/_messages.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6ad224439e4356c9357a81b61b4d1b18d05566249bb5c9692f7348eb71dc70"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: libs/checkpoint/langgraph/store/base/__init__.py: libs/checkpoint/langgraph/store/base/__init__.py changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is base._validate_namespace_labels at line 1325), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(checkpoint): reject NUL bytes in namespace labels (#9383)\u201D; \u201Cfix(checkpoint,checkpoint-postgres,checkpoint-sqlite): validate namespace labels before store dispatch (#9217)\u201D; \u201Cfix(checkpoint): widen \u0060Store\u0060 \u0060put\u0060 value type to \u0060Mapping[str, Any]\u0060 (#8617)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 20:25:56 -05:00\u0027 --until=\u00272026-11-13 20:25:56 -05:00\u0027 --full-history --no-merges -- libs/checkpoint/langgraph/store/base/__init__.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/base/__init__.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cb5c2ad80b8e966bc78694f399edf4f592c63df81959102692d85c79b36541"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: libs/langgraph/langgraph/stream/run_stream.py, libs/langgraph/langgraph/stream/_mux.py, libs/langgraph/langgraph/pregel/_remote_run_stream.py, libs/langgraph/langgraph/stream/_types.py, libs/langgraph/langgraph/stream/stream_channel.py, libs/sdk-py/langgraph_sdk/stream/transport/ws.py, libs/sdk-py/langgraph_sdk/stream/transport/http.py, libs/sdk-py/langgraph_sdk/stream/subscription.py (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"97b32ae003d1f8629f4cec7450710611f9a81d0b556b890399bdf05b876f20fb"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 4 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 (17 single-owned of 154 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 154 of the 228 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (2 file(s)), anonymized user #4 (1 file(s)), anonymized user #5 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: libs/sdk-py/langgraph_sdk/encryption/__init__.py, libs/sdk-py/langgraph_sdk/encryption/types.py, libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py, libs/checkpoint/langgraph/cache/memory/__init__.py, libs/langgraph/langgraph/pregel/_tools.py, libs/langgraph/langgraph/pregel/_task_status.py."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: add more tests \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/tests/test_algo.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4940093f1698f5f1c229cab4afd3d2b9a04ec97bbbd67b5ec9ddfcab62024b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(delta-channel-cadence): the previous \u0022snapshot fires even when channel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/tests/test_channels.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0c21a2c7d5586797b779666a946102cc49cde989144649b8b8c8ee62336099"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO add here test with invoke(Command()) \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/tests/test_large_cases.py"},"region":{"startLine":6426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e23a55f7aa92b174ecb9d3deeff640f8dd15c1d39fa4c215adb27dc9d2584c0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Fix the namespace matching in the next api release. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/tests/test_remote_graph.py"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3997b9bafca87a47329eae5f2a32767e3cffcbee7d272e97431cb2470b35a1ff"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: in an ideal world, we would have a context manager for \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/runtime.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77d12b6fa1dfa91e09d6552f8411ca1c3fdfb5800a7c954640c5161ade7142f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: replace with an explicit \u0060exiting: bool = False\u0060 parameter. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_loop.py"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d22ca579743f2d8daa5243012df6040fcde3334621068813ed789fe457a69fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: we probably don\u0027t want to explicitly support the config / store signatures once \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_node.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0a66a14bd44c276112fe2afcf8410c573b3cdd62abb50a2546d29c8c95e2ad"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: # hacky way to reset model to the \u0022first\u0022 response \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/tests/unit_tests/agent.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d871d6b2381edcb058a24db70e8a7a0663ccc7fde1c8fe93099b74167a22f807"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: We don\u0027t currently fill in additional results if there are not enough \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/tests/test_store.py"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"117d046b4d17f940893dc04dd0f6c687da72ceba6d44afca822ee6421171f34a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: test before and limit params \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/tests/test_memory.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c0fba935daa7922e9ade2a4b4069d6efd0d93bfa3db2b05966272fd92acd07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO support other stop criteria \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060# REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/chatbot-simulation-evaluation/simulation_utils.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d626b1ac9e88842dc13e0566595e6aae4c89adf52c00bca1116d6749b73cc39"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060libs/cli/pyproject.toml\u0060 makes this repository a deployable product (line 36)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/pyproject.toml"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c5e4d0bbaa494cccf22f402343417df9cd4a0720b6c51acf4e37af22b9a582"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 9 project(s) overshoot their size bounds, lowering Project Cohesion to 5.6/10. The most over is \u0060libs/langgraph\u0060 (26747 LoC, 231 module-visible types across 9 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3eaa32d45e7ead783af30ab85d03523e31af9cb4e50830ebe21e23d0f4215c0e"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"094fa98790cde99ad7a7e782a4386f53f6ef07ba611686ea0667f4e0de38c1f5"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"77bd8bf28075f224cd7bc5fc6bdf943b1794b0e9e2075db1fe4fcd3f7b86a1cc"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b7c09e93a020d824b16251d0b3144e786896d6771a4dd27fd4c9760c76927ceb"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4060f0dcf035f8fac6dd15dc7c8fb8b33faecb8d1de3490ca1c1db9fbbe682cb"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b51a2f7dde20710a2b7e23d6f43643473bcc1d97e07f09b483d71b0f06980159"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"91ab08c4ba48802f7e21d19d0fbffda2e90f7c1c0eec4ee8be049e7838f52072"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c4c79887369450cea1c8992fd8f4af4083141160c8d920d3f2153be36beb05fd"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"3b8d04df6647ef7bd9cfabdaf0322424eff48aeba7ff1d494379818d6ae9a0df"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"e349116ea389b0c2557eac123c74e10a7374b0a0c579e12074753665a0f520d3"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"fd34071f0a37397b22950926e6e7d533f19a1ab2e35c80a3ec230eef7195ce4c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"baf820cb96860a0cf55c98fa5eb663b20a3f1c93932ecb4c5e89f152bb919d2c"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"7c3770138d8e3e8dd3bec528961e54ab765dd6c0439a672d0908a50abae91189"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"93d9bee843a8b03fa175a811c48c533c6b32965f2e36be56bd759a16162f73c0"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"f9755d310db5c5a92dd6af6ec6a50feb10988154a6ab12595530a25183dbfcaf"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4d0d064693476792d46ac55f75e2cd6207ba401828ce72797581596b37153825"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"c21b07e03415c243441d6570473060484b09de41f68f602b91b1ed776f23cda8"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"2f732da2efaa35235f49153f125f2d917c4fcb749cb44a4d3e555fb2acbd13b3"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"d812224f18fb512b073fa8487ae2e6c8ec7ab5ca6db9a4b1495ccf13ee2e72be"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"dbcaaa66ae675e38109dc765e97627f25aca9b25e9cf022df2daf8d720ed6ddd"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"b905193c20de1ca9610eb09d23bf0207118f38cf8e495890cb795edce1cd81dc"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"08a064d94d47d4e597777c6d99351349834082df683da8b6bc85f88eec447efe"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4fc04e5f548d505718e60fb3a13a0afb9a580446aef1d6f37e047f6d19e731dc"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"ce8eb2c64fdfbb9897d8abd68e4f27149ebd0f4f823a5cce4000bd69326c94c6"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"9fbf98cc9cb52ce5a7e285f58ac1efd4cbb89dd475c8319050b9ee7b5e74db5c"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"bfe2b454f73b9393a24dfa9a8135456ba13d485272a0c2009eabfe4061df0202"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","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":"83cedd457a895d964841c07b3a802ba3dfa8bdd329b3c6789cba624daf639522"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","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":"7d1ff000e10f652c7f340db489bf400e7a9dc72ea4962eaccec3ff5f97b7feea"},"properties":{"dependency":{"package":"langsmith","version":"0.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a130a95dea26a40835b6c8cc46a56dac408a553bb277f63e422a40705ece5b8e"},"properties":{"dependency":{"package":"langsmith","version":"0.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"d58805560bacab6edacdc8cb9f914d234ff6bc7e7e8e9a292d320c4cdb466250"},"properties":{"dependency":{"package":"filelock","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"53a1256517c9c0e60ade9a4b2c50c1e99ae5029d2ccfb85ff01e2278537a134b"},"properties":{"dependency":{"package":"jupyter-server","version":"2.20.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4054"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"a19a838f0f16a59f7cd1ec3b2eeb697f8dc5c9bb74e3c254857019883e80745a"},"properties":{"dependency":{"package":"soupsieve","version":"2.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"ad22412cd8c4de9c5672f1a652d51e45144ce0ff5a5d024ea2e088f37e5f3eb4"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"3de8196b1416ba33452163921001b158ccdafd2178521445d93874313bad1195"},"properties":{"dependency":{"package":"picomatch","version":"4.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ac13eeadef7abf3113da2efc15a08c6c89a8966ee3bf82000f137940e75dbfcc"},"properties":{"dependency":{"package":"idna","version":"3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-215"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"9de6bea910faebdd91a5fb3f9aed7cd061733b323f25abf19ddd5ac60bbdc1e2"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.45.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"8af5c7bdf12a63ca42ea01657bce6d6f279ba26747aa2f6f6b8ccd9a47dc2e02"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.45.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"9183c6603656f47d9bc8f90e53983be84eb8889a34d5099b4551e33d79a6672f"},"properties":{"dependency":{"package":"tornado","version":"6.5.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"02a69a7c1e71d0d5f059da4395d19df79044c8af627611c3a761a24bc0a6ce95"},"properties":{"dependency":{"package":"glob","version":"10.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"b831f2392e2090d61335ed4d268a7027a7bf194d113bba35f7e8c313b9e417d6"},"properties":{"dependency":{"package":"glob","version":"13.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"785c83090866a57e433c4eedc9f6a19da828fb1a2630ced27e6f2fb754dc8b7b"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"78081f001f3406cc7260ebc71755779879760a6099d7931f300537a85c726812"},"properties":{"dependency":{"package":"minimatch","version":"9.0.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"8402b034002a594c0821ae48f5a941cf6c9dd6f60bc4e25890fb1ce815352136"},"properties":{"dependency":{"package":"@humanfs/node","version":"0.16.7","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"8c0794559c93362f70b29040d3a7ad3aaefae930332dc7e670a8d38975120ded"},"properties":{"dependency":{"package":"minimatch","version":"10.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"f1934f9a4ac4045bc2596447e59be4db732be064dc7224f7ca97ccfc9ee50236"},"properties":{"dependency":{"package":"deepmerge","version":"4.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"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":"50c406f9ea6ee789af41a3f2b658a92b0b7044ae69713b8b299fd334bd2ad710"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"abea3ef8141d7d8a20ef3e4ab681e92ab0e25252da287546798545341c384816"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"e2593c1fb8c5464be21c5d1cb7e7b61b9bd419c3c036f9dcbe426f497fdf0914"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"4097cacc932a8ed7e536d6cadc12cf5b13baed7b61f5ae938e4833c6d4881d79"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"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":"278ff68535a9ce3164c487a9c860cf99e198ca42fb949710aec2b39aab0c66f3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 40 of 154 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 154 of the 228 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: libs/langgraph/bench/__main__.py, libs/langgraph/bench/pydantic_state.py, libs/sdk-py/langgraph_sdk/_async/store.py, libs/sdk-py/langgraph_sdk/_sync/store.py, libs/sdk-py/langgraph_sdk/runtime.py, libs/langgraph/langgraph/graph/_branch.py, libs/langgraph/langgraph/pregel/_write.py, libs/langgraph/langgraph/_internal/_serde.py (and 32 more). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/__main__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c954fa9d896e008b8de76d364e48185e95422259585a3aebf785cfc27c5a64e6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/pydantic_state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6708e1908078bcead0684a8eb102de1b13b4f3df0d6995ad5e29000e0806daac"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cc72d342b1d2e71b65b32338b3f20db12679655c39c3bf1dd8371a6b2fb813"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"83da1e9b464ff2b378f52e4bcd7186e5f120881731ab61ac4020ccf6657e4b5a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfdfc832e297616731149dc5ef2b5399e78e0d3061d242cca222ae198aabbb3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a040fd55a9d86c4c4c4edf8ebe4524484b62008d9d0532cb0483d2b743ed8ef9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_write.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b252f2369e35fbedc6fb447334c13c370493b2c746794d94b4e8c7a85de4f1bc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6c687bc0a5da9b60e6cfcaa39a646e469b39c42b7535046f31472ce733de22"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_future.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cca937507d988ef1d3383de8b0e223ab3c9b80de8fab8ed1844fa808b156354"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-conformance/langgraph/checkpoint/conformance/report.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c74cf53668e3f2d1f74dec048ff73301738abff5c90746cb84ff1b477b8786c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ef5df646788e81e2afa71a9ecf410bce4a23e7912be7cb083f5e44ee6946a1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"897c8c66aacb52f68921cd0da166b632bae2f861058a2d57b639733950835c30"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/wide_state.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfc617902763b37576d2836b309504560685327a6393a7b376f24090e6bd791"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/cache/redis/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a714a925fbfb12f1add21508b9c8f27cf3c96b8332505183da052cc43c5fae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/named_barrier_value.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f6dfa819866047a05d1f54a4da23bf420142c964b173400985602a06f56d38"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/utils.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"106d71f1fac5f862bb88b66f6fa216b676d40f658a5b63d40a343271243f4ade"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/wide_dict.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7810f4714980a8678d143baa846fea9f51a3af0c9b159abb678b234818ab0fe7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/archive.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f867072df44feb9bfe8e75c16b5080b61c271dfe6611a78c328fb8f0c89cee88"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e5241b3bf1b8d2ba50b27a7cd177a0d8f35c0c54f433e7519b12c9bb14057c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/cache.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f54ba09585f7c07793cd4c596d32ca7c60072b4786f7c357ae792aa426a28d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_validate.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e8140db36f1dde354dc7f4e318c603ff122fcac5ecafd7488e4f358444f00c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_queue.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5754c01f1e515f772c47298ea247b96a32881d51675dc3930b2ac3e927fe4603"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/last_value.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"349391fab14f4357a8e51fa3ac52e175bf743ccf5a60f3753e76c1c87fa38784"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91e6202a0777b0703e05a9b3e5e371a6573fba217d8e18e7723140341d46697"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/_ignore.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e63df330d2131c0dcda6001e40794e949d4929b2fdf97bb3b08a711592ceb02"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/fanout_to_subgraph.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b36e46d4882d7d1ec089d264f0fd1d5dd52469904a0ed752467c3330b9e4be7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/prebuilt/langgraph/prebuilt/interrupt.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee11898ed77818a2972156afb258e42058c2876e6f5db5e21c95d69e6e556169"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/base/id.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b692fca5089231703d2ef7e47a73d3d931f08efba8ab1a9c0b7c435da159ad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca0c47986f8c73d468d7744017ee4ebfd5e3f76bc6694b8fd46df00e4d068cc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/_msgpack.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39beec0ca403df5d1552ef3357cad598f8ed6d7987af666bf7799afd67bce353"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_replay.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a1a10e8b9e8b2d0d96c5e98326a1a35c2d1fd85362d67261e1a1863b1e661a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/encrypted.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62bd851947c7bcea56adede1c57da95d24b2e0bfd760ba8a9abde5d41fe5ba0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-examples/src/agent/graph.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2716b6ad26d46f0a865ab8cc6195798a1d298fb2653eac520fe76c26f3afcd24"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/cache/memory/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c6a4b25dcfd4f2de6dbba6c5cf8cd705650c6b1d924cb53386336053bfce01"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-conformance/langgraph/checkpoint/conformance/initializer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1a70446d40f61cfd0e4bb0030ab3ba4a496d53d129806e657045300103f221"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/topic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3417addbb001954f2dd02486f3d0f51d62efd1e9a6aee171eb5ab895b0cdc5c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-examples/src/agent/state.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96e81a198e75d60dd481ce0167fc9aff5677a1adb2b702b642d466c0557e152"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/bench/react_agent.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa562f72cec386da8364284fc48591e617dc06e7245b972637a2f0d3a5d0a5c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/warnings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e336ccdd28b2464d752836f2333897d303d5a524dbe9c54f46c1a3edf0fa085d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/ephemeral_value.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0897b919d52e72c7bede6dc7b25ebf7d0b3c413004f9df09cc39845aaf8d3654"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: __init__.py \u2192 base.py, last_value.py, constants.py, base.py, _write.py, types.py: \u0060libs/langgraph/langgraph/pregel/__init__.py\u0060 changes together with 6 other files \u2014 \u0060libs/langgraph/langgraph/channels/base.py\u0060, \u0060libs/langgraph/langgraph/channels/last_value.py\u0060, \u0060libs/langgraph/langgraph/constants.py\u0060, \u0060libs/langgraph/langgraph/managed/base.py\u0060, \u0060libs/langgraph/langgraph/pregel/_write.py\u0060, \u0060libs/langgraph/langgraph/pregel/types.py\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 6 separate couplings, not 6 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 6."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/__init__.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9849cca236223dd2529decf91f33ca7aa5f629ff4d0873fe9182ffa6053794cf"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: client.py \u2194 sse.py: \u0060libs/sdk-py/langgraph_sdk/client.py\u0060 and \u0060libs/sdk-py/langgraph_sdk/sse.py\u0060 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) 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. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u0060ed07d4a5\u0060 chore(sdk-py): Add more type checking. (#6479); \u00606f45f139\u0060 fix: Handle SSE stream reconnection in Python SDK (#6159); \u006099184881\u0060 feat(sdk-py): client qparams (#5918) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d55f34d4ed8eee74114dad809ef4d9c7ca9ffa047f516cfb18d16035de11489"}},{"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":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"4f1e7684f8281bd255ddef97105c7055c2ebae06964c8745716b83e174debe83"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 5/7 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060, \u0060libs/cli\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 17 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/bench.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060urllib.request.urlopen(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/analytics.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"598d2bd15b338fa2dcc360a5284fb397daf0ff8ebf773db81729211f6e7fb8d6"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060request.urlopen(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/templates.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9491d8727ad33b1919405775d655a5da65413c83327877c0b89bca09396006df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): libs/cli/js-examples/src/agent/graph.ts:64 \u00B7 libs/cli/js-monorepo-example/apps/agent/src/graph.ts:23 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-examples/src/agent/graph.ts"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3713f83a5d41e85f2997be00cea43b573a06948771972d50a9b7f1b0b7762cf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-monorepo-example/apps/agent/src/graph.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d7c87f1484421c9a652ec62fa09dbb46ce2b7df843af5949cb78a929dd736e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-monorepo-example/apps/agent/src/state.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fce9ac3e6005c60de215d7bf3d8dfbb1c72b8422913bf5fe764fb382042515"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/js-monorepo-example/libs/shared/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e528d29e01e360b82ed007aaaae50f9f354ebc92afd457c8163b3dcc02f0f592"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@eslint/eslintrc\u0027: Declared in libs/cli/js-monorepo-example/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c32bb253956885fc4dec6b3d159293c080f8ac7a94ddebf14400884bce87023c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@eslint/js\u0027: Declared in libs/cli/js-monorepo-example/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4a8e2bde32c020cc36bca097752e4963f147b2eec0e363471016e61958cbb0a7"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060asyncio.create_task\u0060 is not kept: The task this creates is not kept anywhere. The event loop holds only a weak reference to its tasks, so a task nobody references can be garbage-collected before it finishes (Python\u0027s documentation for \u0060asyncio.create_task\u0060: save a reference to the result); and nothing ever awaits it, so an exception it raises is never handled \u2014 it surfaces, if at all, as \u0022Task exception was never retrieved\u0022 in a log. Keep the task: \u0060await\u0060 it, gather it, start it in an \u0060asyncio.TaskGroup\u0060 (\u0060async with asyncio.TaskGroup() as tg: tg.create_task(\u2026)\u0060), or, for genuine fire-and-forget, add it to a set and \u0060task.add_done_callback(tasks.discard)\u0060 with a callback that also reads its exception."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1775}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2e40f1bc7c638b512a49d7329d1a7473654924ad5f50ac502848661403ffca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060build_command and langgraph_cli.config.has_disallowed_build_command_content( build_command )\u0060 appears character-identically in 2 files \u2014 libs/cli/langgraph_cli/cli.py, libs/cli/langgraph_cli/deploy.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/cli.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"5283a2d5c89f7bb96d25966f2a9065536ea89f40379c3af3104f38f03e1cee9f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060commands_path or f\u0022/threads/{_quote_path_param(thread_id)}/commands\u0022\u0060 appears character-identically in 4 files \u2014 libs/sdk-py/langgraph_sdk/stream/transport/http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py, libs/sdk-py/langgraph_sdk/stream/transport/ws.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8e5d8e2d96deaf56f3249bd76d50b09d20f889c2313c24b981bb3eb97d3437"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060config.get(\u0022ui\u0022) or config.get(\u0022node_version\u0022)\u0060 appears character-identically in 2 files \u2014 libs/cli/langgraph_cli/config.py, libs/cli/langgraph_cli/uv_lock.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"939b6e83f637bcabb7b19c8d895ff08fa7f3bb3fa3aa7b002a65dd5a5aa47a0a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data.get(\u0022id\u0022) or data.get(\u0022message_id\u0022)\u0060 appears character-identically in 3 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py, libs/sdk-py/langgraph_sdk/stream/decoders.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30c7dbba105094af7f15b0691d72d210bfc505f16faa1ce4c48b7c4ac615f4b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060frame_error or RuntimeError( \u0022lifecycle stream ended before terminal event\u0022 )\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1907}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed4eaf2cefbbeb9555bbc5f96ba84959e994fd5f15f4642cdfd26c9f1281248"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060frame_error or RuntimeError(f\u0022Lifecycle transport failed: {exc}\u0022)\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1934}}}],"partialFingerprints":{"codehealthFindingId/v1":"3433bf706e16234894427ce5fb4c78fca1327d27be5f51d6efa565dbf1355bce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060handle is not None and isinstance(delta, str)\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/stream/decoders.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c104bef56d8f2b02e25d644a73f7c5db61990bbf1d289c4e1f274e09d37137d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(obj, \u0022dict\u0022) and callable(obj.dict)\u0060 appears character-identically in 2 files \u2014 libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py, libs/sdk-py/langgraph_sdk/_shared/utilities.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead1120ad93d995eda351e95313d7dc5ad9377f7e62eae7eb119ef553f964f0f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(obj, \u0022model_dump\u0022) and callable(obj.model_dump)\u0060 appears character-identically in 2 files \u2014 libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py, libs/sdk-py/langgraph_sdk/_shared/utilities.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"441c804f95d0acf125bee7603e5aeba64aa91d803e75de5a5d9e8281b6d0c574"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022_ttl_stop_event\u0022) and hasattr(self, \u0022_ttl_sweeper_thread\u0022)\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/base.py, libs/checkpoint-sqlite/langgraph/store/sqlite/base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"8977e25d9a5b2c849ae228b21decdf190b089783fe54c1723950dc13a8ffd73c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(self, \u0022_ttl_sweeper_task\u0022) and self._ttl_sweeper_task is not None\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/aio.py, libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6df4224f126ab315b743aeaeb79c6c1de6054d6702a4ddf066c25786c78fcc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060install_command and langgraph_cli.config.has_disallowed_build_command_content( install_command )\u0060 appears character-identically in 2 files \u2014 libs/cli/langgraph_cli/cli.py, libs/cli/langgraph_cli/deploy.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/cli.py"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf0101f7cf66abe94ce82805035ee32eecb37269581b018a5ec1c73ca7e8cf4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_non_retryable_stream_error(err) or reconnect_attempts \u003E self._lifecycle_max_reconnect_attempts\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1915}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ac92bdb983ad76f8f7bb393c19ee1e725d30ef2401fd0148294080d929e293"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(conn, AsyncConnectionPool) and pipe is not None\u0060 appears character-identically in 3 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py, libs/checkpoint-postgres/langgraph/store/postgres/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8af2539d0238759e1240d4e1e5a0b43af71535fe9059d0ac9d8de1cad23ea31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(conn, ConnectionPool) and pipe is not None\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/shallow.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b5f178e2710c8349072f399745686d35ac36a959933befec909d0b34be07ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(input_hint, type) and get_type_hints(input_hint)\u0060 appears character-identically in 2 files \u2014 libs/langgraph/langgraph/graph/_branch.py, libs/langgraph/langgraph/graph/state.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b20b594901f22613880480882f29b27cf1d3c49f9419895b64c959de396c47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(result, _RunTerminal) and result.status == \u0022errored\u0022\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"507a67287e504529c932a3f229d2c6cda9c0a222cc41fc124e80b0ed64ce114d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.lower() == \u0022last-event-id\u0022 and value\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/http.py, libs/sdk-py/langgraph_sdk/_sync/http.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ae123b55e4cd2537226d3add68863e456df2f9cbd4c1ee1f7c2c1c8bf702bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(namespace) == len(scope) \u002B 1 and tuple(namespace[: len(scope)]) == scope\u0060 appears character-identically in 3 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py, libs/sdk-py/langgraph_sdk/stream/decoders.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e0198f5622967ea8a3b516b1ed0b8f67c256df90541e2d7222ccb8491a5a53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(ns_tuple) \u003E= desc_len and ns_tuple[:desc_len] == desc_path\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"721c6da3a7ff11b49c691609a2daa44275ea876c0a1b4ebda1d79e183f4d921b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(ns_tuple) \u003E= desc_len and ns_tuple[:desc_len] == handle.path\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b713be30185f1c1be37b24d73a8c2092d8e8cccedab245f1d00c847efb4c27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(seeded) == len(channels) or len(page) \u003C _DELTA_PAGE_SIZE\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfca4eda6f18607f8527efacba99ed3838c9efe82310f7e89bd4a90de849441f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(payload, dict) or \u0022id\u0022 not in payload\u0060 appears character-identically in 4 files \u2014 libs/sdk-py/langgraph_sdk/stream/transport/http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py, libs/sdk-py/langgraph_sdk/stream/transport/ws.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cda24bf9c8ff4e10dd9aae6486c89d7bd8a126eaf1c7fc66676a4baf1362ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._run_seen and not self._explicit_thread_id\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eed8e45c206f08cf93c4e5555b60f48a8c6d6f547b9e3e1745ca90777303a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._ttl_sweeper_thread or not self._ttl_sweeper_thread.is_alive()\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/base.py, libs/checkpoint-sqlite/langgraph/store/sqlite/base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36cab8e764d74afc9636254ab357719cad6900b451cb4914b8c1c9b93ac1b47"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self.subgraphs and len(ns) \u003E 0 and ns != self.parent_ns\u0060 appears character-identically in 2 files \u2014 libs/langgraph/langgraph/pregel/_messages.py, libs/langgraph/langgraph/pregel/_tools.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_messages.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c590a8973abcf6b935ea8d56b7cc2510006dc8a64741bdc199e924e0de38c16"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not state.get(\u0022next\u0022) and not state.get(\u0022tasks\u0022)\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1952}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8a1a9f8d647b1eebfd89ac9d16f7a1a93db39c77d7e505fc949f90d604de77"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060part is not None and isinstance(part.data, dict)\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/stream/transport/http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"570c2a311ed28248c29f67b5541fea20169b8d4778974cc7f3f4cb524d5a3f18"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060public is not None and public != \u0022subgraphs\u0022\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"871956831ef9043336f413e1fcbcd66695e67e74a0d819f5fec58ed4a420f173"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.status_code == 429 or r.status_code \u003E= 500\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/http.py, libs/sdk-py/langgraph_sdk/_sync/http.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfb21742769cd89cb947326ee7af8461d51b4da925e9267598900d54632b54a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060reconnect_cause is None and reconnect_path is not None and not run_ended\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/http.py, libs/sdk-py/langgraph_sdk/_sync/http.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ab4769b904546973952eae2796af93845c787e32bff5819e94e18a9d3e3bbc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved is not None and resolved.error is not None\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce39fef6d6d1b08c7a1a02365241e07389c08315fd0600d370ea1a48c1eba79b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060root_inbox is not None and item.get(\u0022method\u0022) == \u0022messages\u0022 and tuple(_event_namespace(params_field)) == self._scope\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":954}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9cfbb4acf058c80fa4d77a785ecd03ed123922b315ef92c8ed1d93d843ca89"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060run_done is not None and not run_done.done()\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad34724b7bf79b872ef3133a3cd50c92bc8dd9682c95dcdb3cdc4d850f1b3ccc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._cursor is None or seq \u003E self._cursor\u0060 appears character-identically in 3 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/stream/controller.py, libs/sdk-py/langgraph_sdk/stream/sync_controller.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c433c19e1dc9544c0dfeb97d54e839aba9d4139f06042b588cd44ff93897b1c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._explicit_thread_id and not self._run_seen\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1961}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd49aece914d5953db2cff0d56bf1f944780db55781095e6304286b70a81a65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._fanout_task is None or self._fanout_task.done()\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/stream/controller.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1618}}}],"partialFingerprints":{"codehealthFindingId/v1":"c196ac4f085cdcfdfde9354691870b7d85b00ffb9b672d7301b59c38f1d59535"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._lifecycle_cursor is None or seq \u003E self._lifecycle_cursor\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1868}}}],"partialFingerprints":{"codehealthFindingId/v1":"520df0e3f434e6c63eec83bffb051bd6a3c0428a0fca71987eea41f0949c3e17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._shared_stream is not None and self._shared_stream_filter is not None and filter_covers(self._shared_stream_filter, dict(candidate_filt\u2026\u0060 appears character-identically in 3 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/stream/controller.py, libs/sdk-py/langgraph_sdk/stream/sync_controller.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cded1c4d90eff30506e019e8d7c06bfb8a25cb5135c323eda2f4743a48c944"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._ttl_sweeper_task is None or self._ttl_sweeper_task.done()\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/aio.py, libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd346d14dde73f1c553bc06f49857b88626fdfab7a786a3b6c35642eff3cd095"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._ttl_sweeper_task is not None and not self._ttl_sweeper_task.done()\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/aio.py, libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"99bfc7c4d74f894187545fcf922378271fb2b3c58f51c4520cfd94f8461c025f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._ttl_sweeper_thread and self._ttl_sweeper_thread.is_alive()\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/base.py, libs/checkpoint-sqlite/langgraph/store/sqlite/base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f4db25cd34167b571d1ef9dd932864ec0c15a7386163bd1b0b7b7ed2b05012"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream_error_frame(event) or frame_error\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_async/stream.py, libs/sdk-py/langgraph_sdk/_sync/stream.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/stream.py"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7799272ff163bee1599a2aaa043bc68748c194e67c8b516d995c241d0f68f5ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream_path or f\u0022/threads/{_quote_path_param(thread_id)}/stream/events\u0022\u0060 appears character-identically in 4 files \u2014 libs/sdk-py/langgraph_sdk/stream/transport/http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_http.py, libs/sdk-py/langgraph_sdk/stream/transport/sync_ws.py, libs/sdk-py/langgraph_sdk/stream/transport/ws.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/stream/transport/http.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fe1af1c55502abb17d50ad5338644326cb52eae06f441e8f08f8a30929925f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sweep_interval_minutes or self.ttl_config.get(\u0022sweep_interval_minutes\u0022) or 5\u0060 appears character-identically in 4 files \u2014 libs/checkpoint-postgres/langgraph/store/postgres/aio.py, libs/checkpoint-postgres/langgraph/store/postgres/base.py, libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py, libs/checkpoint-sqlite/langgraph/store/sqlite/base.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"68145dc0e2bf54125595ea13827be24323a10f3afd83d4c86b22a511c71d681b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060thread is not None and thread.is_alive()\u0060 appears character-identically in 2 files \u2014 libs/sdk-py/langgraph_sdk/_sync/stream.py, libs/sdk-py/langgraph_sdk/stream/sync_controller.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"394ca8534ee14ed61d2c1a94578dc39d1447cfc34f8712d8e2444f7ec33e2228"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060v is None or isinstance(v, (str, int, float, bool))\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d35f5007f7d5fef5611c88c18866a42d5f120ea5ce4f40d2d57368b1f47e3f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060v[\u0022checkpoint\u0022][\u0022v\u0022] \u003C 4 and v[\u0022parent_checkpoint_id\u0022]\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a39f5029bab151206dd79dbf13c11973a5bd11cbdf39509521d31831423fd86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value[\u0022checkpoint\u0022][\u0022v\u0022] \u003C 4 and value[\u0022parent_checkpoint_id\u0022]\u0060 appears character-identically in 2 files \u2014 libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py, libs/checkpoint-postgres/langgraph/checkpoint/postgres/aio.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/checkpoint/postgres/__init__.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"605b4b8aab6d501112b06dee3dffa0280e59bd1c5189f30095f0659854dbd7fd"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060get_field_default\u0060 is public, takes a document from its caller (line 79) and hands it to \u0060_is_optional_type\u0060, which calls itself at line 21 (\u0060_is_optional_type\u0060) with a piece of \u0060type_\u0060 (and at line 30, line 33, line 36) \u2014 and nowhere in \u0060_is_optional_type\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_is_optional_type\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_fields.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc4d2aa7667a3793977a22f67e1df167111cc3d9360b7a4469e8962d4336a53"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060get_field_default\u0060 is public, takes a document from its caller (line 79) and hands it to \u0060_is_required_type\u0060, which calls itself at line 55 (\u0060_is_required_type\u0060) with a piece of \u0060type_\u0060 \u2014 and nowhere in \u0060_is_required_type\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060_is_required_type\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_fields.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8dcb9e91952c760bd95ce543b74caab44b188e0ccb297c4cc6b5fa8791f3b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"415eadc3f3d5aa7b841a62a9a06150456a3c9d0acb6be09218c4d72992d7b04b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8544713ad1fed80a5f960cbea80ab4b3b5f5cec2cc867fce1f10095824690ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01df5afa4d23a3da2c1b536b99f6248f20cd2b5757b1bae7df7fbd9867035d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"82884c5b0f06bee42ddcfef8c98b1e823a6d005705f3c63e846eaf5ebf97cff6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc407eb78baa2b859d92490a231234dd2b7d1bc2c937e096e351c9c8daf849b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaba6ff9a75efee588786e1c12f99b77561516fc4f58d0e54963be91a888fe69"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dad1c8cb877dd195a39f1886d47ed921b2a8205a234871f3e98e49e2ba2aa6a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/stream.py"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"d817c70c1066fddcb90da9720a9075cb66105eef4030a994b5dd9d1adbfbe4e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/_mux.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc610875e5b3bc9d39fe1d678277a515e384415d070df3acd80081ce7fb396e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/_mux.py"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"350058a2391cb1c2be8d7ada614ad9fd0c1f30fa63893b3e68f9bebf852c9922"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fc2ecefbc8db858355ba57f09a43f2b4d22e28bd2ee1854ef561c93accf9e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5cca5b4133806fc44d19877d49482be77dd4c05146fdd650677900668414ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c31e812f3a368180ba7d83eb4275babf0d2dfedc17a14d91a9952d3393852d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e9f632b77118594706b530997a3c25345104e26f45f05b923d9172fa4ad6c9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/stream/run_stream.py"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57f7cd30b2f381975027b1d96d509717f8b71c2cb666f5fa667fdf3e9e4edb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_call.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1b68cdc35dbac2a5d85388af645ee2deb3d3a5c75bb7761f47219632eeef64"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_executor.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c6db87e3f7b44b8871d426a6968fecbff4e5780148f1c772851821fbca0d7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_read.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"308da82c8dee10c8801a0f166e69d0de539839722e54d75181bac4aafadbb65b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/graph/_branch.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa9c96c291824e8ce5c7263143885289b2e69fcb1e9c4abcca63787d53b0d8d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/channels/binop.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"28834ce16ff6c2e8314354c39ce8f0c01e325ebc67828b13cd3e86a2fbbfd968"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"612a06565776b30652fdcd5667bf6cbf32f5abbedcad70ff3429cff6eeb930bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc4f54d9d12b8cee50c27c047e60c4571ae79819d0431c92c386c9e1ecbee5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/config.py"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"2393889ead3fad964806459deb3f81b2210860b098b1862768aaf3d93b005987"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/deploy.py"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32324db33da053825f697b2e67ab9e370f92e8df45c5066194dda947e5a078b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/cli/langgraph_cli/docker.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a64f620c74ce5b7cc0da9a73030ad87b99aede42eff58adff1eeea12dfafeb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. On a teardown path letting it propagate is not an option (throwing out of \u0060__del__()\u0060 masks the failure already in flight and abandons the rest of the cleanup), so make the swallow deliberate instead: narrow the catch to the exception this release can actually raise, and record it through whatever this codebase already uses to report problems \u2014 or, if it truly cannot matter, say why in a comment on the catch."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/cache/sqlite/__init__.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1f86e4dbaddfe2e64db96f0d4441a4484f27c87072a5f7778a29506d99ca89"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"676076de680eb71cdb6c9a028ee945e01d8ca194d9319deaf94b820b8b99c24a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"970453e3dd1482e9d0cf38d9d1cea3dd2b43df529ea58ebf6682b4a00192416f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"412e927dbfc96c30a1b8c9601642183412c8807af51a959e25dfc0c6d2089c05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c0764e769343b211d1d9710a8ff7f17f56563546b3c037d2b943bab1d0f249"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b834dcbd64302cdc7dcfda571e2cb2281557b81e62dee78e0515a34108e151"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c48b698e5ba1b7609f58dbfd59396ed472fbfd7d3d56675edb0e976faf0c484"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"7550652bdb502001a41693d6bd68fa159b9ce699ba1bb36d7841384416eead6d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/serde/jsonplus.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73030797a947c3837f89c3c400f91bd4d852311b4b4a1634adad66067a9e773"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 220 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a39595d2c7f7238c66e3d4407cab08348df655d859cc8c89bace731519559e01"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 230 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/errors.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec499c113aee7f37db39219097fe103fbd6813d4c6bd3f1fb17aa64d4b7df87b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 174 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_sync/http.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f49d1b6551fac70f564e4abd449707e10a9652cd0aeaef7a0c1d5f1694d323"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 173 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/sdk-py/langgraph_sdk/_async/http.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5d949c2a91583666c5b20f1874c96c83424aaa0ea77c8f4e4c17115765336b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 697 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"3361c4f27cc51439360fdb178ef7c06fe7efd07d40d52a29e65b0b50732620cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 846 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/pregel/_retry.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a80ba01c1738188ede4071fb9fa57f1472b566247c949cc782785cc032d4d25"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 283 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"9790d8509069a30ca0985b4f72c98654ea1d5f286e91b7e9f7375f9b0cfec7cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 299 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd2fcfabb5533797b75ed33747c7d097625d3c6ffc4cbece04f7ba80b3da161"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 540 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4c3f957d16b9635a806365483816a3026b36240ab9d28eaf32882c8fbae025"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 573 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/aio.py"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"75223039bad7470ae475f3f55a5126a265e58cfe31a2b0991c8ff07a7fb37c2e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 592 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6ec23229b8d58ff9758808d198d17591ae1000da603cffd253c627e0c414e4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 593 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.debug(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.debug(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b921d5106c73c4fa4a5e80537b4678d47025ae3e94351f0405382d53a9f932"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1176 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38522b7b819e42743c4d1c81f83b4135665cfdb8465a99e1972ac0c76a24f9a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1189 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bc0387a025b71da747671b3417fea5bceb92dc3b14b5213f34956da3928b15"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1397 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b08b5047f9b55cb00bca45cf34c17272cd74c0668876fec3137b23963008216"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1428 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2653d8cb97779c6137cdda1bb91949c794b1e58ef42ce70a7c3a4160cec4160"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 330 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7de39d9402327285995732fb2b8020b0f1c0304296ff10555f985e77b4f6194"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 346 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/aio.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea72537658702b7ca6c4ebb9a91776561a7c51859582a6603a443b71ba4ecdb4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 636 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.warning(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.warning(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcd6c7be20d76972d91df54f07eecec455c5585e5d105a88cf3615b49b7aa07"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 878 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"022a98a018ca3aaf140b42206a3442452f65e55ed733416b3126a0213dd4efe6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 891 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.info(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.info(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b3ed7ae1c95cd08038377df9dc7311189371539246c4d96fa010674f50bced"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1152 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint-postgres/langgraph/store/postgres/base.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f038666ed8908b27cb2fa0d4d6e68057b36c7dafbf19a965e5c101f0038b1b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 705 is handed an f-string as its message, so the logger receives one finished string \u2014 the values in it cannot be queried, filtered or aggregated as fields, every occurrence reads as a different message, and the string is built even when the record is filtered out. Pass the values beside a constant message instead: \u0060logger.error(\u0022order %s moved to %s\u0022, order_id, status)\u0060 with the standard library\u0027s \u0060logging\u0060, which keeps the message and its arguments apart on the record, or \u0060log.error(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/checkpoint/memory/__init__.py"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e3f093320528e1c56ca8c5d2afc91ebf13cfa4d634e7c137d66f6e5528fe3a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/cache/redis/__init__.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"01049a0113e3e4ff75444f9f6eb627f3c1f2ae2080ab121a49b1b9834b2945bd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_extract_from_obj\u0060 (in \u0060get_text_at_path\u0060) returns \u0060[]\u0060 when \u0060(ValueError, IndexError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/checkpoint/langgraph/store/base/embed.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca8a38bb0a31fbe8c341a88a53414a34f682c397881a7b740f32a00f83528195"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_safe_get_type_hints\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"libs/langgraph/langgraph/_internal/_serde.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a20d5c3c0c8abc50f583ae382d8152f4697dcafd78b3043f7b6eb22c2e1d567"}}],"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-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.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-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"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-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":55,"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."]}]}