{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","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-1059"],"owasp":"A02: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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"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":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"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":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"AnthropicHandlerMixin.handle_anthropic_messages (cyclomatic 373): AnthropicHandlerMixin.handle_anthropic_messages has cyclomatic complexity 373 (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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2227891e62ad970a3640012fd6fc27fb3091f3c21bd5d51c1a349d68b3fcfbf3"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_chat (cyclomatic 205): OpenAIHandlerMixin.handle_openai_chat has cyclomatic complexity 205 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3542}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5047790a08fd4d8c1a17a0b6567dc1be9b3508e656d9ca2acb2da8c9322c25"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter.apply (cyclomatic 192): ContentRouter.apply has cyclomatic complexity 192 (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":"headroom/transforms/content_router.py"},"region":{"startLine":6337}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6307f3108008bccb3c109085bdef7261667492c3ef2ee3f3705a06232f10a41"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_responses_ws (cyclomatic 178): OpenAIHandlerMixin.handle_openai_responses_ws has cyclomatic complexity 178 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7782}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c1ab627b28619720354eee57cf0ef30fd9b6a5ff8aaf353052b0ebc0e658e6"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_responses (cyclomatic 122): OpenAIHandlerMixin.handle_openai_responses has cyclomatic complexity 122 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6202}}}],"partialFingerprints":{"codehealthFindingId/v1":"de20e63ea1e47d280cb78af798e74de13d8d48aba560be2fe510c92516c06f51"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._ensure_proxy_unlocked (cyclomatic 121): wrap._ensure_proxy_unlocked has cyclomatic complexity 121 (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":"headroom/cli/wrap.py"},"region":{"startLine":5091}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98b781b17f31d0d84389863e8e1db853a521abd09cb279a673a0b9573c86669"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.proxy (cyclomatic 120): proxy.proxy has cyclomatic complexity 120 (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":"headroom/cli/proxy.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebeccff9d69d0d8cc012018fdef8351df849c0f7b1c5000b42b7ebc75673a2b"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin._compress_openai_responses_live_text_units_with_router (cyclomatic 117): OpenAIHandlerMixin._compress_openai_responses_live_text_units_with_router has cyclomatic complexity 117 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4706c95503a85fc201ee26a9c4a193223317bdc15c5e7b413c82573fdbf6babf"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.html.dashboard (cyclomatic 107): dashboard.html.dashboard has cyclomatic complexity 107 (threshold 15). Of this number, 102 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe13addaed3cdccb5fef3c7e11b43cdc3fd03083dc8d8eec547e777293235364"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiHandlerMixin.handle_gemini_generate_content (cyclomatic 95): GeminiHandlerMixin.handle_gemini_generate_content has cyclomatic complexity 95 (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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f546c6ba337931b2723c6256065e0d0bc0c1ab4a5ca362a9e842386d55ffff9"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._apply_strategy_to_content (cyclomatic 94): ContentRouter._apply_strategy_to_content has cyclomatic complexity 94 (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":"headroom/transforms/content_router.py"},"region":{"startLine":4408}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae78e292034afd679dd6bd557f2a0fcc7a9d528fd1aeacd8bc0703edc7da3a4a"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._process_content_blocks (cyclomatic 87): ContentRouter._process_content_blocks has cyclomatic complexity 87 (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":"headroom/transforms/content_router.py"},"region":{"startLine":7900}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d94936679b789dcb01c8fa2c576415a251155c6b2d0c0aed2445f74d750db5"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_compress (cyclomatic 83): OpenAIHandlerMixin.handle_compress has cyclomatic complexity 83 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":11139}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c949184891db82a4fdee23083c84096cac182ecf29a3dea23e43f2c819faa7"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap.claude (cyclomatic 67): wrap.claude has cyclomatic complexity 67 (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":"headroom/cli/wrap.py"},"region":{"startLine":6373}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf540fc5d3cc057a8f369f42c820dc514085d2fd1124033d7c3f11facc19be7"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend.stream_message (cyclomatic 66): LiteLLMBackend.stream_message has cyclomatic complexity 66 (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":"headroom/backends/litellm.py"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db071a7911b248089b3aeb1af166263fae306e6ba1346744dd4c7ed9d2977eb"}},{"ruleId":"D1","level":"warning","message":{"text":"KompressCompressor.compress_batch (cyclomatic 66): KompressCompressor.compress_batch has cyclomatic complexity 66 (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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b468436aed376106d56f8774570ae56d966f166221be38151014d3097ff55287"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::proxy::forward_http (cyclomatic 64): headroom_proxy::proxy::forward_http 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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"289b95fa5636661f993a17850d3db2b41dc99f35a3860487cac4bef6352b7180"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor._compress_function_ast (cyclomatic 60): CodeAwareCompressor._compress_function_ast has cyclomatic complexity 60 (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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec37bb2d9259b99c9a580beebeb6ca4334207840a0964a0675b657a2d0bb34f"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomProxy.startup (cyclomatic 56): HeadroomProxy.startup has cyclomatic complexity 56 (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":"headroom/proxy/server.py"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"447335a4d129a5cfee1dd39ee24298f93649039e7876f99edb1ae901994be903"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway_turn.handle_compress_response (cyclomatic 55): gateway_turn.handle_compress_response has cyclomatic complexity 55 (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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e58b9ba51a345ff2d6b8358ec29ebc2630d8505fad60fab879bbaf4c254a83"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic_wire._response_from_events (cyclomatic 54): anthropic_wire._response_from_events has cyclomatic complexity 54 (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":"headroom/proxy/anthropic_wire.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fda9455ccc6f54d6610560dfba5c909c6ceacac2473f9693bf2f97cff9046ec"}},{"ruleId":"D1","level":"warning","message":{"text":"learn.learn (cyclomatic 52): learn.learn has cyclomatic complexity 52 (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":"headroom/cli/learn.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"840958a5eb36b22e35fd7751a9e37e7d49f0facef82ccd1c1ecc5c481d4af02a"}},{"ruleId":"D1","level":"warning","message":{"text":"PrometheusMetrics.export (cyclomatic 52): PrometheusMetrics.export has cyclomatic complexity 52 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b29789b10e4f0272c01dac4b26a954735df0f94ef9b1fad68f2b17d43dc67d"}},{"ruleId":"D1","level":"warning","message":{"text":"format.vercelToOpenAI (cyclomatic 51): format.vercelToOpenAI has cyclomatic complexity 51 (threshold 15). Of this number, 46 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"75a9bb0b8b38077a7d465055d0999bb85e42e483a5a5cdc1d348f27a8511fcec"}},{"ruleId":"D1","level":"warning","message":{"text":"KompressCompressor.compress (cyclomatic 50): KompressCompressor.compress has cyclomatic complexity 50 (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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"0734a52c1ab2102631e7ee3838f7649ab340a051ec6e8e1182b007dd30ae0d90"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomProxy.__init__ (cyclomatic 49): HeadroomProxy.__init__ has cyclomatic complexity 49 (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":"headroom/proxy/server.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b044bf132cde6ad1a763cfbeec5b9a132d40411eea2103e74a0da5e385e41f3"}},{"ruleId":"D1","level":"warning","message":{"text":"reads._audit_session (cyclomatic 47): reads._audit_session has cyclomatic complexity 47 (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":"headroom/audit/reads.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3aceca7938730c91776d3ce50b99ae622dd19195982e5b2aa20c9aaeb48496d"}},{"ruleId":"D1","level":"warning","message":{"text":"cost.build_prefix_cache_stats (cyclomatic 46): cost.build_prefix_cache_stats has cyclomatic complexity 46 (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":"headroom/proxy/cost.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"9649ef5162736cb4edfc885e67f97061bcfd311d6bf43ae52a2e904cf2961af8"}},{"ruleId":"D1","level":"warning","message":{"text":"PrometheusMetrics.record_request (cyclomatic 45): PrometheusMetrics.record_request has cyclomatic complexity 45 (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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a53959cc707310237ae5de425f10ffc060562e1a737126c7332685792cd9a5"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.relocate_system_messages_to_top_level (cyclomatic 44): helpers.relocate_system_messages_to_top_level 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":"headroom/proxy/helpers.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"696207a2802cbe9148c0f7ce43c5bf39a246d94a5cbb0316f6692bad78ab8184"}},{"ruleId":"D1","level":"warning","message":{"text":"format.detectFormat (cyclomatic 44): format.detectFormat 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e909c237b601bfee5966c06743f6c468ba1f236ca5778f57743fbac31ac3d881"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONStructureHandler._tokenize_json (cyclomatic 43): JSONStructureHandler._tokenize_json 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":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7343fe180d4863fe44feb140fb52198f3ac1a106086fad07733a00e2fe72202"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._try_ml_compressor (cyclomatic 43): ContentRouter._try_ml_compressor 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":"headroom/transforms/content_router.py"},"region":{"startLine":5181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1228db3c348eec956f1276e61f678a546c99ba8e2a9132facffb369d8bc1c082"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicHandlerMixin.handle_anthropic_batch_create (cyclomatic 42): AnthropicHandlerMixin.handle_anthropic_batch_create has cyclomatic complexity 42 (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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6236}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c66c330a6e800583cb7c316dac7dc8851bfa0f2ab1f01d19bcd6d699a79081"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_passthrough (cyclomatic 42): OpenAIHandlerMixin.handle_passthrough has cyclomatic complexity 42 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be41e35eeee22a1c2343a2318ea3583858de3b00b24342df12ef4086b6eabd8"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingMixin._continue_memory_tool_stream (cyclomatic 42): StreamingMixin._continue_memory_tool_stream has cyclomatic complexity 42 (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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d69eb95a7238b8823ecbdfbb20229e50059aa36d0ae2827c51a066ad4fd75ab"}},{"ruleId":"D1","level":"warning","message":{"text":"session._fold_extra (cyclomatic 42): session._fold_extra has cyclomatic complexity 42 (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":"headroom/telemetry/session.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57260fd0e95d7641f595f7e6cfdcf7f595824df9064ec6f7bd0d38de43d6e00"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._compress_block_content (cyclomatic 42): ContentRouter._compress_block_content has cyclomatic complexity 42 (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":"headroom/transforms/content_router.py"},"region":{"startLine":8392}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf3c35bdff65919a4361de6629c69a66d741691d6a48e8153fcd2e4563e0f12f"}},{"ruleId":"D1","level":"warning","message":{"text":"Ctx::compress_function_ast (cyclomatic 42): Ctx::compress_function_ast has cyclomatic complexity 42 (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"1598abb8f1dbfabc3742a72edd066a9d6f7c0907a3b22dcd7719f70d0c93f6e7"}},{"ruleId":"D1","level":"warning","message":{"text":"maturation.simulate_maturation (cyclomatic 41): maturation.simulate_maturation 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":"headroom/audit/maturation.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1681079e6a7717926b2f372b9f890c5c2bb1a3c8f53fb209bb9738080c8d68"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap.openclaw (cyclomatic 41): wrap.openclaw 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":"headroom/cli/wrap.py"},"region":{"startLine":8699}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5d72b9322655f80ecd61fa6d93c4d15eff7c6522ef289545c362c5262e8cab"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.parse_message_to_blocks (cyclomatic 41): parser.parse_message_to_blocks 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":"headroom/parser.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d0397f110673afb07a758cba09eec2b44e80c4727ecad1d2ccac5be820a0e5"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.enforce_cache_breakpoint_budget (cyclomatic 41): helpers.enforce_cache_breakpoint_budget 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":"headroom/proxy/helpers.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6a84c54a88e6fadc3d16b1aa2ede89c755073bbd0b38efe32ccdbdf34e2101"}},{"ruleId":"D1","level":"warning","message":{"text":"format.openAIToVercel (cyclomatic 39): format.openAIToVercel has cyclomatic complexity 39 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"335f034bf90357b819f7943ac33f9d96cc3d5aacadde291628d92d036b848da7"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchHandlerMixin.handle_google_batch_create (cyclomatic 38): BatchHandlerMixin.handle_google_batch_create 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"802faa7e87bd8bd5580b165f7addfcebf20ee28ae9f9e6cfba0a6151dc4aa444"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingMixin._stream_response_inner (cyclomatic 38): StreamingMixin._stream_response_inner 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fa02b7189f2f7f10bb8beb30dbfb8586e11365a5078920b5b590f2ca793855"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.strip_unsupported_tool_search_blocks (cyclomatic 38): helpers.strip_unsupported_tool_search_blocks 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":"headroom/proxy/helpers.py"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"19931749008a6cbb8eb2611ff3a4add1e25e632d8908dead05b131db1a0bb02e"}},{"ruleId":"D1","level":"warning","message":{"text":"learn._run_verbosity (cyclomatic 37): learn._run_verbosity 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":"headroom/cli/learn.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9c07bd0088490ac568a673b97df319b00a933a8d08852babaccd3d215dba69"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin._compress_openai_responses_payload (cyclomatic 37): OpenAIHandlerMixin._compress_openai_responses_payload 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3094}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10b56e16c9db409c3c18f8293b291403d7b037aabd7c4e58bc87f41f5352f9a"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingMixin._finalize_stream_response (cyclomatic 37): StreamingMixin._finalize_stream_response 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6734b231ce5187f32ccff5b0d0c1a92079592664d1c3b1148d46666adb354b"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend.send_openai_message (cyclomatic 36): LiteLLMBackend.send_openai_message has cyclomatic complexity 36 (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":"headroom/backends/litellm.py"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df2aaed4d60e0c6780cd6245787b4a4c4db1e46a5235aadebd14036ca568da0"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._start_proxy (cyclomatic 36): wrap._start_proxy has cyclomatic complexity 36 (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":"headroom/cli/wrap.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae982528f7c5078a77ea353ebab77995ea83f53b9b6c970054ea88ff97c333e6"}},{"ruleId":"D1","level":"warning","message":{"text":"server._build_agent_usage_summary (cyclomatic 36): server._build_agent_usage_summary 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":"headroom/proxy/server.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"da49bee24505859023032daa47ec89a8aaa055f6ba55c7c4ef2d630e4c3784e9"}},{"ruleId":"D1","level":"warning","message":{"text":"session._fold (cyclomatic 36): session._fold has cyclomatic complexity 36 (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":"headroom/telemetry/session.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b7b718d2039521e7e04556892888b5b02ffbaf50c315a2d5cb9f41b0e1efb9b"}},{"ruleId":"D1","level":"warning","message":{"text":"content_detector._try_detect_structured_config (cyclomatic 36): content_detector._try_detect_structured_config 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":"headroom/transforms/content_detector.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"a743481ea14898ce1cca59afa97f64ff7684566f1bef742f80c528a1583c465c"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAnalyzer::analyze_crushability (cyclomatic 36): SmartAnalyzer::analyze_crushability 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"323f1234b5ed72039869227725ebbcf53344e69f5cf9ec1d29b3bbe16d9ec928"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend._convert_messages_for_litellm (cyclomatic 35): LiteLLMBackend._convert_messages_for_litellm has cyclomatic complexity 35 (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":"headroom/backends/litellm.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c0b62475d13d990f8a477cbfc58ae72581d4d947a5af52d9e1f8e67c3f6b35"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap.copilot (cyclomatic 35): wrap.copilot has cyclomatic complexity 35 (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":"headroom/cli/wrap.py"},"region":{"startLine":7056}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aaf293de18c519d9f359c936d54b16368d71d417d5758b15fd48d694d506a89"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseTokenizer._count_content_parts (cyclomatic 35): BaseTokenizer._count_content_parts has cyclomatic complexity 35 (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":"headroom/tokenizers/base.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"338fb56badbc4057ef0babf1f8565de2e7d1f9e5881422c34f333bf6025b92d7"}},{"ruleId":"D1","level":"warning","message":{"text":"TransformPipeline.apply (cyclomatic 35): TransformPipeline.apply has cyclomatic complexity 35 (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":"headroom/transforms/pipeline.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"c066fa91e00af009fd462f2ac1e638bc26400401da4562232555a22f56dc8e74"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::proxy::run_sse_state_machine (cyclomatic 35): headroom_proxy::proxy::run_sse_state_machine has cyclomatic complexity 35 (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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"157cff629fbc4c6d151b9af9d97a7ec51ec318df061fe79eaf4d878d55e418aa"}},{"ruleId":"D1","level":"warning","message":{"text":"TelemetryCollector._create_field_distribution (cyclomatic 34): TelemetryCollector._create_field_distribution 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":"headroom/telemetry/collector.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace6a9198ec8176b1d38781079aaf7ffe57021652816df7defed983d42d1ef3"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolSignature.from_items (cyclomatic 34): ToolSignature.from_items 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":"headroom/telemetry/models.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41cf918f7588bd292e8611347a547ce44f2750c0274778865c3c7d540270365"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor._compress_class_ast (cyclomatic 34): CodeAwareCompressor._compress_class_ast 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"decce9b6c7e8f655a9a4b7f967f44ba18425aa20a4419a1e6e2600b309c385db"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::parse_diff (cyclomatic 34): headroom_core::transforms::diff_compressor::parse_diff 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"913d54659460c3afcc3cbf98fcb29457401c68098ed933efd434b2df860ba771"}},{"ruleId":"D1","level":"warning","message":{"text":"planner.build_manifest (cyclomatic 33): planner.build_manifest has cyclomatic complexity 33 (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":"headroom/install/planner.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1fba11725e92e4b77c43e847c26176b99c67091a1f4c6b1da3cedb3253d162"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.parse_messages (cyclomatic 33): parser.parse_messages has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/parser.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaebc28ae6cbd66a08c8c14d2164a57454008a445910231902f20c6a28fae88"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolIntelligenceNetwork._merge_patterns (cyclomatic 33): ToolIntelligenceNetwork._merge_patterns has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/telemetry/toin.py"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"1892b6e1ebecb088e6ef83882593ab34c20cea52b7bf431c458c66079347a38c"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._cross_turn_dedup_messages (cyclomatic 33): ContentRouter._cross_turn_dedup_messages has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/content_router.py"},"region":{"startLine":7753}}}],"partialFingerprints":{"codehealthFindingId/v1":"404fe34011fbcb9d6b8f02fbdbab71744e7ab6dee1eabeed85c680d65c575386"}},{"ruleId":"D1","level":"warning","message":{"text":"SessionTrackerStore.resolve_tracker (cyclomatic 32): SessionTrackerStore.resolve_tracker 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1871f75a0bc8ba4e50a54471788646aa77b6934724b638731db60b5671a762c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteMemoryStore._build_query_conditions (cyclomatic 32): SQLiteMemoryStore._build_query_conditions 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":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e625b52fdc896cead687cbea54b883de91237869adac766fc18b3bd80e13a1c4"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingMixin._parse_sse_usage_from_buffer (cyclomatic 32): StreamingMixin._parse_sse_usage_from_buffer 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94afa6ebedf35e6a91ec46ba82c429b58694a053137b73de4b1015b84ca0845"}},{"ruleId":"D1","level":"warning","message":{"text":"outcome.emit_request_outcome (cyclomatic 32): outcome.emit_request_outcome has cyclomatic complexity 32 (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":"headroom/proxy/outcome.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9548d7814d06bd7c736f8e3e5cd06a5a60e3eb06cf9bd7a6b789aae263b87fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"settings_store._coerce (cyclomatic 32): settings_store._coerce 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":"headroom/settings_store.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74879716fb40ac183934540784ea56918bee2358e1b210e4fc95af762585975"}},{"ruleId":"D1","level":"warning","message":{"text":"LogCompressor::select_lines (cyclomatic 32): LogCompressor::select_lines 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d980121c8eb8d3ad65dc54a680954061bfede37dd084c62f43014145ef952ce"}},{"ruleId":"D1","level":"warning","message":{"text":"maturation.simulate_codex_maturation (cyclomatic 31): maturation.simulate_codex_maturation has cyclomatic complexity 31 (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":"headroom/audit/maturation.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"af327db8a5d762b4c3ecc9c1bce7b41d4918d7255166843b88e2f90b7729169f"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyLLMBackend.stream_message (cyclomatic 31): AnyLLMBackend.stream_message has cyclomatic complexity 31 (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":"headroom/backends/anyllm.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e6d57011c44c64f1f80830527b8e72e71b168da84d1021ef40d8af169823e0"}},{"ruleId":"D1","level":"warning","message":{"text":"prefix_tracker.normalize_message_cache_control (cyclomatic 31): prefix_tracker.normalize_message_cache_control has cyclomatic complexity 31 (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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"23869c330490f69c5d88fd89972352fce4bf6d0080dfe96819aa3d113e14aadb"}},{"ruleId":"D1","level":"warning","message":{"text":"install._apply_manifest (cyclomatic 31): install._apply_manifest has cyclomatic complexity 31 (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":"headroom/cli/install.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40ddbf84db7adaf5a5144b408055c75cb56becd8603b0fcbcc37194b3b441ca"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap.opencode (cyclomatic 31): wrap.opencode has cyclomatic complexity 31 (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":"headroom/cli/wrap.py"},"region":{"startLine":8953}}}],"partialFingerprints":{"codehealthFindingId/v1":"9004cb3252409dca2bb2e4ad08190dc11cc2ff53ee171ca737a49dcc4a9f1d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageCompressor._apply_compression (cyclomatic 30): ImageCompressor._apply_compression 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":"headroom/image/compressor.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd61d46a0d80ca8bc352e6e4d8fde45678540d5ae09095626c8b2d584c9f6b58"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolIntelligenceNetwork.record_retrieval (cyclomatic 30): ToolIntelligenceNetwork.record_retrieval 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":"headroom/telemetry/toin.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6480db46e74424aca4e2d288b24b287a7f6528035da305938d241374d9d3a98"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.html.renderChart (cyclomatic 30): dashboard.html.renderChart has cyclomatic complexity 30 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 12 belong to 5 function items inside it that branch. 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":"crates/headroom-proxy/src/observability/dashboard.html"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93ff1f62989f488bc4b687671be1ccf529713386ffa509c0f11750c060c8fc3"}},{"ruleId":"D1","level":"warning","message":{"text":"worker.clean (cyclomatic 30): worker.clean 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":"deploy/beacon/worker.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f2c2440e41a83dae9729896edd19c726681d50c6233bb99f47d7d66a9fa461"}},{"ruleId":"D1","level":"warning","message":{"text":"DirectMem0Adapter._save_memory_internal (cyclomatic 29): DirectMem0Adapter._save_memory_internal 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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e432c91e1309ff1190c63779b5fcb25c766a0df4e3708c2134db70b63574c85"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway_responses.build_view (cyclomatic 29): gateway_responses.build_view 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":"headroom/proxy/gateway_responses.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e987dabe53eca32eabaea012d93126a28b5eae96145d892b212ff220db95e569"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.strip_unsupported_ccr_retrieve_blocks (cyclomatic 29): helpers.strip_unsupported_ccr_retrieve_blocks 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":"headroom/proxy/helpers.py"},"region":{"startLine":4589}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d52bd7318eafe6d6fef12e8ec32cde4ca01155efb000e8e4e632d842fe8b09"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryHandler.search_and_format_context (cyclomatic 29): MemoryHandler.search_and_format_context 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d80c3a17a625dbb18641f27c2a9efb6a9d6258ca81ffa2ffdcee0b6382a506"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend.send_message (cyclomatic 28): LiteLLMBackend.send_message 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":"headroom/backends/litellm.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"db75e674d6ebace30a3082fe45093a320157e3052427ad1728bd5296c0d8c7a2"}},{"ruleId":"D1","level":"warning","message":{"text":"Mem0Backend.query (cyclomatic 28): Mem0Backend.query 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":"headroom/memory/backends/mem0.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"147f97e8721505c41023953c2dfc4bfd8730d97a888aa2b125d2f6d28be950b9"}},{"ruleId":"D1","level":"warning","message":{"text":"parser.find_tool_units (cyclomatic 28): parser.find_tool_units 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":"headroom/parser.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b1723e310e3e3728aa30a1abbd1e2821b7bb15984eb32cdfe23ca9c89434f9"}},{"ruleId":"D1","level":"warning","message":{"text":"cost.build_session_summary (cyclomatic 28): cost.build_session_summary 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":"headroom/proxy/cost.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c09e4cc72e763651d04a381075f726e386a685a01657a33ddb562b5fa0b95cb"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin._ws_http_fallback (cyclomatic 28): OpenAIHandlerMixin._ws_http_fallback 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10793}}}],"partialFingerprints":{"codehealthFindingId/v1":"9988bb804cafd38e6e90fed89ae0488a935e5b7fb77d3d2cdb0ca0b385173764"}},{"ruleId":"D1","level":"warning","message":{"text":"base.apply_to_messages (cyclomatic 28): base.apply_to_messages 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":"headroom/proxy/interceptors/base.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"d490f969107b30bf6204e5970c1c8f24a831bee86cba9ab5f140462bb67a09d7"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor.compress (cyclomatic 28): CodeAwareCompressor.compress 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba029cfd69b340e45e5b8461dc2bd25d1a69e9579c94f0aff0977f4a205a4e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"code_compressor.detect_language (cyclomatic 28): code_compressor.detect_language 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"4605dae9fbb39a11b1784bf671b1c3210b08b90e27f62eb3f3525cc41e4a9906"}},{"ruleId":"D1","level":"warning","message":{"text":"format.anthropicToOpenAI (cyclomatic 28): format.anthropicToOpenAI has cyclomatic complexity 28 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 10 belong to 7 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd02a75edcc0398817ab1280125fe7919ae702180b947194bf96b6a4d4907a6"}},{"ruleId":"D1","level":"warning","message":{"text":"format.openAIToGemini (cyclomatic 28): format.openAIToGemini has cyclomatic complexity 28 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"494ca3b2b2990cff2237dd48a24383a0b2aff75a2ecfe3b83c007f062ed935f2"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryToolStreamFilter._route (cyclomatic 27): MemoryToolStreamFilter._route 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":"headroom/proxy/memory_tool_stream.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"43bb8c98c003d59d8e221ef65104971242f32900b9971ca4bf371af022f49a83"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming (cyclomatic 27): headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming 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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d67b7456503da3856f2d9657673ad42ffe8463a181cf04bb5a69529f0be6778"}},{"ruleId":"D1","level":"warning","message":{"text":"format.vercelMediaImageUrl (cyclomatic 27): format.vercelMediaImageUrl has cyclomatic complexity 27 (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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe83d68cc5c3ddd4555031368116e52ce056b741ae1ac56e75960e11cbb4d55a"}},{"ruleId":"D1","level":"warning","message":{"text":"format.geminiToOpenAI (cyclomatic 27): format.geminiToOpenAI has cyclomatic complexity 27 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 9 belong to 6 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd749da35930f790e2731e03eb3c945949f0effb19040b5bdd3a70a2fc904f43"}},{"ruleId":"D1","level":"warning","message":{"text":"claude_analysis_ttl.main (cyclomatic 26): claude_analysis_ttl.main has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"claude_analysis_ttl.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0321861d605d3324dbf09cf8aae5a3c8a315b71ae595e97ee8070eab0573a3"}},{"ruleId":"D1","level":"warning","message":{"text":"prefix_tracker.overlay_cached_prefix (cyclomatic 26): prefix_tracker.overlay_cached_prefix has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/prefix_tracker.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c20c15293c437498d8b134d017e9d82dee58b160198188ee55742f62a0268d"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingCCRHandler._reconstruct_openai_response (cyclomatic 26): StreamingCCRHandler._reconstruct_openai_response has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/ccr/response_handler.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff12dd34beb3a78c8102bda48deb1e2cbcef130f0f7af3dfd341075905780880"}},{"ruleId":"D1","level":"warning","message":{"text":"traffic_learner._load_persisted_patterns_from_sqlite (cyclomatic 26): traffic_learner._load_persisted_patterns_from_sqlite has cyclomatic complexity 26 (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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"3716bbfe8032e564ee336c7edb960f5d9e14bc4845fad5cea7e60a8c1efd6944"}},{"ruleId":"D1","level":"warning","message":{"text":"config_toml.root_assignment_lines (cyclomatic 26): config_toml.root_assignment_lines has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/codex/config_toml.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"a777f34f6c9f58232b7355d702dc7097dd707b6c778ee02a3c05c4049f7eaef5"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingMixin._record_ccr_feedback_from_openai_sse (cyclomatic 26): StreamingMixin._record_ccr_feedback_from_openai_sse has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"491baa4999ccfb9a5c27f88bfc8b4ac3590a97f42dceea223456e155dd47c6ca"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::vertex::raw_predict::forward_vertex_request (cyclomatic 26): headroom_proxy::vertex::raw_predict::forward_vertex_request has cyclomatic complexity 26 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/vertex/raw_predict.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6814e70f74bfdb42ca3439dbfa5928a756679aee5c83f7a0016529e627c228c"}},{"ruleId":"D1","level":"warning","message":{"text":"CompressionStore._evict_if_needed (cyclomatic 25): CompressionStore._evict_if_needed 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":"headroom/cache/compression_store.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb1d17ef9b8b16ffa28103dbc7979978eb884986d076eb78c877c273841bc00"}},{"ruleId":"D1","level":"warning","message":{"text":"update.safe_update (cyclomatic 25): update.safe_update has cyclomatic complexity 25 (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":"headroom/cli/update.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b74bc8e0f77d3c23207770e70f5dd79f135df18a9ae4f63d64dcd290573485"}},{"ruleId":"D1","level":"warning","message":{"text":"compress.compress (cyclomatic 25): compress.compress 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":"headroom/compress.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d82ae1ca641245bb5d6376931795e77aeb915955542faa6d0b59fba771cdf6"}},{"ruleId":"D1","level":"warning","message":{"text":"CostTracker.stats (cyclomatic 25): CostTracker.stats 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":"headroom/proxy/cost.py"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb7f08329f17197264f842135301dd8b0cc2035de8287677643b73e8c378d47"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway_turn._wire_provider_from_shape (cyclomatic 25): gateway_turn._wire_provider_from_shape 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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c284a4c8326ba717ba6557e5d6bd138edf391ad3f3d7b791b48ddf03e56afa"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicHandlerMixin._append_proactive_expansion_after_cached_prefix (cyclomatic 25): AnthropicHandlerMixin._append_proactive_expansion_after_cached_prefix 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"18a3cbd3f9a298690b6db0bea873692ecbc2b20082e459a753e25382be95e2eb"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiHandlerMixin.handle_gemini_count_tokens (cyclomatic 25): GeminiHandlerMixin.handle_gemini_count_tokens 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"042b5a96ed24c59a94ddf4a93d004683125b8c3f4c963043e3ea0c999bc027f8"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.apply_session_sticky_memory_tools (cyclomatic 25): helpers.apply_session_sticky_memory_tools 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":"headroom/proxy/helpers.py"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe24e1362168ee3bdd81dfbaf0acfa19f1bb4e4401e19283e05b0c1c5ff24c6a"}},{"ruleId":"D1","level":"warning","message":{"text":"savings._compute (cyclomatic 25): savings._compute 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":"headroom/proxy/savings.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"901f5765c860bd2ac6f3a00a6c9e2c5e17d2c6a25eba9aa5059ffe1ff240be7d"}},{"ruleId":"D1","level":"warning","message":{"text":"TiktokenCounter.count_messages (cyclomatic 25): TiktokenCounter.count_messages 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":"headroom/tokenizers/tiktoken_counter.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8458515931b22a84dd752c418f99adc2386e8bced8b364c334e58a0c05bf1afc"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCrusher::process_value_with_hook (cyclomatic 25): SmartCrusher::process_value_with_hook 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"4404fb4c3cb0feb62817bdbfe656c0bb823c016bff1adc4693792a30ca5fc1a1"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::search_compressor::scan_marker (cyclomatic 25): headroom_core::transforms::search_compressor::scan_marker 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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"de685b29d650c8525985d774f066d3489c80d22286aa79a3c423b049b5a8abc1"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request (cyclomatic 25): headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request 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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e6d5d8127e1ab5668c2c9f35460056439b8f4d2fbf38ad7dedc30178d104dd"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomClient._create (cyclomatic 24): HeadroomClient._create 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":"headroom/client.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dbebe9f3a3d2d1c0b5abe3d6dab7b06a8f5886a33966a81f2f62123f96c5a5"}},{"ruleId":"D1","level":"warning","message":{"text":"supervisors.install_supervisor (cyclomatic 24): supervisors.install_supervisor 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":"headroom/install/supervisors.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1394fb138169cfdc0ffcd3f9d21af9cafa0b8925dcf32dc189e8df0a74cdee4"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiHandlerMixin.handle_google_cloudcode_stream (cyclomatic 24): GeminiHandlerMixin.handle_google_cloudcode_stream 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ed79ea3a3439f60e3a35b12e8befdd66b18eb4790420d4f030ec9dc4a5f1a4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_compress_usage (cyclomatic 24): OpenAIHandlerMixin.handle_compress_usage has cyclomatic complexity 24 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":11908}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b164c459eebced2a17d2f8df2372700380bcf0943f74a344ff1c20937e5b35"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomProxy._retry_request (cyclomatic 24): HeadroomProxy._retry_request 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":"headroom/proxy/server.py"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d9d0b6a731315ab1c3f500e7289a6b099edd33e8d4711189738739810af4fa"}},{"ruleId":"D1","level":"warning","message":{"text":"savings_ledger.record_savings_event (cyclomatic 24): savings_ledger.record_savings_event 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":"headroom/savings_ledger.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd53898ed0b4489703cc8951d69e416a5a1b2ce020f51bf69182ae708ae9be2"}},{"ruleId":"D1","level":"warning","message":{"text":"compaction_codec.factor_values (cyclomatic 24): compaction_codec.factor_values 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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"287a3e39f72797ad4fc7c9f240154741d61b403d687cbba3ac1a2827534c19d9"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadMaturationManager._scan_activity (cyclomatic 24): ReadMaturationManager._scan_activity 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":"headroom/transforms/read_maturation.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9506a87a26429047b1d581cd28c2e086927f3b9d92b628dfa80ce655d9e13b4c"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime-proof.run_case (cyclomatic 24): runtime-proof.run_case has cyclomatic complexity 24 (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":"plugins/opencode/scripts/runtime-proof.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6209ef099e39ded972064cadac1fc9a00971adcbc30a7f15018443a0c1dd9a0"}},{"ruleId":"D1","level":"warning","message":{"text":"register.register (cyclomatic 24): register.register has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 184, 259, 296, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1784fdfb781cc9cb90068a6ed19a59b5ea9e5746d8fe770ce98982fb7486e18"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedSessions.fetch (cyclomatic 23): SharedSessions.fetch has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/shared_sessions.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48a73f47d8b73caa28f230449daed70062900f74930239276858c882482b3dd"}},{"ruleId":"D1","level":"warning","message":{"text":"tool_calls.extract_tool_calls (cyclomatic 23): tool_calls.extract_tool_calls has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/ccr/tool_calls.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f48ba69416c0ba62484c3d396b1a9e6e32bb69d908ca5454708c73dc261113"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._remove_claude_managed_hooks (cyclomatic 23): wrap._remove_claude_managed_hooks has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"1425cefc40d2154381d4839444cb806c1bc9ccba0c6711b4e0b32316b1835f49"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._ensure_serena_dashboard_disabled (cyclomatic 23): wrap._ensure_serena_dashboard_disabled has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d19367d1406d9667b400763a60bd17d8bcf99068a17c0dd3fad1da1aa5642d6"}},{"ruleId":"D1","level":"warning","message":{"text":"analyzer._call_claude_cli_streaming (cyclomatic 23): analyzer._call_claude_cli_streaming has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/analyzer.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d52f8ce2cad796bdc197890d0bbcd2262a47b82d6c14fd0f36497e02a1fbc4"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodePlugin._scan_session_v2 (cyclomatic 23): OpenCodePlugin._scan_session_v2 has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/plugins/opencode.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d27d4acf1ca50fc2f1991a8e278b3d7928752f074000ec4ebc138e9e6e0b21c"}},{"ruleId":"D1","level":"warning","message":{"text":"verbosity._parse_session (cyclomatic 23): verbosity._parse_session has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/verbosity.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"9559cac73c7404c754977f2c0a4995b2c0de46c33e7b62f8da7daa99d75346d6"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalBackend.save_memory (cyclomatic 23): LocalBackend.save_memory has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/backends/local.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3659145b546114f24f3ef3d30c8223e6b99419d866c562ec16fe36b404cff4"}},{"ruleId":"D1","level":"warning","message":{"text":"counterfactual.resolve_rates (cyclomatic 23): counterfactual.resolve_rates has cyclomatic complexity 23 (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":"headroom/pricing/counterfactual.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"194f0db34dd76a44345352b6b8a3930121e6a35ec6fa2bb06ba553d13481764a"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic_wire._render_known_response (cyclomatic 23): anthropic_wire._render_known_response has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/anthropic_wire.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d018dab50f1a835cb913e63919815f928f4387ca442f02cc63ec4d1edc69a9"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.count_cache_breakpoints (cyclomatic 23): helpers.count_cache_breakpoints has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/helpers.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58cf14fbcbaa8d482e76ac93cd8d083fadba036e7ca18a2bf9b25e79e63e9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.walk_cache_control (cyclomatic 23): helpers.walk_cache_control has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/helpers.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0b6f7faf325427918913729f1be9f3150baba93ac82c23bd7e63acfca43ef6b"}},{"ruleId":"D1","level":"warning","message":{"text":"lossless_compaction.compact_lossless (cyclomatic 23): lossless_compaction.compact_lossless has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead6082b9bc8732d56f38e98a95c77d48f0b8aa2d9de264f9e0c743977725483"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCrusher.apply (cyclomatic 23): SmartCrusher.apply has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/smart_crusher.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca9c92688e6599246527ed14d7cef95b21b9188b76f1c7e706ca7133d8af194"}},{"ruleId":"D1","level":"warning","message":{"text":"StackTraceDetector::terminates (cyclomatic 23): StackTraceDetector::terminates has cyclomatic complexity 23 (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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb12332951bf5ba38c64a50c79be23d11dfdf190c4715b4078892585ad97215"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCrusher::crush_mixed_array (cyclomatic 23): SmartCrusher::crush_mixed_array has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2baa3dbff30694dd9fdf79fd82ff8a67b4280c013f4f411841757230cdcb0f4"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::code_compressor::detect_language (cyclomatic 23): headroom_core::transforms::code_compressor::detect_language has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ebfa7e4b7da061c0586e262f3924ab85e03c8ccdd40df0c2bb09fb2446e8d8"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::reduce_context (cyclomatic 23): headroom_core::transforms::diff_compressor::reduce_context has cyclomatic complexity 23 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ba10529bf9fdc3f41f0f7d4f5df84e3f54b67f7cff3bd0c9338f8a0cb50d32"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::live_zone::compress_openai_responses_live_zone (cyclomatic 23): headroom_core::transforms::live_zone::compress_openai_responses_live_zone has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"d496d343552d05d3806366fa23701b3de73d632d5b16d2d290d722ea49bd063d"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::bedrock::eventstream::parse_headers (cyclomatic 23): headroom_proxy::bedrock::eventstream::parse_headers has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/eventstream.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7729f7deb718349915efcdf725786304061ccbc90128cd6760cda91f40b4bc12"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke::handle_invoke (cyclomatic 23): headroom_proxy::bedrock::invoke::handle_invoke has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"194f91fefa1d6d51a7dfa6c06eb1e8c5828668b69636da61ca6b8a71d57b8527"}},{"ruleId":"D1","level":"warning","message":{"text":"snip.describe (cyclomatic 23): snip.describe has cyclomatic complexity 23 (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":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0c39919c01305eb6d263df61c34d528c10327098298879b1d9abb4cc87ddaa"}},{"ruleId":"D1","level":"warning","message":{"text":"convert.agentToOpenAI (cyclomatic 23): convert.agentToOpenAI has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b424578b5e0fb03536c83bb00237973fcf083bc4a73387faa9dc38db84d832"}},{"ruleId":"D1","level":"warning","message":{"text":"CCRToolInjector.scan_for_markers (cyclomatic 22): CCRToolInjector.scan_for_markers 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":"headroom/ccr/tool_injection.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"79724c0d19d69fc100c3272f09ae5a11bf3814892e66ae03be39d91d98ab1bad"}},{"ruleId":"D1","level":"warning","message":{"text":"evals._run_memory_eval (cyclomatic 22): evals._run_memory_eval 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":"headroom/cli/evals.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23b6499788c325998bd0627f5f01bd10e82d3fbaaa1ac3ce1e4f0381cd11582"}},{"ruleId":"D1","level":"warning","message":{"text":"inspect._render_request (cyclomatic 22): inspect._render_request 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":"headroom/cli/inspect.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33820f9206d93a9c379f2844bfcaadd7dfde071d86b9843ffeb7b4a565aa11a"}},{"ruleId":"D1","level":"warning","message":{"text":"LoCoMoEvaluatorV2._answer_question (cyclomatic 22): LoCoMoEvaluatorV2._answer_question 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d29f8a3344d451ba523535ba1d9313cd60a27fc8f1f60df4a0e8ba805e8cbab"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomStrandsModel._convert_messages_to_openai (cyclomatic 22): HeadroomStrandsModel._convert_messages_to_openai 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":"headroom/integrations/strands/model.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7fda1a1e0f1a0619552466aa837baebe72c2fb670460713c5cb395c027e41c"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiPlugin._parse_messages (cyclomatic 22): GeminiPlugin._parse_messages 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":"headroom/learn/plugins/gemini.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b448f05dc64a7769ce5e2cfafa23aecd2f5d7e6433d47bd876b99945e2d7c"}},{"ruleId":"D1","level":"warning","message":{"text":"verbosity.extract_signals (cyclomatic 22): verbosity.extract_signals 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":"headroom/learn/verbosity.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc627dd6968bd54d00aeb64739753d527eca41765aee89cb49f4864b0bcf505c"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteGraphStore.query_subgraph (cyclomatic 22): SQLiteGraphStore.query_subgraph 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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7fb17a70384ba66e417b9a8e56e788e6b8080427a70dc1c669004784854a0e"}},{"ruleId":"D1","level":"warning","message":{"text":"LocalBackend.search_memories (cyclomatic 22): LocalBackend.search_memories 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":"headroom/memory/backends/local.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4c02f918cedb2c0841a480b924538cc83978a5ac4aea7e3d71e56262f8b286"}},{"ruleId":"D1","level":"warning","message":{"text":"anthropic._load_custom_model_config (cyclomatic 22): anthropic._load_custom_model_config 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":"headroom/providers/anthropic.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c44a00b199e9fb4b4ebc6e9fb8baf56cdd0f324348460b55ec18d18a46b01fc"}},{"ruleId":"D1","level":"warning","message":{"text":"live.handle_codex_live_websocket (cyclomatic 22): live.handle_codex_live_websocket 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":"headroom/providers/codex/live.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aaff4ad759366e3bd91efd047a1684d277096a57240627e5430df1f7d36f61"}},{"ruleId":"D1","level":"warning","message":{"text":"openai._load_custom_model_config (cyclomatic 22): openai._load_custom_model_config 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":"headroom/providers/openai.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"44cc3ab4e915ae937b74b36bbc5d5cdddf98c220339649c3918d7a484414fc18"}},{"ruleId":"D1","level":"warning","message":{"text":"gateway_responses.apply_view (cyclomatic 22): gateway_responses.apply_view 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":"headroom/proxy/gateway_responses.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d4117f4e10fd9e7c3f91fd05e2e03220690cd4bda78919f3ca1be31b245868"}},{"ruleId":"D1","level":"warning","message":{"text":"server.run_server (cyclomatic 22): server.run_server 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":"headroom/proxy/server.py"},"region":{"startLine":6862}}}],"partialFingerprints":{"codehealthFindingId/v1":"b718066914ad80b859494b41541c29a4d99de04c127df4872634b59b4fa998fe"}},{"ruleId":"D1","level":"warning","message":{"text":"stream_output_tokens.extract_stream_text (cyclomatic 22): stream_output_tokens.extract_stream_text 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":"headroom/proxy/stream_output_tokens.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a254c5fda26406ce24b78894cae8676b49aed95af875bde825754ff40aa3c6"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolIntelligenceNetwork.record_compression (cyclomatic 22): ToolIntelligenceNetwork.record_compression 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":"headroom/telemetry/toin.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"2374846fe0f3f2c8bbebb09f8a38894bc1e7298557b711f1c73ec515ba05ed85"}},{"ruleId":"D1","level":"warning","message":{"text":"ReadLifecycleManager._build_tool_metadata (cyclomatic 22): ReadLifecycleManager._build_tool_metadata 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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48a83738d3c7e4e0b1b41821f816baf5cd5fb4356f0a42b0e82f693c1699389"}},{"ruleId":"D1","level":"warning","message":{"text":"DiffCompressor::compress_with_ccr_source (cyclomatic 22): DiffCompressor::compress_with_ccr_source 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0685615fce6acbfd1b276f8efa43c9bd868da4514060f87966f9221a924bd3"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::crushers::crush_number_array (cyclomatic 22): headroom_core::transforms::smart_crusher::crushers::crush_number_array 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":"crates/headroom-core/src/transforms/smart_crusher/crushers.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85d8e1bd4c6255c7778da3e2edbee6993c6b2503e8c14d188eb07357069449a"}},{"ruleId":"D1","level":"warning","message":{"text":"convert.openAIToAgent (cyclomatic 22): convert.openAIToAgent 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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0e97e2b257836e7c0303e16bb9a3d78524c4ad9782e71a6270b46542ff4451"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingCCRHandler.process_stream (cyclomatic 21): StreamingCCRHandler.process_stream 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":"headroom/ccr/response_handler.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"5daeb63f62f19f4d1f5202b419b0371794deaf47dfe11c313b5a1b2bdc8e805b"}},{"ruleId":"D1","level":"warning","message":{"text":"report_card.generate_html (cyclomatic 21): report_card.generate_html 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":"headroom/evals/reports/report_card.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"592949a85fa433faf129de4ff7c2738f9de7b24a15cf9d3b5b622943a381d395"}},{"ruleId":"D1","level":"warning","message":{"text":"opencode._extract_output (cyclomatic 21): opencode._extract_output 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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b766427a9276cd3cf37d573824cf0e24f64001a4080db783fd2f27a150939d37"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemoryGraphStore.find_path (cyclomatic 21): InMemoryGraphStore.find_path 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57eb65541531b87d02b252c530d286b341e752860b843ca6be30caa7fb58b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomOtelMetrics.record_proxy_request (cyclomatic 21): HeadroomOtelMetrics.record_proxy_request has cyclomatic complexity 21 (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":"headroom/observability/metrics.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d0b117bd7999e629a7c3496835aefd65db651bce173a5de997a378c3bdc21c"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestTransformer.run (cyclomatic 21): RequestTransformer.run 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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b882b678313835d5041794485671764a7da31684c98852c909df6dc5860ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"SavingsTracker._sanitize_state (cyclomatic 21): SavingsTracker._sanitize_state 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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c759007aa304b246dab3f420cfa7f92525e1ee78e6a91b2b7bbe81812c00f9"}},{"ruleId":"D1","level":"warning","message":{"text":"savings_ledger.aggregate_savings (cyclomatic 21): savings_ledger.aggregate_savings has cyclomatic complexity 21 (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":"headroom/savings_ledger.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f034e5eeb098ae1eaa6ffc4b6d65a43ab8e1f19cb5554225c3a3c2bf5c3acf5"}},{"ruleId":"D1","level":"warning","message":{"text":"_PdfReader.read_xref_stream (cyclomatic 21): _PdfReader.read_xref_stream 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":"headroom/tokenizers/base.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c892ca67472f10ef8b2ec2cd0ad1167fb2289c0f54c66ec8a2b138ea21ce7f6"}},{"ruleId":"D1","level":"warning","message":{"text":"compaction_codec.expand_compacted (cyclomatic 21): compaction_codec.expand_compacted 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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c7df997cd2aa4b1a0a56edfd935ec7bd9436dfaea6cabb8ebcc1e8d37db7b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter.eager_load_compressors (cyclomatic 21): ContentRouter.eager_load_compressors 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":"headroom/transforms/content_router.py"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6585407366722b591d63ff1b109ad1281f11c52fbac0e4f1598b4d680e19ff2"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._build_tool_name_map (cyclomatic 21): ContentRouter._build_tool_name_map 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":"headroom/transforms/content_router.py"},"region":{"startLine":6116}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f9e687002f6b7e964e80d111b80740c067013f25844e58e7b7b7890b233553"}},{"ruleId":"D1","level":"warning","message":{"text":"mixed_content.split_into_sections (cyclomatic 21): mixed_content.split_into_sections 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":"headroom/transforms/mixed_content.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"73eba52173fbe0601cc45224d9c14e0c688f7861326cf5c9290a0d7185ac962f"}},{"ruleId":"D1","level":"warning","message":{"text":"Ctx::visit (cyclomatic 21): Ctx::visit 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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"7214a186b7754dbc7968c17fb012027aef741245f0b0347254a75b6295224ab7"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::tag_protector::parse_tag_at (cyclomatic 21): headroom_core::transforms::tag_protector::parse_tag_at 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":"crates/headroom-core/src/transforms/tag_protector.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9afb3448a2aeeb3099f369010411bdedcbfcec8edc8cee7ec44df1e6b24893"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyManager.start (cyclomatic 21): ProxyManager.start 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85c2c9552deffc9d50fe74d36f4e56540683f771976632f1fb2d42861869a21"}},{"ruleId":"D1","level":"warning","message":{"text":"PrefixCacheTracker._estimate_message_tokens (cyclomatic 20): PrefixCacheTracker._estimate_message_tokens 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"300490bd5d8849581e1e7e421124964359a2a8c6d95feda8e4a822a1cf001140"}},{"ruleId":"D1","level":"warning","message":{"text":"ttl_estimator.estimate_ttls (cyclomatic 20): ttl_estimator.estimate_ttls 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":"headroom/cache/ttl_estimator.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b86f8e82a9ad811b3db26c9dbcbf1a8c0b5cb3b258307927a0916d79cb8af5"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomMCPServer._handle_read (cyclomatic 20): HeadroomMCPServer._handle_read 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":"headroom/ccr/mcp_server.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dce47e53c1d00cae2afaae2ff358b3976b5d25e1bace8cf622605112b83f6c8"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchCompressionEvaluator.evaluate_case (cyclomatic 20): BatchCompressionEvaluator.evaluate_case has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1db1f8bbe0ca6edf0fe2dfcd7971e280c2498349f4c52cc161a169bce0f067d"}},{"ruleId":"D1","level":"warning","message":{"text":"BeforeAfterRunner._check_ground_truth_bfcl (cyclomatic 20): BeforeAfterRunner._check_ground_truth_bfcl 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":"headroom/evals/runners/before_after.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56947db2737ab30f532f67eefd9d129483631b1642c26eef5a84b2a8f81ff6b"}},{"ruleId":"D1","level":"warning","message":{"text":"InMemoryGraphStore.query_subgraph (cyclomatic 20): InMemoryGraphStore.query_subgraph 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fec40caa824b054d5827ed766852a20130645eaddfa55f9b7d2ea30056287a"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteGraphStore.find_path (cyclomatic 20): SQLiteGraphStore.find_path 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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e296190c1d4d2b81ca6ae2e8010e4b4fe579bc1a631fffa10e6e8b64330936e"}},{"ruleId":"D1","level":"warning","message":{"text":"TrafficLearner.flush_to_file (cyclomatic 20): TrafficLearner.flush_to_file has cyclomatic complexity 20 (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":"headroom/memory/traffic_learner.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c185d296d9c8499d1e0a2be1d2c8039275bfcf8adae659cc90843c18e262a9"}},{"ruleId":"D1","level":"warning","message":{"text":"TrafficLearner.extract_tool_results_from_openai_messages (cyclomatic 20): TrafficLearner.extract_tool_results_from_openai_messages 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"07cd9a91b3cb2b7d8d98c631af7d22c97622c47ed349b2045e7e712f4ce9c75f"}},{"ruleId":"D1","level":"warning","message":{"text":"openai._codex_ws_text_shape (cyclomatic 20): openai._codex_ws_text_shape 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"1286395650245ef5d52b3b2e87d08b3d2e2da6df3d3a5f661b5780860bfe4f6a"}},{"ruleId":"D1","level":"warning","message":{"text":"openai._restore_codex_additional_tools (cyclomatic 20): openai._restore_codex_additional_tools has cyclomatic complexity 20 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"86748af9ee0825a397eeb22e2c4139a4789a66ed26f1b245fdf3f30aea16e2d3"}},{"ruleId":"D1","level":"warning","message":{"text":"openai._responses_input_to_learner_messages (cyclomatic 20): openai._responses_input_to_learner_messages 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a8c69bd13a6f334d535b1391a8499c85f0e7ef068f600fc4fac9d8f71cfdab"}},{"ruleId":"D1","level":"warning","message":{"text":"astgrep._open_regular_file_under_root (cyclomatic 20): astgrep._open_regular_file_under_root has cyclomatic complexity 20 (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":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec58214ee8cd2756d18e85761dc5f8df2d60e8f19114b2fd032e0cdb11ed7201"}},{"ruleId":"D1","level":"warning","message":{"text":"content_detector.detect_content_type (cyclomatic 20): content_detector.detect_content_type has cyclomatic complexity 20 (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":"headroom/transforms/content_detector.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea69a7bd8457a37a11d250fc32f9ba975819d5766e99e62068b10b70eb6bcc"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._compress_mixed (cyclomatic 20): ContentRouter._compress_mixed 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":"headroom/transforms/content_router.py"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"600757c52d0ae657d755b0ce4b9815e563e06fdda3d1f78aa2f3f2d85a12f7a6"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::field_detect::detect_score_field_statistically (cyclomatic 20): headroom_core::transforms::smart_crusher::field_detect::detect_score_field_statistically has cyclomatic complexity 20 (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":"crates/headroom-core/src/transforms/smart_crusher/field_detect.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"94350d1fa8b100d936250f7c64ba9941c527fa38c80f95d58d51ae61de5c30f8"}},{"ruleId":"D1","level":"warning","message":{"text":"format.openAIToAnthropic (cyclomatic 20): format.openAIToAnthropic has cyclomatic complexity 20 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f464e45788894f057a2758cea2e4e33973b206cf29732591c1d3186664753209"}},{"ruleId":"D1","level":"warning","message":{"text":"CompressionStore.process_pending_feedback (cyclomatic 19): CompressionStore.process_pending_feedback 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":"headroom/cache/compression_store.py"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4c353e6df8c6772cd99418e37904320461a192605c42fcb507e26def9b8357"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.doctor (cyclomatic 19): doctor.doctor 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":"headroom/cli/doctor.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"176f5067698be9f6bcd35e03fcc4c51c04a0811462a6e0b919be1cf5312f1ac2"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.list_memories (cyclomatic 19): memory.list_memories 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":"headroom/cli/memory.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ad11078e77ec072edb874942705dba5ba7317eaec738cac8382fa64a97bb3e"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.prune_memories (cyclomatic 19): memory.prune_memories 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":"headroom/cli/memory.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebcfc4f47f876bb1e1c62c02bc0b0feeaaa8228274f7195835c1a69ce3a83fd8"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.reindex_memories (cyclomatic 19): memory.reindex_memories 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":"headroom/cli/memory.py"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd2812909714e8a44c120c850c2217fe261384b79e6061d02561509d9a2e58a"}},{"ruleId":"D1","level":"warning","message":{"text":"LoCoMoEvaluatorV2._replay_conversation (cyclomatic 19): LoCoMoEvaluatorV2._replay_conversation 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b972f6db4f71ffec4f006b98daf80e4cd557243296fd3ba3e6dda211f730949"}},{"ruleId":"D1","level":"warning","message":{"text":"BeforeAfterRunner.evaluate_case (cyclomatic 19): BeforeAfterRunner.evaluate_case 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":"headroom/evals/runners/before_after.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c435da0cf798895673bf1068099f793779d7754e7c413070ed2770e7b14ccb"}},{"ruleId":"D1","level":"warning","message":{"text":"supervisors.remove_supervisor (cyclomatic 19): supervisors.remove_supervisor 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":"headroom/install/supervisors.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"301c7655ddb263a8320ad86a16b5a6a6606edfd13ba3883405592cae7ccbddc8"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenCodePlugin._scan_session_legacy (cyclomatic 19): OpenCodePlugin._scan_session_legacy 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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb113ddffb0867a16f2920c44b957673ebd7413571dce4b4487b9876b3fcaf3"}},{"ruleId":"D1","level":"warning","message":{"text":"HNSWVectorIndex._passes_filter (cyclomatic 19): HNSWVectorIndex._passes_filter 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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"2846316af55da16ca835e0e2788f577f94e14faeee117dbe4c6431d82a8d17fc"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteVectorIndex._passes_filter (cyclomatic 19): SQLiteVectorIndex._passes_filter 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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"4863d3c2ace5418f04e5bdab28f3cce189c04d78678a45a93ea64b6728a9d80e"}},{"ruleId":"D1","level":"warning","message":{"text":"traffic_learner._refine_error_recovery (cyclomatic 19): traffic_learner._refine_error_recovery 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d4277146a1d41ec9228ec2071014527003022c56affbf8ea4ff07966292282"}},{"ruleId":"D1","level":"warning","message":{"text":"recovery._merge_database (cyclomatic 19): recovery._merge_database 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":"headroom/providers/codex/recovery.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f581134f5cecaf4bda0a6aaf15ad99589b8d03d0aa783c862475dec41a1c57"}},{"ruleId":"D1","level":"warning","message":{"text":"memory_query_policy.extract_memory_query_sources (cyclomatic 19): memory_query_policy.extract_memory_query_sources 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":"headroom/proxy/memory_query_policy.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec1df7905dd4dcabe6494d0896d54d30644cc133fd9b17642b5ea70b223fd16"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomProxy._start_kompress_background_warmup (cyclomatic 19): HeadroomProxy._start_kompress_background_warmup 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":"headroom/proxy/server.py"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5bc8b8e85412aac7acdec8afc5949a59d00a83bb018cbb48d2345000eed787"}},{"ruleId":"D1","level":"warning","message":{"text":"compaction_codec._iter_rows (cyclomatic 19): compaction_codec._iter_rows 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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1dba2468590331ac88112176016d6ef4a5fc4eff66f6851cbe20174e12abf9"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter._net_cost_allows (cyclomatic 19): ContentRouter._net_cost_allows 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":"headroom/transforms/content_router.py"},"region":{"startLine":6187}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bf5e8599026fa29de9a55c5d7439c61b5b825dca0010c32d60c2eb481b3099"}},{"ruleId":"D1","level":"warning","message":{"text":"content_router._detect_content (cyclomatic 19): content_router._detect_content 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":"headroom/transforms/content_router.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c7604a2867a60ba5a4074b2549814fcb82b302e8617054f5645db368387095"}},{"ruleId":"D1","level":"warning","message":{"text":"thinking_compactor.compact_reasoning_openai_chat (cyclomatic 19): thinking_compactor.compact_reasoning_openai_chat 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":"headroom/transforms/thinking_compactor.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0486ae386d0badb9292c0acdc956aa39afc1582640cf04d272cb8762c85813"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::websocket::run_ws_pump (cyclomatic 19): headroom_proxy::websocket::run_ws_pump 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":"crates/headroom-proxy/src/websocket.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"93df22748442928ebd82314c4f75b4e2b06bef6a28097c8e85989cacce421a20"}},{"ruleId":"D1","level":"warning","message":{"text":"convert.normalizeAssistantContent (cyclomatic 19): convert.normalizeAssistantContent has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 480). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c0206cec52bb638f7b72d2372a9281643567db5f0d5c0468be5aabf969209c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyManager.buildLaunchSpecs (cyclomatic 19): ProxyManager.buildLaunchSpecs 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b6cb0bf6076bf03ec70a8a77acfaa402384ee0215614ddbfa24c3ab7d3cabd"}},{"ruleId":"D1","level":"warning","message":{"text":"rollupHour (cyclomatic 19): rollupHour has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to 3 function literals inside it that branch. 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":"deploy/beacon/worker.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b56f279ee9208fab179686c8ebc02366d607b187322d036fad9d1200f85054a"}},{"ruleId":"D1","level":"warning","message":{"text":"agent_savings.proxy_pipeline_kwargs (cyclomatic 18): agent_savings.proxy_pipeline_kwargs has cyclomatic complexity 18 (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":"headroom/agent_savings.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"56cab12c7ccf84f69b0070ad126a84477d02db6e86eddab654734c20f42e3e0b"}},{"ruleId":"D1","level":"warning","message":{"text":"codex.audit_codex (cyclomatic 18): codex.audit_codex 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":"headroom/audit/codex.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b24d0221fe31c31da995b0666cfe0c2d00c97b9c723bfc227f69f7615017b63"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend.map_model_id (cyclomatic 18): LiteLLMBackend.map_model_id 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":"headroom/backends/litellm.py"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"232ef0547072f20e78a1de0a8e92b9c829cda47807affa2b61e35edf8bfcf7ac"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteLLMBackend.stream_openai_message (cyclomatic 18): LiteLLMBackend.stream_openai_message 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":"headroom/backends/litellm.py"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a11f15da7a5dde368f92a1423d79442ac553bff44d4151a610e3494e9eaa65b"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAICacheOptimizer.optimize (cyclomatic 18): OpenAICacheOptimizer.optimize 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":"headroom/cache/openai.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"476fb2e5739d4268ce5ccb8d0935c47a9abfb4351fa442f934f35613b1280511"}},{"ruleId":"D1","level":"warning","message":{"text":"recover.recover_codex (cyclomatic 18): recover.recover_codex 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":"headroom/cli/recover.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"695e890a4280d65d9961f46b34c5c61db060b5ccb9b37169fceb7e92646aebba"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._remove_claude_wrap_selfheal_hook (cyclomatic 18): wrap._remove_claude_wrap_selfheal_hook 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":"headroom/cli/wrap.py"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db278819c18a263826bd1b66ca93d1a7a0279fe64a75bf37c25250c1aad07db"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONStructureHandler._extract_mask (cyclomatic 18): JSONStructureHandler._extract_mask 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":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"99eb9d14b3e0f768af1143fc6502f5309453c0e59a2905c5d35da565181fbb96"}},{"ruleId":"D1","level":"warning","message":{"text":"comprehensive_benchmark.parse_lm_eval_results (cyclomatic 18): comprehensive_benchmark.parse_lm_eval_results 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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd7be4bf6ac2892d26e0121f015232a0d8466417c28aebef45e60a707e99573"}},{"ruleId":"D1","level":"warning","message":{"text":"SuiteRunner.run (cyclomatic 18): SuiteRunner.run 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":"headroom/evals/suite_runner.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"c720ffa01d927635592306199c1452802060f0825e19a59f13d2aebffc228d5e"}},{"ruleId":"D1","level":"warning","message":{"text":"ImageCompressor._ocr_extract (cyclomatic 18): ImageCompressor._ocr_extract 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":"headroom/image/compressor.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"45338f27f00c1a6aebdb39903df4999266297076e6f55456f3cbd6e1511a3812"}},{"ruleId":"D1","level":"warning","message":{"text":"runtime._read_proc_metadata (cyclomatic 18): runtime._read_proc_metadata 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":"headroom/install/runtime.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d76fb7caf7b128d983e6c0987449d2bcc08ee9ddab84f1ccb01c341d0b8f8d"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomAgnoModel._convert_messages_to_openai (cyclomatic 18): HeadroomAgnoModel._convert_messages_to_openai 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":"headroom/integrations/agno/model.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3ee8e13222dc28c0408746e6245a6f9c3a79665f74059d7be8179466375102"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomRunnable._optimize (cyclomatic 18): HeadroomRunnable._optimize has cyclomatic complexity 18 (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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54d5dded68de55b419f815228fe012df0416236ffc0c525fb9cb232b5682257"}},{"ruleId":"D1","level":"warning","message":{"text":"MemorySystem.handle_memory_save (cyclomatic 18): MemorySystem.handle_memory_save has cyclomatic complexity 18 (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":"headroom/memory/system.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe6db4150c7bb7536898ae2e9696e098d9d9146dfe401a4af39ac0d193d5d6a"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchHandlerMixin._compress_batch_jsonl (cyclomatic 18): BatchHandlerMixin._compress_batch_jsonl 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9e6f5cf45fb9e2e4c922938b11e0b085d36592d8561b6b4c56465f1694411f"}},{"ruleId":"D1","level":"warning","message":{"text":"turn_hooks.run_request_hooks (cyclomatic 18): turn_hooks.run_request_hooks 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":"headroom/proxy/turn_hooks.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42a541784f9bae4304658f1141b514a55033d87a2a6273138f1582f709df70c"}},{"ruleId":"D1","level":"warning","message":{"text":"session_tracking.compute_window_tokens (cyclomatic 18): session_tracking.compute_window_tokens 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":"headroom/subscription/session_tracking.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9836a5d3f60cbae6f33182da43e3d05ef51c0018febe55c99aba3137560884c6"}},{"ruleId":"D1","level":"warning","message":{"text":"compression_batches.compress_batch_with_router (cyclomatic 18): compression_batches.compress_batch_with_router has cyclomatic complexity 18 (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":"headroom/transforms/compression_batches.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"26242e7e357c150e605c9c47f43a89ca2e83ecbcd0c9f423316e37e97c13e54b"}},{"ruleId":"D1","level":"warning","message":{"text":"update_check._select_latest (cyclomatic 18): update_check._select_latest 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":"headroom/update_check.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a3ce971ef7c456268ae68ca1f569039f8dc82a73322a1cec63df153dc9822f"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor::analyze_symbol_importance (cyclomatic 18): CodeAwareCompressor::analyze_symbol_importance has cyclomatic complexity 18 (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2372b3564428c0aaf2a5c7d9a2673e9a4f88ef5dd8de13487fe7931ee4debd"}},{"ruleId":"D1","level":"warning","message":{"text":"Ctx::compress_class_ast (cyclomatic 18): Ctx::compress_class_ast 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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bf01c4a4de0a666a0cdf734558d6b4312e698cf11b92f7f241911845939555"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::classifier::classify_array (cyclomatic 18): headroom_core::transforms::smart_crusher::classifier::classify_array has cyclomatic complexity 18 (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":"crates/headroom-core/src/transforms/smart_crusher/classifier.rs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8deba65e90178cac28c40684a65354b42e2eb30bc70e85ea3bd27b98f129f3"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::outliers::detect_rare_status_values (cyclomatic 18): headroom_core::transforms::smart_crusher::outliers::detect_rare_status_values 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":"crates/headroom-core/src/transforms/smart_crusher/outliers.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad84e10c719e1934599f1aa4cf10fbec8da91d7dce706448171d80fe2c079de4"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderPath::classify (cyclomatic 18): ProviderPath::classify has cyclomatic complexity 18 (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":"crates/headroom-simulators/src/domain.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f03954560d8958e082b91885745d7e972ee81b4123f9550ea08424610123af7"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.html.dashboard.renderTransformationCard (cyclomatic 18): dashboard.html.dashboard.renderTransformationCard has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"f593d427390f5d31acb88e4a4c7e9a0ebc9b18c006bf1d082a2fb331027d00e3"}},{"ruleId":"D1","level":"warning","message":{"text":"compression_store._create_default_ccr_backend (cyclomatic 17): compression_store._create_default_ccr_backend 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":"headroom/cache/compression_store.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abb1f7fbfe5ece094b591ec02e68ae292a65272f24e434c179986f949463b01"}},{"ruleId":"D1","level":"warning","message":{"text":"prefix_tracker._classify_history_canonical (cyclomatic 17): prefix_tracker._classify_history_canonical 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a4356d442c5bf66f4402e6de1a636078d85ac6df04b2dc1a1f98c91dbaa1ce"}},{"ruleId":"D1","level":"warning","message":{"text":"doctor.check_savings (cyclomatic 17): doctor.check_savings has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/doctor.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9728f4998f701dbc852e64f2b82c5b04fd8dddd4bad533b1f0b37ba5fc03170"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.show_memory (cyclomatic 17): memory.show_memory 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":"headroom/cli/memory.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"63456f5f926032ed9ed1712e84cf4d55015d303e3467aa2b5b82f292d0c9076a"}},{"ruleId":"D1","level":"warning","message":{"text":"memory.edit_memory (cyclomatic 17): memory.edit_memory 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":"headroom/cli/memory.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"0243049e6755ceb934e070753aff67b6e5f4b817117ed4b09c16d7a6faa7f36e"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._setup_serena_mcp (cyclomatic 17): wrap._setup_serena_mcp 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":"headroom/cli/wrap.py"},"region":{"startLine":2885}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91934a51116b367380f22fc7842600e9ee56aa78c1fbcaf1796ed9d57be559c"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap._warn_proxy_mode_mismatch (cyclomatic 17): wrap._warn_proxy_mode_mismatch 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":"headroom/cli/wrap.py"},"region":{"startLine":9773}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c995a2ecb9ae52803a9bd1c9c43afcc668574de21ed52dabbde9053388a2ed6"}},{"ruleId":"D1","level":"warning","message":{"text":"comprehensive_benchmark.run_lm_eval (cyclomatic 17): comprehensive_benchmark.run_lm_eval 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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3612f376e3c2eb1fabf9c93d3a23e36b0aadf080ece3852c3986296d8138ecd3"}},{"ruleId":"D1","level":"warning","message":{"text":"CompressionEvaluator.evaluate_case (cyclomatic 17): CompressionEvaluator.evaluate_case has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/core.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"f303d8e1a1b353af8c1091bef1aacd8b2ec3ec17d7d20a1ffe8d32cc0a8d64ce"}},{"ruleId":"D1","level":"warning","message":{"text":"providers.get_headroom_provider (cyclomatic 17): providers.get_headroom_provider 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"be32041122b1f7c89055b8c6d75c875c413e07bba0f0b4a9e38cfbc67873b1bd"}},{"ruleId":"D1","level":"warning","message":{"text":"chat_model.optimize_messages (cyclomatic 17): chat_model.optimize_messages 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4326d106ebdc4b4ebe564b78ba918442f1353b188591bcbf3838318e0cade0"}},{"ruleId":"D1","level":"warning","message":{"text":"analyzer._call_cli_llm (cyclomatic 17): analyzer._call_cli_llm 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":"headroom/learn/analyzer.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b603be5dccd2440cb409b3585acdff1b532ca4373dd98a9a9e74d6362927af7"}},{"ruleId":"D1","level":"warning","message":{"text":"ledger._read_ledger (cyclomatic 17): ledger._read_ledger 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":"headroom/mcp_registry/ledger.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee67cb814405ad129a4cee7adcf2b22111d4c3e4ec1286f3d1af61cf5e0b474"}},{"ruleId":"D1","level":"warning","message":{"text":"hermes.compress_scoped_passthrough_body (cyclomatic 17): hermes.compress_scoped_passthrough_body 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":"headroom/providers/hermes.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"6286fe6ac8b92f3474d381aadc8c36ae2677c3164e7a8db6fb4591a1b9f8867f"}},{"ruleId":"D1","level":"warning","message":{"text":"CostTracker.record_tokens (cyclomatic 17): CostTracker.record_tokens 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":"headroom/proxy/cost.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9776979a0407dc5efc7601d261d8e3e25bd9bf0916f7b8fce450d61865edc8b8"}},{"ruleId":"D1","level":"warning","message":{"text":"GeminiHandlerMixin._carry_tail_append_into_preserved (cyclomatic 17): GeminiHandlerMixin._carry_tail_append_into_preserved 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71d269de72cd6761ce225170d1fb1099d51d1925797fac9da10a5bd0adc5125"}},{"ruleId":"D1","level":"warning","message":{"text":"openai._drop_undeclared_web_search_calls (cyclomatic 17): openai._drop_undeclared_web_search_calls 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7de762bfa8295191b1df22d9d1efad174e84bd1ea06c4811af72161b43d628"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.apply_session_sticky_ccr_tool (cyclomatic 17): helpers.apply_session_sticky_ccr_tool 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":"headroom/proxy/helpers.py"},"region":{"startLine":2934}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7a2b3057184c15a75b0ae54fa76ff3bf5e46a2d76a6d828ea6bf2adcb346f9"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.compute_turn_id (cyclomatic 17): helpers.compute_turn_id 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":"headroom/proxy/helpers.py"},"region":{"startLine":3575}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cec9e2d29a9af924607fa51ab95f079d335fd6a5fb589311a1df7feedd0257"}},{"ruleId":"D1","level":"warning","message":{"text":"helpers.inject_tool_search_deferral (cyclomatic 17): helpers.inject_tool_search_deferral 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":"headroom/proxy/helpers.py"},"region":{"startLine":4240}}}],"partialFingerprints":{"codehealthFindingId/v1":"46eb27d4a5b65860cedb52f116d3bfca1ff2b7d68121e0a985f94e5cdf52f6fa"}},{"ruleId":"D1","level":"warning","message":{"text":"MemoryHandler._extract_tool_calls (cyclomatic 17): MemoryHandler._extract_tool_calls 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2ddf3d953a81e58310d666d961132a39d854b2b5a8f87a1679131d5ac6a94b"}},{"ruleId":"D1","level":"warning","message":{"text":"Headroom.with_provider (cyclomatic 17): Headroom.with_provider 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":"headroom/testing/harness.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bb5659bb485e9bbf4c7e3d9223967519b8d78affe4bf1793dba911252b98bc"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor._analyze_symbol_importance (cyclomatic 17): CodeAwareCompressor._analyze_symbol_importance 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fdb7e9e9b29545c39fd3900164d9038c4ffa1d9a09a9b58aeff9fa2b8292c7"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeAwareCompressor._extract_structure (cyclomatic 17): CodeAwareCompressor._extract_structure 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e11d46285975b37c784e8763d446d832524b79422feab4fce1d36d25be159f3"}},{"ruleId":"D1","level":"warning","message":{"text":"ContentRouter.compress (cyclomatic 17): ContentRouter.compress 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":"headroom/transforms/content_router.py"},"region":{"startLine":3366}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca8d42bb2af1b80f4f6882e388df0867b44133e84f2f3085595ea4507a51aec"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCrusher._extract_context_from_messages (cyclomatic 17): SmartCrusher._extract_context_from_messages 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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be69bec84cea7da3659528471ce12729b704a68a1dde023d3845d834d094527"}},{"ruleId":"D1","level":"warning","message":{"text":"thinking_compactor.compact_thinking_to_text (cyclomatic 17): thinking_compactor.compact_thinking_to_text 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":"headroom/transforms/thinking_compactor.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4348bff1fd0e9d53d807ff55efb769bdd3bc3065808bd39989d81d5b12716ab"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::crushers::crush_string_array (cyclomatic 17): headroom_core::transforms::smart_crusher::crushers::crush_string_array 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":"crates/headroom-core/src/transforms/smart_crusher/crushers.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ec613b856745221e696e557e8593adbc1d366ee3e661d841f39cddd51e37f3"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_simulators::domain::default_response (cyclomatic 17): headroom_simulators::domain::default_response has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-simulators/src/domain.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3e2d3805e00c1c6624e5f8f93e1a3200dfcab817cd3dd2376c2dbbc1ee3d3"}},{"ruleId":"D1","level":"warning","message":{"text":"format.anthropicMediaImageUrl (cyclomatic 17): format.anthropicMediaImageUrl 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04ff5b33b70ebeb13fd32a41b5f705aa072babeae15b1e087135fdb76a09216"}},{"ruleId":"D1","level":"warning","message":{"text":"format.vercelMediaPart (cyclomatic 17): format.vercelMediaPart 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc57426e9ae3d7b25e0e6ecadeb8952f46a00347106dbeb55dc90b25d09cad07"}},{"ruleId":"D1","level":"warning","message":{"text":"AnyLLMBackend._to_anthropic_response (cyclomatic 16): AnyLLMBackend._to_anthropic_response 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":"headroom/backends/anyllm.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca0304083cbd0c707705f8ad4042f10014b2944fa23ac5075dd63f91ef2f5fc"}},{"ruleId":"D1","level":"warning","message":{"text":"litellm._place_system_cache_control (cyclomatic 16): litellm._place_system_cache_control 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":"headroom/backends/litellm.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4390a4fb6b34777e9be1a40e0277526d3bd2e92db2a242a67e81aae84f1957"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_server._format_session_summary (cyclomatic 16): mcp_server._format_session_summary 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":"headroom/ccr/mcp_server.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c2ff62eb9b63455c17b7dc9986ec8310fc169fbd972ea7d65f6c6d3a56500c"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.audit_reads_cmd (cyclomatic 16): audit.audit_reads_cmd 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":"headroom/cli/audit.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe051ff07061c4e1c48ad24ddfcc5034c1a33235fca5f3dc5993a69a6257bdd"}},{"ruleId":"D1","level":"warning","message":{"text":"install._start_deployment (cyclomatic 16): install._start_deployment has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/install.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e53eeab2e3bbcae817b0b5810f4fa4eb15c60bd4ab3eb9a27c0933dd15dae9"}},{"ruleId":"D1","level":"warning","message":{"text":"savings.savings (cyclomatic 16): savings.savings 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":"headroom/cli/savings.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"de80e1679c0b82aa6fc801215aa52af1379faa48cb0ce311b7b909e9122b5b7f"}},{"ruleId":"D1","level":"warning","message":{"text":"wrap.unwrap_claude (cyclomatic 16): wrap.unwrap_claude 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":"headroom/cli/wrap.py"},"region":{"startLine":6901}}}],"partialFingerprints":{"codehealthFindingId/v1":"e593667dda53e875c336115c7ae4dd095ff600851568fb4cbaaf38e451c9b9dd"}},{"ruleId":"D1","level":"warning","message":{"text":"CompressionOnlyRunner.evaluate_tool_schema_compaction (cyclomatic 16): CompressionOnlyRunner.evaluate_tool_schema_compaction 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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7f02260b4a9dc0b9c1286a7fbc69bc431391ea3c211b4914f045603886f760"}},{"ruleId":"D1","level":"warning","message":{"text":"HeadroomMCPCompressor.compress (cyclomatic 16): HeadroomMCPCompressor.compress 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":"headroom/integrations/mcp/server.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b6019e401585e9fce99963e53e56e051b28e5d0a102315e80051c967023b55"}},{"ruleId":"D1","level":"warning","message":{"text":"model.optimize_messages (cyclomatic 16): model.optimize_messages 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":"headroom/integrations/strands/model.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac6d7fa8c966f6579d6a083a116d88b5726dc9ef20ca98ed5576b87ace02214b"}},{"ruleId":"D1","level":"warning","message":{"text":"analyzer._build_digest (cyclomatic 16): analyzer._build_digest 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":"headroom/learn/analyzer.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81889befba436af10f374de9bf88c329949fc67926b3fbfa6deee04a24fa83d"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexPlugin._scan_json_session (cyclomatic 16): CodexPlugin._scan_json_session 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":"headroom/learn/plugins/codex.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99fb276fc7a93e0df9dcd01d0d5ae3afea31aa3c668cc6417c14d31464900d7"}},{"ruleId":"D1","level":"warning","message":{"text":"traffic_learner._project_for_pattern (cyclomatic 16): traffic_learner._project_for_pattern 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7a3ee2e93ab84590930f9d4ac022b213d201c2383f11c13f733616e1ca7ae0"}},{"ruleId":"D1","level":"warning","message":{"text":"AnthropicProvider.get_context_limit (cyclomatic 16): AnthropicProvider.get_context_limit 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":"headroom/providers/anthropic.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad82b4dc41e690ac4a3a008362462156a93c0e68c582528e63b32964e5dc634"}},{"ruleId":"D1","level":"warning","message":{"text":"recovery._merge_pinned_home (cyclomatic 16): recovery._merge_pinned_home 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":"headroom/providers/codex/recovery.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"db54dda030c41f2277657c93ac643b02155ea5aa3f36a8622588d3d741f8af8a"}},{"ruleId":"D1","level":"warning","message":{"text":"extensions.install_all (cyclomatic 16): extensions.install_all 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":"headroom/proxy/extensions.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bad6c28069be8e800c2af3cfe481c38fd62d09244187351eebca1c2d224f320"}},{"ruleId":"D1","level":"warning","message":{"text":"base._build_tool_use_index (cyclomatic 16): base._build_tool_use_index 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":"headroom/proxy/interceptors/base.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9c793b3135e2792bf63f751aa741a32f7929fa4c3241febb718e7b7e9c45d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"output_shaper.classify_responses_turn (cyclomatic 16): output_shaper.classify_responses_turn 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":"headroom/proxy/output_shaper.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73ac46f45656fe260adf42f4b0854df9078dfb0d5528d6c6d470e1d0505e8ca"}},{"ruleId":"D1","level":"warning","message":{"text":"output_turn_policy.classify_turn (cyclomatic 16): output_turn_policy.classify_turn 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":"headroom/proxy/output_turn_policy.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfeebf4ed01eb49de882109ec67d8da61173bc0505540abec3bb7df0c39611d"}},{"ruleId":"D1","level":"warning","message":{"text":"SavingsTracker.record_request (cyclomatic 16): SavingsTracker.record_request 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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be9c51a40ecc10ef2c6076b826bf892bed1b294d41a4a07cdef4a528cfef67b"}},{"ruleId":"D1","level":"warning","message":{"text":"server.create_app (cyclomatic 16): server.create_app 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":"headroom/proxy/server.py"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"002d187ea0ae714cb5b4afc84a7d0986335aa74c2487fd4e920827488552e252"}},{"ruleId":"D1","level":"warning","message":{"text":"compression_units.compress_unit_with_router (cyclomatic 16): compression_units.compress_unit_with_router 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":"headroom/transforms/compression_units.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a8aeba65cd1765369cae0b9d099af8689c02d9f235a2b5b3db30f3f0c1500cd"}},{"ruleId":"D1","level":"warning","message":{"text":"content_detector._try_detect_json (cyclomatic 16): content_detector._try_detect_json 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":"headroom/transforms/content_detector.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa355dd0c4db8505a4f9a3616e8d9b07734c71b37d4d8ddd2164fa6fe7e8053"}},{"ruleId":"D1","level":"warning","message":{"text":"kompress_compressor._load_kompress (cyclomatic 16): kompress_compressor._load_kompress 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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"407980906ce77d7f6c2269bcd51e938e8dd895ae752706abc30581edd46f566a"}},{"ruleId":"D1","level":"warning","message":{"text":"tabular_ingest.parse_fixed_width (cyclomatic 16): tabular_ingest.parse_fixed_width 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":"headroom/transforms/tabular_ingest.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d96e21c8850d7649961044e9de96676e2001105cd981aff1304fe081d1d1d1"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartAnalyzer::analyze_field (cyclomatic 16): SmartAnalyzer::analyze_field 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cd9201eab571c7777402cd6cc042f04cca479fac404e001ef27271c8836e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartCrusherPlanner::plan_top_n (cyclomatic 16): SmartCrusherPlanner::plan_top_n 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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0c91e860bb1783e59c16c62f5f1055770d5c8246173fa53350370103c5e34c"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::anchor_selector::write_python_json_inner (cyclomatic 16): headroom_core::transforms::anchor_selector::write_python_json_inner 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":"crates/headroom-core/src/transforms/anchor_selector.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"8801a00828c789c2391bc5968eabb248e8616486fe2672da100325873b2a8c2a"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::live_zone::dispatch_compressor (cyclomatic 16): headroom_core::transforms::live_zone::dispatch_compressor 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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"253a6afcd96a2c96ffa66702e884f28aa6825ecc5f345f82c38e14cd1d6e829a"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::safety::tool_pair_indices (cyclomatic 16): headroom_core::transforms::safety::tool_pair_indices 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":"crates/headroom-core/src/transforms/safety.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d9c43b295773cc439fad089a9c958be9d2be3a460fee176c29f26322b8bfcb"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::orchestration::prioritize_indices (cyclomatic 16): headroom_core::transforms::smart_crusher::orchestration::prioritize_indices 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":"crates/headroom-core/src/transforms/smart_crusher/orchestration.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d4ada3dbef1c794c3e4ab45b71374e32776942a6ac684c7ed6aeeb9fb985f2e"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_openai::compress_openai_chat_request (cyclomatic 16): headroom_proxy::compression::live_zone_openai::compress_openai_chat_request 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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cee0775908e26b00bc92694f06441f9f50e722007e23e0ffa1806b1f09e871"}},{"ruleId":"D1","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_responses::compress_openai_responses_request (cyclomatic 16): headroom_proxy::compression::live_zone_responses::compress_openai_responses_request 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":"crates/headroom-proxy/src/compression/live_zone_responses.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2869cf841439ac4f6dc42cdcd3822b708442f7f52497c025aba6347d40ba9f24"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy-manager.probeHeadroomProxy (cyclomatic 16): proxy-manager.probeHeadroomProxy has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb967bc24e79f30a2140430ae76c85ee2951a4acf69755baa920fe539d4fd198"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin.handle_anthropic_messages (cognitive 650): AnthropicHandlerMixin.handle_anthropic_messages has cognitive complexity 650 (threshold 15). Drivers by points: if/else 207 (398 pts), boolean chains 106, ternaries 30 (65 pts), error handling 31 (61 pts), loops 7 (20 pts) (nesting depth added 269). 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5704287e89a490846f6aa8b91168bc6e14aa4c0c4503da354639a0e5ec47803e"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter.apply (cognitive 435): ContentRouter.apply has cognitive complexity 435 (threshold 15). Drivers by points: if/else 134 (327 pts), boolean chains 43, ternaries 13 (34 pts), loops 8 (18 pts), error handling 5 (13 pts) (nesting depth added 232). 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":"headroom/transforms/content_router.py"},"region":{"startLine":6337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5846ce3729c98d59680d66b50c77f61a2ef721cb26869cd736233410ca495be9"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._ensure_proxy_unlocked (cognitive 328): wrap._ensure_proxy_unlocked has cognitive complexity 328 (threshold 15). Drivers by points: if/else 67 (232 pts), ternaries 12 (49 pts), boolean chains 41, error handling 3 (6 pts) (nesting depth added 205). 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":"headroom/cli/wrap.py"},"region":{"startLine":5091}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df9040816f4b17d65366a34931f997a02bc51888de6dbf51fa27aadd445a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_chat (cognitive 328): OpenAIHandlerMixin.handle_openai_chat has cognitive complexity 328 (threshold 15). Drivers by points: if/else 111 (196 pts), boolean chains 57, ternaries 21 (39 pts), error handling 18 (36 pts) (nesting depth added 121). 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3542}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f2e6a14df3e2dbef3988a711c50758502701fc979670e6a8d2230517d4cc3d"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_responses_ws (cognitive 303): OpenAIHandlerMixin.handle_openai_responses_ws has cognitive complexity 303 (threshold 15). Drivers by points: if/else 91 (173 pts), ternaries 31 (56 pts), boolean chains 38, error handling 11 (20 pts), loops 9 (16 pts) (nesting depth added 123). 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7782}}}],"partialFingerprints":{"codehealthFindingId/v1":"e414d12afdd22e09bf6c5a06f08d971aadf33166305bbc5a1f6edb66c6fcffc4"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin._compress_openai_responses_live_text_units_with_router (cognitive 223): OpenAIHandlerMixin._compress_openai_responses_live_text_units_with_router has cognitive complexity 223 (threshold 15). Drivers by points: if/else 61 (131 pts), loops 21 (41 pts), ternaries 14 (29 pts), boolean chains 20, error handling 2 (nesting depth added 105). 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2421}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84f6399c8b54375d80bc951bc7dd16aafe5dfea4c0428007cc933044b077f53"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._process_content_blocks (cognitive 218): ContentRouter._process_content_blocks has cognitive complexity 218 (threshold 15). Drivers by points: if/else 46 (158 pts), ternaries 10 (33 pts), boolean chains 26, loops 1 (nesting depth added 135). 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":"headroom/transforms/content_router.py"},"region":{"startLine":7900}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fc8376c37fc9ed0f73c9e76566aa7567b4b81285d13154735d1da6bce25fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_openai_responses (cognitive 184): OpenAIHandlerMixin.handle_openai_responses has cognitive complexity 184 (threshold 15). Drivers by points: if/else 61 (103 pts), boolean chains 39, ternaries 13 (23 pts), error handling 9 (17 pts), loops 1 (2 pts) (nesting depth added 61). 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6202}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9161c8426f017674d49d236f8fad14d349565beda77029e971eb7247f5d6338"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiHandlerMixin.handle_gemini_generate_content (cognitive 181): GeminiHandlerMixin.handle_gemini_generate_content has cognitive complexity 181 (threshold 15). Drivers by points: if/else 67 (129 pts), boolean chains 17, error handling 8 (13 pts), ternaries 4 (13 pts), loops 3 (9 pts) (nesting depth added 82). 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0558961e91170e5e050b4f1492159303f6439aac0c6782b6400e2a0410c3a2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._apply_strategy_to_content (cognitive 171): ContentRouter._apply_strategy_to_content has cognitive complexity 171 (threshold 15). Drivers by points: if/else 53 (125 pts), boolean chains 21, ternaries 4 (13 pts), error handling 4 (12 pts) (nesting depth added 89). 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":"headroom/transforms/content_router.py"},"region":{"startLine":4408}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0e79659c7f538a7fbbdeb16a9a8e970b5803108f89c65609d8766a8963250e"}},{"ruleId":"D2","level":"warning","message":{"text":"format.vercelToOpenAI (cognitive 151): format.vercelToOpenAI has cognitive complexity 151 (threshold 15). Drivers by points: ternaries 14 (72 pts), if/else 22 (62 pts), boolean chains 10, loops 3 (7 pts) (nesting depth added 102). Of this number, 141 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"902f38e2c9ca9ce71527cfc691722c4c9054c29732d8eaf7017fc29e718e4852"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.enforce_cache_breakpoint_budget (cognitive 150): helpers.enforce_cache_breakpoint_budget has cognitive complexity 150 (threshold 15). Drivers by points: if/else 23 (111 pts), loops 6 (26 pts), boolean chains 10, ternaries 1 (3 pts) (nesting depth added 110). 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":"headroom/proxy/helpers.py"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f7fddf9d8062508c78a5666d865bc1ca7d77d10d7f749b5bc48f88a289bef9"}},{"ruleId":"D2","level":"warning","message":{"text":"KompressCompressor.compress_batch (cognitive 140): KompressCompressor.compress_batch has cognitive complexity 140 (threshold 15). Drivers by points: if/else 43 (92 pts), loops 13 (27 pts), ternaries 8 (15 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 71). 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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d1937bd25f6dc35b4186d14ac7db876b420ec78f1f0e0bac877bed34248075"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor._compress_function_ast (cognitive 131): CodeAwareCompressor._compress_function_ast has cognitive complexity 131 (threshold 15). Drivers by points: if/else 40 (92 pts), loops 9 (28 pts), boolean chains 10, ternaries 1 (nesting depth added 71). 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a6856b03f818e45a66ec9f9ad9648becc026c0c8c0169effcb0dfc8fec1359"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.proxy (cognitive 130): proxy.proxy has cognitive complexity 130 (threshold 15). Drivers by points: if/else 50 (55 pts), boolean chains 34, ternaries 27 (31 pts), error handling 8 (10 pts) (nesting depth added 11). 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":"headroom/cli/proxy.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c96a73699009b87c0f97f2f483be5a8e9482a56dd38aeabdc1beb0114413ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic_wire._response_from_events (cognitive 121): anthropic_wire._response_from_events has cognitive complexity 121 (threshold 15). Drivers by points: if/else 27 (82 pts), ternaries 5 (16 pts), boolean chains 10, loops 3 (9 pts), error handling 1 (4 pts) (nesting depth added 75). 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":"headroom/proxy/anthropic_wire.py"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed2c45e34680dff03d4dadcf5f3319d4c8d996d2225157a225a421f07d54451"}},{"ruleId":"D2","level":"warning","message":{"text":"maturation.simulate_maturation (cognitive 117): maturation.simulate_maturation has cognitive complexity 117 (threshold 15). Drivers by points: if/else 20 (78 pts), loops 8 (23 pts), boolean chains 11, error handling 2 (5 pts) (nesting depth added 76). 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":"headroom/audit/maturation.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"321d7f258add72a548eccc7fd0af30b8083ae6e7d1ce6296fc40eb7b0d6d69e4"}},{"ruleId":"D2","level":"warning","message":{"text":"learn.learn (cognitive 113): learn.learn has cognitive complexity 113 (threshold 15). Drivers by points: if/else 30 (65 pts), loops 8 (24 pts), boolean chains 9, ternaries 3 (8 pts), error handling 3 (7 pts) (nesting depth added 60). 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":"headroom/cli/learn.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ca3be47476b54389fa4833e43706382dbf7a7b221840867a6515c60767c861"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::proxy::forward_http (cognitive 107): headroom_proxy::proxy::forward_http has cognitive complexity 107 (threshold 15). Drivers by points: if/else 44 (71 pts), match/switch 13 (23 pts), boolean chains 9, loops 1 (4 pts) (nesting depth added 40). 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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7080621d44e6bf28c0526822ac9f5ad09e7b8235854031e9b6d5af98a985537c"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend.stream_message (cognitive 105): LiteLLMBackend.stream_message has cognitive complexity 105 (threshold 15). Drivers by points: if/else 34 (66 pts), boolean chains 20, loops 4 (9 pts), ternaries 2 (9 pts), error handling 1 (nesting depth added 44). 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":"headroom/backends/litellm.py"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"34239a5a8c0c6ea279af368153dcceaee5381f783068b718a80b730fa467730c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_compress (cognitive 105): OpenAIHandlerMixin.handle_compress has cognitive complexity 105 (threshold 15). Drivers by points: if/else 36 (44 pts), ternaries 16 (26 pts), boolean chains 19, error handling 10 (16 pts) (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":11139}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f76a6d20ad5d243825bbf3f8fc34ebfebfe679559e9d7d0c0290855e679ec1"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.html.dashboard (cognitive 103): dashboard.html.dashboard has cognitive complexity 103 (threshold 15). Drivers by points: boolean chains 74, if/else 16, loops 4 (6 pts), ternaries 6, error handling 1 (nesting depth added 2). Of this number, 98 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de44cf280e6196c202ec82bd52bec8e4c471779451f8fa122da1bd746c75ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"format.openAIToVercel (cognitive 103): format.openAIToVercel has cognitive complexity 103 (threshold 15). Drivers by points: if/else 27 (69 pts), error handling 3 (16 pts), loops 3 (9 pts), ternaries 1 (5 pts), boolean chains 4 (nesting depth added 65). Of this number, 95 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ff163031aae82111ab9aeb2c9de1b6a4f4bc87c56434ded2558a5e13895c06"}},{"ruleId":"D2","level":"warning","message":{"text":"KompressCompressor.compress (cognitive 101): KompressCompressor.compress has cognitive complexity 101 (threshold 15). Drivers by points: if/else 35 (73 pts), loops 5 (12 pts), ternaries 6 (9 pts), boolean chains 5, error handling 2 (nesting depth added 48). 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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"4055a2f108c175c913be2761e29a9f2c359cbc310d1ff5520548587554e138af"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::proxy::run_sse_state_machine (cognitive 99): headroom_proxy::proxy::run_sse_state_machine has cognitive complexity 99 (threshold 15). Drivers by points: if/else 23 (60 pts), match/switch 7 (24 pts), loops 6 (15 pts) (nesting depth added 63). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f42258071de58b0da3715670da13114e126a9378cca476240f4b73fd005a7"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend._convert_messages_for_litellm (cognitive 95): LiteLLMBackend._convert_messages_for_litellm has cognitive complexity 95 (threshold 15). Drivers by points: if/else 19 (74 pts), loops 4 (14 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 67). 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":"headroom/backends/litellm.py"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c462a6802cca44d1e1b720231d3cbada6b90185dbee56db2ca58e21df01db56"}},{"ruleId":"D2","level":"warning","message":{"text":"reads._audit_session (cognitive 93): reads._audit_session has cognitive complexity 93 (threshold 15). Drivers by points: if/else 20 (65 pts), boolean chains 17, loops 5 (9 pts), error handling 1 (2 pts) (nesting depth added 50). 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":"headroom/audit/reads.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e042acb5c07835fe922f6bebe7dc76c12389f71ed50c521fb50b8b0f4ce1bc"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONStructureHandler._tokenize_json (cognitive 88): JSONStructureHandler._tokenize_json has cognitive complexity 88 (threshold 15). Drivers by points: if/else 21 (54 pts), loops 7 (21 pts), boolean chains 13 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96528d9124244f1841063e63cb0f91f84bddb7f0b776feb362ea6e3c56cb717"}},{"ruleId":"D2","level":"warning","message":{"text":"cost.build_prefix_cache_stats (cognitive 88): cost.build_prefix_cache_stats has cognitive complexity 88 (threshold 15). Drivers by points: if/else 16 (46 pts), ternaries 10 (16 pts), boolean chains 13, loops 4 (7 pts), error handling 1 (6 pts) (nesting depth added 44). 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":"headroom/proxy/cost.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7d0b8e9335a6ea1b42cfdb5089ef3717bf9f4e888dc72158751991e04dbe66"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMixin._parse_sse_usage_from_buffer (cognitive 86): StreamingMixin._parse_sse_usage_from_buffer has cognitive complexity 86 (threshold 15). Drivers by points: if/else 18 (66 pts), loops 3 (11 pts), boolean chains 4, ternaries 2 (3 pts), error handling 1 (2 pts) (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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea80343ae09904b050ef7f099ef3003309a90db8049e945bf5f7b7852b5dd43f"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.claude (cognitive 85): wrap.claude has cognitive complexity 85 (threshold 15). Drivers by points: if/else 35 (47 pts), boolean chains 15, ternaries 7 (14 pts), loops 2 (5 pts), error handling 3 (4 pts) (nesting depth added 23). 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":"headroom/cli/wrap.py"},"region":{"startLine":6373}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d0d94542b3a420c85b31bf2882b396448ee6a5cfdc0c3ef00016354ed39954"}},{"ruleId":"D2","level":"warning","message":{"text":"PrometheusMetrics.export (cognitive 85): PrometheusMetrics.export has cognitive complexity 85 (threshold 15). Drivers by points: loops 34 (66 pts), if/else 14 (16 pts), ternaries 3 (nesting depth added 34). 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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b8943f781461eca24f04028d46a04814bf880f06564c6eca2939ab92bbd4ad"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.find_tool_units (cognitive 83): parser.find_tool_units has cognitive complexity 83 (threshold 15). Drivers by points: if/else 17 (68 pts), loops 5 (12 pts), boolean chains 3 (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":"headroom/parser.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a219db34556b6e3fe205e877be0226fbb9535f2a38c1d6caab5dbb5a9273076"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor._apply_compression (cognitive 82): ImageCompressor._apply_compression has cognitive complexity 82 (threshold 15). Drivers by points: if/else 19 (57 pts), error handling 3 (17 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 53). 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":"headroom/image/compressor.py"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bf1a0fe6c01ab0017896742ce5e40b3a5a12fd1e8674e242788b9229a33598"}},{"ruleId":"D2","level":"warning","message":{"text":"format.openAIToGemini (cognitive 82): format.openAIToGemini has cognitive complexity 82 (threshold 15). Drivers by points: if/else 15 (42 pts), loops 4 (15 pts), ternaries 4 (13 pts), error handling 2 (8 pts), boolean chains 4 (nesting depth added 53). Of this number, 76 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a322f92adb924918e34d035410903b519a293c8c5295cab98c5df888551f67f"}},{"ruleId":"D2","level":"warning","message":{"text":"maturation.simulate_codex_maturation (cognitive 80): maturation.simulate_codex_maturation has cognitive complexity 80 (threshold 15). Drivers by points: if/else 15 (52 pts), loops 6 (14 pts), error handling 3 (9 pts), boolean chains 5 (nesting depth added 51). 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":"headroom/audit/maturation.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"062e4be332b4dceda644960f8888b68639fded5e8b26c4a52cbc6a358481f0ac"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.strip_unsupported_tool_search_blocks (cognitive 79): helpers.strip_unsupported_tool_search_blocks has cognitive complexity 79 (threshold 15). Drivers by points: if/else 15 (49 pts), boolean chains 14, loops 4 (10 pts), ternaries 4 (6 pts) (nesting depth added 42). 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":"headroom/proxy/helpers.py"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea7b14fe8b40dc611e0c1327d8974c6e5e53078f705463e1bffb4ba233ddbe0"}},{"ruleId":"D2","level":"warning","message":{"text":"format.detectFormat (cognitive 79): format.detectFormat has cognitive complexity 79 (threshold 15). Drivers by points: if/else 17 (57 pts), boolean chains 17, loops 2 (4 pts), ternaries 1 (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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"825ef58486d663af6a17a457b17bff13fadbf0bab82787a8d7047ac69070e6b0"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._try_ml_compressor (cognitive 77): ContentRouter._try_ml_compressor has cognitive complexity 77 (threshold 15). Drivers by points: if/else 22 (47 pts), boolean chains 12, error handling 3 (11 pts), ternaries 4 (7 pts) (nesting depth added 36). 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":"headroom/transforms/content_router.py"},"region":{"startLine":5181}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b4b9b79192b572a0948bb9d6ae3d014f030640bb38713a8770077316d3aef3"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher::process_value_with_hook (cognitive 77): SmartCrusher::process_value_with_hook has cognitive complexity 77 (threshold 15). Drivers by points: if/else 14 (52 pts), loops 5 (21 pts), match/switch 2 (4 pts) (nesting depth added 56). 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"9621ef7acab70009315425e3869f9ba9408e37f630182527a648b3dc3bdfcaac"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher::crush_mixed_array (cognitive 77): SmartCrusher::crush_mixed_array has cognitive complexity 77 (threshold 15). Drivers by points: if/else 14 (56 pts), loops 5 (15 pts), match/switch 2 (6 pts) (nesting depth added 56). 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b230bcfd36fa34bf02e72547517d60c77e9e5ff88bbf8dcaab611b734ade04b"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.relocate_system_messages_to_top_level (cognitive 76): helpers.relocate_system_messages_to_top_level has cognitive complexity 76 (threshold 15). Drivers by points: if/else 20 (43 pts), boolean chains 13, ternaries 4 (11 pts), loops 6 (9 pts) (nesting depth added 33). 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":"headroom/proxy/helpers.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8d785866c36c736757d36ab30f9deff98db7f2e0d1646af1699f5687b9642a"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMixin._continue_memory_tool_stream (cognitive 75): StreamingMixin._continue_memory_tool_stream has cognitive complexity 75 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 7 (17 pts), boolean chains 9, ternaries 4 (7 pts), error handling 1 (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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fda95911033cb400ac134477a6a4a4c379770d77dd49c122949a0cf19e04382"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomProxy.startup (cognitive 75): HeadroomProxy.startup has cognitive complexity 75 (threshold 15). Drivers by points: if/else 44 (55 pts), ternaries 6 (7 pts), boolean chains 5, error handling 3 (5 pts), loops 2 (3 pts) (nesting depth added 15). 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":"headroom/proxy/server.py"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2191b1269c913c95adb7edd5062997c1c566cb93f10ffd0856d2b41166929f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_output_tokens.extract_stream_text (cognitive 73): stream_output_tokens.extract_stream_text has cognitive complexity 73 (threshold 15). Drivers by points: if/else 13 (43 pts), loops 5 (17 pts), ternaries 2 (12 pts), boolean chains 1 (nesting depth added 52). 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":"headroom/proxy/stream_output_tokens.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f784ccbebbbc32f5ade8fdfc74591b4af4e05f80b161f6e9cf566c9385dd06"}},{"ruleId":"D2","level":"warning","message":{"text":"CCRToolInjector.scan_for_markers (cognitive 72): CCRToolInjector.scan_for_markers has cognitive complexity 72 (threshold 15). Drivers by points: if/else 10 (50 pts), loops 5 (21 pts), boolean chains 1 (nesting depth added 56). 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":"headroom/ccr/tool_injection.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1262c8e82ac455f0001836ca30533726e0f9c1bd7a14e4dd1b21c88e511d5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_turn.handle_compress_response (cognitive 72): gateway_turn.handle_compress_response has cognitive complexity 72 (threshold 15). Drivers by points: if/else 27 (37 pts), boolean chains 16, ternaries 9 (14 pts), error handling 3 (5 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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"16726013504ef5b1d436deda63e7c2593b878276e3986c3142b517184792fc90"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin.handle_anthropic_batch_create (cognitive 70): AnthropicHandlerMixin.handle_anthropic_batch_create has cognitive complexity 70 (threshold 15). Drivers by points: if/else 23 (44 pts), ternaries 6 (10 pts), boolean chains 6, error handling 4 (6 pts), loops 2 (4 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ca72cfd4024e81da10aa58da90b0c8a4597c09e20101e1a19fc8df26fda96b"}},{"ruleId":"D2","level":"warning","message":{"text":"format.anthropicToOpenAI (cognitive 70): format.anthropicToOpenAI has cognitive complexity 70 (threshold 15). Drivers by points: if/else 14 (45 pts), ternaries 3 (16 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 47). Of this number, 57 points are the body\u0027s own statements and 13 belong to 7 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc8090b6a3ce8b9f875503460333fd19a9d214fac0a753a3578730b3acb91ae9"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiPlugin._parse_messages (cognitive 68): GeminiPlugin._parse_messages has cognitive complexity 68 (threshold 15). Drivers by points: if/else 17 (58 pts), ternaries 1 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 46). 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":"headroom/learn/plugins/gemini.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad581e273c78da6679f9a6923a78ab982b1700b06d0995b79b04fef3d00376c3"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.copilot (cognitive 66): wrap.copilot has cognitive complexity 66 (threshold 15). Drivers by points: if/else 26 (46 pts), ternaries 4 (12 pts), boolean chains 8 (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":"headroom/cli/wrap.py"},"region":{"startLine":7056}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a075550dff2cf6c98308625f02a4aa8e44cbc9fb62b6293fdb337e194d42123"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.parse_message_to_blocks (cognitive 66): parser.parse_message_to_blocks has cognitive complexity 66 (threshold 15). Drivers by points: if/else 15 (31 pts), ternaries 5 (15 pts), loops 4 (9 pts), boolean chains 8, error handling 1 (3 pts) (nesting depth added 33). 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":"headroom/parser.py"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a26a308044ddf233bca9b84b8f3b289a3bab7ab9b0c084a205a6c369cbad3a"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchHandlerMixin.handle_google_batch_create (cognitive 66): BatchHandlerMixin.handle_google_batch_create has cognitive complexity 66 (threshold 15). Drivers by points: if/else 22 (41 pts), loops 4 (9 pts), error handling 4 (6 pts), boolean chains 5, ternaries 3 (5 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63555f1a91eab9e2825ba8b38be8fc9288d49d5d7f33e8ff85ad05ba0987762"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::parse_diff (cognitive 66): headroom_core::transforms::diff_compressor::parse_diff has cognitive complexity 66 (threshold 15). Drivers by points: if/else 29 (60 pts), boolean chains 5, loops 1 (nesting depth added 31). 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"16afb8b4bdcbb87c852c9e4e99af9a026676ce8e7822e10ac739107a4a8a5bc9"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._build_tool_name_map (cognitive 65): ContentRouter._build_tool_name_map has cognitive complexity 65 (threshold 15). Drivers by points: if/else 13 (55 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 45). 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":"headroom/transforms/content_router.py"},"region":{"startLine":6116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09e6bbc90ea3d6e5b416a939085ed81db3fdd7256bb4d15b5747b1b58c5e434"}},{"ruleId":"D2","level":"warning","message":{"text":"session._fold_extra (cognitive 64): session._fold_extra has cognitive complexity 64 (threshold 15). Drivers by points: if/else 22 (38 pts), boolean chains 12, loops 7 (11 pts), error handling 1 (3 pts) (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":"headroom/telemetry/session.py"},"region":{"startLine":1385}}}],"partialFingerprints":{"codehealthFindingId/v1":"044345b1e6fbdccb51c97182371ec93cdce733f5973dfb52a6599b90f2f8ca2b"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._compress_block_content (cognitive 64): ContentRouter._compress_block_content has cognitive complexity 64 (threshold 15). Drivers by points: if/else 24 (43 pts), boolean chains 14, ternaries 4 (7 pts) (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":"headroom/transforms/content_router.py"},"region":{"startLine":8392}}}],"partialFingerprints":{"codehealthFindingId/v1":"2637264051a17f7b31fb8bb08b405c78a271cf0f975e98744374f6a0503dd4e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIntelligenceNetwork.record_retrieval (cognitive 63): ToolIntelligenceNetwork.record_retrieval has cognitive complexity 63 (threshold 15). Drivers by points: if/else 21 (46 pts), loops 4 (10 pts), ternaries 3 (5 pts), boolean chains 2 (nesting depth added 33). 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":"headroom/telemetry/toin.py"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a191c60da9dc39a3fa3be73e03aa52a59c881525f934c414cc587a6e17418c"}},{"ruleId":"D2","level":"warning","message":{"text":"TiktokenCounter.count_messages (cognitive 63): TiktokenCounter.count_messages has cognitive complexity 63 (threshold 15). Drivers by points: if/else 12 (48 pts), loops 4 (12 pts), boolean chains 3 (nesting depth added 44). 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":"headroom/tokenizers/tiktoken_counter.py"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfb21f1d920f3cd4c8634e0e2f68bd2ac70f0eb017091347f4b690564dc2a21"}},{"ruleId":"D2","level":"warning","message":{"text":"Ctx::compress_function_ast (cognitive 63): Ctx::compress_function_ast has cognitive complexity 63 (threshold 15). Drivers by points: if/else 32 (50 pts), boolean chains 7, loops 3, match/switch 1 (3 pts) (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c0f3f206863aabd78e73bb42df038b428a58be9d38d31de966f3db5a920d32"}},{"ruleId":"D2","level":"warning","message":{"text":"convert.agentToOpenAI (cognitive 63): convert.agentToOpenAI has cognitive complexity 63 (threshold 15). Drivers by points: ternaries 8 (31 pts), if/else 10 (25 pts), loops 2 (5 pts), boolean chains 2 (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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca8119be72bd94b9c79d9b23d1d12fc5bf576e80c06cc2ab8b9e466674db39f"}},{"ruleId":"D2","level":"warning","message":{"text":"BeforeAfterRunner._check_ground_truth_bfcl (cognitive 62): BeforeAfterRunner._check_ground_truth_bfcl has cognitive complexity 62 (threshold 15). Drivers by points: if/else 9 (34 pts), loops 5 (15 pts), error handling 2 (6 pts), ternaries 1 (5 pts), boolean chains 2 (nesting depth added 43). 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":"headroom/evals/runners/before_after.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"236540a83d9436b5a7a91f6cfa7031a058d3c93e5c72785870b6401298e9d3d2"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomProxy.__init__ (cognitive 62): HeadroomProxy.__init__ has cognitive complexity 62 (threshold 15). Drivers by points: if/else 28 (36 pts), ternaries 11 (12 pts), boolean chains 8, error handling 4 (6 pts) (nesting depth added 11). 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":"headroom/proxy/server.py"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e1f8b596e020c7e6f09417b9467d4790c0f061a5e3210ad45ec048da008042"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadMaturationManager._scan_activity (cognitive 62): ReadMaturationManager._scan_activity has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (49 pts), loops 3 (6 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 39). 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":"headroom/transforms/read_maturation.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"619783689996be1fcf33bc3e9cd1f098f6cd57725d957857200822ffcc9e69ec"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher.apply (cognitive 62): SmartCrusher.apply has cognitive complexity 62 (threshold 15). Drivers by points: if/else 15 (53 pts), boolean chains 5, loops 2 (4 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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2415b702f0619cf0de24750105f597e80ff7a06c2f4797ffe8c9814283152503"}},{"ruleId":"D2","level":"warning","message":{"text":"prefix_tracker.normalize_message_cache_control (cognitive 61): prefix_tracker.normalize_message_cache_control has cognitive complexity 61 (threshold 15). Drivers by points: if/else 13 (31 pts), ternaries 7 (14 pts), boolean chains 9, loops 3 (7 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41a6840013b11849c75e1170992131236aa84a99fc065d2d909524f4b954dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"base.apply_to_messages (cognitive 61): base.apply_to_messages has cognitive complexity 61 (threshold 15). Drivers by points: if/else 16 (40 pts), error handling 3 (10 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 34). 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":"headroom/proxy/interceptors/base.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"45dddfe1c599d131b1d86606e4b054bb02c945aced4747a90baf6378a4e93660"}},{"ruleId":"D2","level":"warning","message":{"text":"parser.parse_messages (cognitive 60): parser.parse_messages has cognitive complexity 60 (threshold 15). Drivers by points: if/else 15 (40 pts), loops 10 (13 pts), boolean chains 7 (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":"headroom/parser.py"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea8c566601aa16b991703816ccdc4450560a9ea420434cf5e694731d453de47"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin._compress_openai_responses_payload (cognitive 60): OpenAIHandlerMixin._compress_openai_responses_payload has cognitive complexity 60 (threshold 15). Drivers by points: if/else 16 (27 pts), error handling 7 (16 pts), ternaries 6 (11 pts), boolean chains 5, loops 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3094}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39e200f98a5898a05fd19d1efc56d3af6a0a5cc3804319ebc94f9c99d2c7a67"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_passthrough (cognitive 60): OpenAIHandlerMixin.handle_passthrough has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (32 pts), boolean chains 11, error handling 5 (9 pts), ternaries 3 (5 pts), loops 1 (3 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12290}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e211ba79e3923e0caeb16aac84792ff2bae50fdd7ddb01e15b717780a77da2"}},{"ruleId":"D2","level":"warning","message":{"text":"convert.openAIToAgent (cognitive 60): convert.openAIToAgent has cognitive complexity 60 (threshold 15). Drivers by points: ternaries 12 (36 pts), if/else 6 (14 pts), error handling 1 (5 pts), loops 2 (5 pts) (nesting depth added 39). 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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"690f8597a962d7e523d337e91e1b1090d81a1744e2db9f33018a485928857c34"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_responses.build_view (cognitive 59): gateway_responses.build_view has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (37 pts), ternaries 3 (9 pts), loops 3 (8 pts), boolean chains 5 (nesting depth added 33). 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":"headroom/proxy/gateway_responses.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f428ea2bab9e7c3d6925160fd453a82cb35725680eb3759b3f32d2ba7b6767"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._cross_turn_dedup_messages (cognitive 59): ContentRouter._cross_turn_dedup_messages has cognitive complexity 59 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 9, ternaries 2 (7 pts), loops 3 (5 pts), error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/content_router.py"},"region":{"startLine":7753}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f7f9aaf37a0493bd722403522d59c621d0278e4b5962f70be928e76243cd81"}},{"ruleId":"D2","level":"warning","message":{"text":"config_toml.root_assignment_lines (cognitive 58): config_toml.root_assignment_lines has cognitive complexity 58 (threshold 15). Drivers by points: if/else 11 (33 pts), loops 4 (12 pts), boolean chains 8, ternaries 1 (5 pts) (nesting depth added 34). 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":"headroom/providers/codex/config_toml.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cc2c764b567542593f0c699bc67c6022acc0f07fff96aa1006f6438b2a33fb"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin._ws_http_fallback (cognitive 58): OpenAIHandlerMixin._ws_http_fallback has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 5 (11 pts), error handling 4 (9 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 31). 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10793}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a39b1135fc843a2b8b8d80baf1972dd73bd0dc214bc291914aa65945e582ff"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.count_cache_breakpoints (cognitive 58): helpers.count_cache_breakpoints has cognitive complexity 58 (threshold 15). Drivers by points: if/else 14 (44 pts), loops 2 (6 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 36). 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":"headroom/proxy/helpers.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c567912722ad750b590e6320a2cba59bba819ed388f2a3976fc93287107e8df"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionStore.process_pending_feedback (cognitive 57): CompressionStore.process_pending_feedback has cognitive complexity 57 (threshold 15). Drivers by points: if/else 11 (38 pts), error handling 3 (10 pts), loops 3 (8 pts), boolean chains 1 (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":"headroom/cache/compression_store.py"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"5679642ba48ba1c08da90a0269aa4ffc8f0e4ae824c36638282cb568077ecd35"}},{"ruleId":"D2","level":"warning","message":{"text":"PrometheusMetrics.record_request (cognitive 57): PrometheusMetrics.record_request has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (32 pts), boolean chains 16, loops 3 (5 pts), ternaries 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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ad17c78f924503f886ee9f07468a37445d3121013e0e9103225b95a231c367"}},{"ruleId":"D2","level":"warning","message":{"text":"format.geminiToOpenAI (cognitive 57): format.geminiToOpenAI has cognitive complexity 57 (threshold 15). Drivers by points: if/else 14 (38 pts), ternaries 3 (11 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 34). Of this number, 46 points are the body\u0027s own statements and 11 belong to 6 function literals inside it that branch. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95d4a851cc4190be5539ca08c14c5a82f10f77306917e3166b8b6b663ec3ee0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyLLMBackend.stream_message (cognitive 56): AnyLLMBackend.stream_message has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (44 pts), loops 3 (5 pts), ternaries 1 (4 pts), boolean chains 2, error handling 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/backends/anyllm.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ee9abde2462585fd91e0051ab33ce4cdfc901d1e9bad27b6151836d18c5a01"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingCCRHandler._reconstruct_openai_response (cognitive 56): StreamingCCRHandler._reconstruct_openai_response has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (47 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 32). 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":"headroom/ccr/response_handler.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9f5b7efae901ddebbfae0d75ed5470994236c09b6eb1cb0e248a6a5ffaf32d"}},{"ruleId":"D2","level":"warning","message":{"text":"learn._run_verbosity (cognitive 56): learn._run_verbosity has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (33 pts), boolean chains 10, ternaries 4 (9 pts), loops 2 (4 pts) (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":"headroom/cli/learn.py"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"4428bf56b1b02afb50c25cc3fc189ac84fd307266150e602244b7d379d8e2f52"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.walk_cache_control (cognitive 56): helpers.walk_cache_control has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 5 (16 pts), boolean chains 5, ternaries 1 (5 pts) (nesting depth added 34). 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":"headroom/proxy/helpers.py"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c737503bdc486650476f25857ad5bc3216d6ce1961b32dd7e0deb6c7211b72a"}},{"ruleId":"D2","level":"warning","message":{"text":"format.openAIToAnthropic (cognitive 56): format.openAIToAnthropic has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (43 pts), loops 3 (9 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 36). Of this number, 48 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ebcafb6bef0f0b31e8519f200d9b0d387324ae63b312164400916e16cbce0b"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMixin._finalize_stream_response (cognitive 55): StreamingMixin._finalize_stream_response has cognitive complexity 55 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 17, ternaries 6 (12 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"358db1f00ae9c9987407b1363043aa60b2b64e2ed0dac939a689937aff1022ea"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAnalyzer::analyze_crushability (cognitive 55): SmartAnalyzer::analyze_crushability has cognitive complexity 55 (threshold 15). Drivers by points: if/else 26 (41 pts), boolean chains 9, loops 4 (5 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c20faf87187b0f2a45c0d781a769adf21056b0bc8716156387f7c5bd595c68"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::safety::tool_pair_indices (cognitive 55): headroom_core::transforms::safety::tool_pair_indices has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (47 pts), loops 4 (8 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":"crates/headroom-core/src/transforms/safety.rs"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba72a33ec35efcbda3af582d66f59d89dcd60d7b3cc6539f97013a2e5ff4d8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"settings_store._coerce (cognitive 54): settings_store._coerce has cognitive complexity 54 (threshold 15). Drivers by points: if/else 22 (38 pts), ternaries 4 (7 pts), boolean chains 6, error handling 1 (3 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":"headroom/settings_store.py"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"faaeea546ba1ef7753cd81223da5f9a50f34a2376854d7db6d9b38fa3a646d27"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.openclaw (cognitive 53): wrap.openclaw has cognitive complexity 53 (threshold 15). Drivers by points: if/else 26 (35 pts), boolean chains 13, ternaries 3 (5 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":"headroom/cli/wrap.py"},"region":{"startLine":8699}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8391563c3ff92756579c1e0605adbb7650c90b735c574ac2d9251eaf06ddb2"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMixin._stream_response_inner (cognitive 53): StreamingMixin._stream_response_inner has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 13, error handling 6 (13 pts), ternaries 4 (6 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c98519160786a8d1eb01054c1948baf901a95853ac9b8fc9fdc989ec3d2c440"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.strip_unsupported_ccr_retrieve_blocks (cognitive 53): helpers.strip_unsupported_ccr_retrieve_blocks has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (35 pts), boolean chains 6, loops 4 (6 pts), ternaries 4 (6 pts) (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":"headroom/proxy/helpers.py"},"region":{"startLine":4589}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc542efa40cff679d1e711eec008d55231199f8a41e8a2c8e90dfbb6e70c6584"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor._compress_class_ast (cognitive 53): CodeAwareCompressor._compress_class_ast has cognitive complexity 53 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 8, loops 4 (6 pts) (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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"104ad44f28594cbac34e7ee9bd30ce66244b39180b6f00a530865276d1ab66ea"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._remove_claude_managed_hooks (cognitive 52): wrap._remove_claude_managed_hooks has cognitive complexity 52 (threshold 15). Drivers by points: if/else 20 (44 pts), loops 2 (5 pts), boolean chains 2, error handling 1 (nesting depth added 27). 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":"headroom/cli/wrap.py"},"region":{"startLine":1400}}}],"partialFingerprints":{"codehealthFindingId/v1":"5251c9bd7ad0597994a89bf655f7ff6ece1b48e6d90e77b38b572849aeebce78"}},{"ruleId":"D2","level":"warning","message":{"text":"verbosity._parse_session (cognitive 52): verbosity._parse_session has cognitive complexity 52 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 4 (15 pts), loops 3 (6 pts), boolean chains 5, error handling 2 (3 pts) (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":"headroom/learn/verbosity.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d83eb64ab369532377d6af7eabd3b3af0d41ed2295d42acc72083a1d962c15"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIntelligenceNetwork._merge_patterns (cognitive 52): ToolIntelligenceNetwork._merge_patterns has cognitive complexity 52 (threshold 15). Drivers by points: if/else 26 (42 pts), loops 8, 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":"headroom/telemetry/toin.py"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"351dee597ca886c307d2af465a8d485e4e7904c1808a96c077b72c4206ae24c0"}},{"ruleId":"D2","level":"warning","message":{"text":"content_detector._try_detect_structured_config (cognitive 51): content_detector._try_detect_structured_config has cognitive complexity 51 (threshold 15). Drivers by points: if/else 25 (40 pts), boolean chains 9, loops 1 (2 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":"headroom/transforms/content_detector.py"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0bb41f579b6fc01fb1befb08004e283b9f2d127ecb6de135e3d32d26d18f3f"}},{"ruleId":"D2","level":"warning","message":{"text":"LogCompressor::select_lines (cognitive 51): LogCompressor::select_lines has cognitive complexity 51 (threshold 15). Drivers by points: if/else 17 (27 pts), loops 12 (19 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"703a637cfbd11aeb7df6bf1807d588e240287dc82cfa62d2e4e75a93e7bdbd5d"}},{"ruleId":"D2","level":"warning","message":{"text":"server._build_agent_usage_summary (cognitive 50): server._build_agent_usage_summary has cognitive complexity 50 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 11, loops 6 (10 pts), ternaries 6 (10 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":"headroom/proxy/server.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"430a38838a8d11f515c3470fa7a30f7c84fd5ad6aa602d35ba8f8a187c7e7e69"}},{"ruleId":"D2","level":"warning","message":{"text":"TransformPipeline.apply (cognitive 50): TransformPipeline.apply has cognitive complexity 50 (threshold 15). Drivers by points: if/else 18 (25 pts), ternaries 6 (11 pts), boolean chains 7, error handling 3 (6 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/pipeline.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"00199aabf0350b1f491f986831e098c1e5b4625f281fa8b50e2b217b119bf578"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICacheOptimizer.optimize (cognitive 49): OpenAICacheOptimizer.optimize has cognitive complexity 49 (threshold 15). Drivers by points: if/else 13 (42 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 32). 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":"headroom/cache/openai.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fff9e44ce1379dc5d8d00650f8592ff0c1a96f979749ad5a5644119677208b"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTrackerStore.resolve_tracker (cognitive 49): SessionTrackerStore.resolve_tracker has cognitive complexity 49 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 9, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f00172e9738ec18758d9c00b1d96dd6dfcb79794f3404747db67ec80e9cdf6a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._load_custom_model_config (cognitive 49): openai._load_custom_model_config has cognitive complexity 49 (threshold 15). Drivers by points: if/else 17 (36 pts), loops 3 (9 pts), error handling 2 (4 pts) (nesting depth added 27). 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":"headroom/providers/openai.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"062158af36a8a1df34716557413ccdfa7e247705145fe86d0d6e6703061e7c00"}},{"ruleId":"D2","level":"warning","message":{"text":"LoCoMoEvaluatorV2._replay_conversation (cognitive 48): LoCoMoEvaluatorV2._replay_conversation has cognitive complexity 48 (threshold 15). Drivers by points: if/else 8 (25 pts), error handling 2 (7 pts), loops 3 (6 pts), ternaries 1 (6 pts), boolean chains 4 (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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"328fb352b3497fb7184d1a25fbd147750b7bc79a88a94fadaef898319106666f"}},{"ruleId":"D2","level":"warning","message":{"text":"TelemetryCollector._create_field_distribution (cognitive 48): TelemetryCollector._create_field_distribution has cognitive complexity 48 (threshold 15). Drivers by points: if/else 17 (40 pts), boolean chains 7, 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":"headroom/telemetry/collector.py"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb50a481b277f6f689cc6b989f2df6e0cc2c35fb1c4f13b0347294754f650e9"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::search_compressor::scan_marker (cognitive 48): headroom_core::transforms::search_compressor::scan_marker has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (29 pts), boolean chains 10, match/switch 2 (5 pts), loops 2 (4 pts) (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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d25fc64ae34da845b0d613b3de9d6fe21fa9ef51b56ad52518c311981077990"}},{"ruleId":"D2","level":"warning","message":{"text":"comprehensive_benchmark.parse_lm_eval_results (cognitive 47): comprehensive_benchmark.parse_lm_eval_results has cognitive complexity 47 (threshold 15). Drivers by points: if/else 6 (20 pts), ternaries 5 (18 pts), loops 3 (6 pts), boolean chains 3 (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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad672fd42c8261e6968a6eada0b9bd391df2aecb33216c51fc268f9ffb7293c"}},{"ruleId":"D2","level":"warning","message":{"text":"analyzer._call_claude_cli_streaming (cognitive 47): analyzer._call_claude_cli_streaming has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (31 pts), error handling 6 (13 pts), boolean chains 2, loops 1 (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":"headroom/learn/analyzer.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a3e17d3b7859d6816c94dbdaf68d7bbbfda3abfc302c0fa0e069b51b9167c"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodePlugin._scan_session_v2 (cognitive 47): OpenCodePlugin._scan_session_v2 has cognitive complexity 47 (threshold 15). Drivers by points: if/else 6 (15 pts), ternaries 5 (15 pts), boolean chains 7, error handling 2 (7 pts), loops 2 (3 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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b5239f75da182ef4d6ec68a2a068e7037bdd81de5614366309fdbe9fae54c3"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter.eager_load_compressors (cognitive 47): ContentRouter.eager_load_compressors has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (32 pts), error handling 5 (11 pts), loops 1 (4 pts) (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":"headroom/transforms/content_router.py"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b483a9fb892c55b2f5a54fd9784e28894d77e1c28f5eb13565f9dbda69da3c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request (cognitive 47): headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (32 pts), match/switch 5 (9 pts), loops 2 (4 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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb6741fc7b25f91b74f971a674eb9ad3ef540e162a6e4418d77ec956db23790"}},{"ruleId":"D2","level":"warning","message":{"text":"PrefixCacheTracker._estimate_message_tokens (cognitive 46): PrefixCacheTracker._estimate_message_tokens has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (38 pts), loops 3 (6 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"7821557fb3fa82681334ab596ad07f68d7d2b81c5230c35350edd62197add951"}},{"ruleId":"D2","level":"warning","message":{"text":"session._fold (cognitive 46): session._fold has cognitive complexity 46 (threshold 15). Drivers by points: boolean chains 18, if/else 9 (15 pts), loops 4 (6 pts), error handling 2 (4 pts), ternaries 2 (3 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":"headroom/telemetry/session.py"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12ee8ddcf3849f60094ab28f2af58d7cc3b6fac9c4b5bc7d532168f260583f4"}},{"ruleId":"D2","level":"warning","message":{"text":"clean (cognitive 46): clean has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 9 (19 pts), boolean chains 5, loops 2 (3 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":"deploy/beacon/worker.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a7c9eef0c1654b1a98046b8d925adb44b81dafbaef8dfb44644b4a9996ab25"}},{"ruleId":"D2","level":"warning","message":{"text":"codex.audit_codex (cognitive 45): codex.audit_codex has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (31 pts), error handling 3 (9 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 29). 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":"headroom/audit/codex.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a5f483bc7a638d2c350dcbe6757deeac599a505f52381f9f3301af67c7a468"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteMemoryStore._build_query_conditions (cognitive 45): SQLiteMemoryStore._build_query_conditions has cognitive complexity 45 (threshold 15). Drivers by points: if/else 25 (37 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4441b5199f8644947b30358a07637a00fb4a2eb31e1bab52082d06eb23edbf"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackend.search_memories (cognitive 45): LocalBackend.search_memories has cognitive complexity 45 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 5 (12 pts), boolean chains 5, ternaries 1 (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":"headroom/memory/backends/local.py"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b7096f3f94fc90486c1d254c386c0e296079d99530a4b4d379fab41265fe14"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomProxy._retry_request (cognitive 45): HeadroomProxy._retry_request has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (32 pts), boolean chains 9, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/server.py"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e37ce267953907a5d2da365882cec31d7f4bfffd678b3852132daaf190b9d3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolSignature.from_items (cognitive 45): ToolSignature.from_items has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (33 pts), loops 5 (8 pts), boolean chains 3, ternaries 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":"headroom/telemetry/models.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"458d504640db9b30fa8b81f677095ea28a204491ad3860dccc97e0ce3761f87a"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadLifecycleManager._build_tool_metadata (cognitive 45): ReadLifecycleManager._build_tool_metadata has cognitive complexity 45 (threshold 15). Drivers by points: if/else 11 (31 pts), boolean chains 6, loops 3 (5 pts), error handling 1 (3 pts) (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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5dec231c58941439f254c0cfba73f66575b34754b4a110a5c14e09111847c1"}},{"ruleId":"D2","level":"warning","message":{"text":"prefix_tracker.overlay_cached_prefix (cognitive 44): prefix_tracker.overlay_cached_prefix has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (23 pts), ternaries 4 (12 pts), boolean chains 8, loops 1 (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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e4b07c57e45d02c1e5739135f60beef366ecca63bb99d56017880c25e7e187"}},{"ruleId":"D2","level":"warning","message":{"text":"install._apply_manifest (cognitive 44): install._apply_manifest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (20 pts), error handling 9 (13 pts), boolean chains 7, ternaries 2 (4 pts) (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":"headroom/cli/install.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e324c261e7837f1d20c2910ba3a8c198ec5351188402bfe6dc35a010f78cce"}},{"ruleId":"D2","level":"warning","message":{"text":"update.safe_update (cognitive 44): update.safe_update has cognitive complexity 44 (threshold 15). Drivers by points: error handling 8 (20 pts), if/else 11 (18 pts), boolean chains 6 (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":"headroom/cli/update.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030b173d13ac42774154ec12d334350122073d154b45a9dd648d53c0d63099c"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteGraphStore.query_subgraph (cognitive 44): SQLiteGraphStore.query_subgraph has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (38 pts), loops 3 (4 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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"75adb8e70e617d24c2d4615944ce2aeeeb646d789458b31b222c76255631c047"}},{"ruleId":"D2","level":"warning","message":{"text":"verbosity.extract_signals (cognitive 43): verbosity.extract_signals has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (30 pts), loops 6 (9 pts), boolean chains 3, ternaries 1 (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":"headroom/learn/verbosity.py"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ceffe4c4a1d6b7d469d92cdad19d6e1908f5211b5761bfc5e9a31dc4a67207f"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic._load_custom_model_config (cognitive 43): anthropic._load_custom_model_config has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 2 (6 pts), error handling 2 (4 pts), boolean chains 3 (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":"headroom/providers/anthropic.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"016fa5f38f0a88ce95e3b3c3d958ec1d2b3f8eacb84718b97ef5a2318d451e17"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_responses.apply_view (cognitive 43): gateway_responses.apply_view has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (34 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (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":"headroom/proxy/gateway_responses.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e141e492941f9c39aad25272eb25a44ad962d3ed64b76866cf5d29ffef74140f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingMixin._record_ccr_feedback_from_openai_sse (cognitive 43): StreamingMixin._record_ccr_feedback_from_openai_sse has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 7, error handling 3 (6 pts), loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"a963eba687c1efb51541646f74b59873fbeb36c2ca631c79ed4aa22b08d40dfb"}},{"ruleId":"D2","level":"warning","message":{"text":"base._build_tool_use_index (cognitive 43): base._build_tool_use_index has cognitive complexity 43 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 3 (7 pts), error handling 1 (5 pts), boolean chains 2 (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":"headroom/proxy/interceptors/base.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a96b8818d39801ac2b17309ed61a03b979a79a993de816af964d427f61542bc"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction_codec.expand_compacted (cognitive 43): compaction_codec.expand_compacted has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (30 pts), error handling 2 (6 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 23). 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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"488c825958440ca6234ca20d540e982e8895711a6bf8b1c27dc3fd54e41ccaa4"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomClient._create (cognitive 42): HeadroomClient._create has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 6, ternaries 2 (5 pts), error handling 1 (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":"headroom/client.py"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"d385a052f3fdcd69b3ac371f3f8e0ff09a0b60628d6cb338e1cc38c904eb908c"}},{"ruleId":"D2","level":"warning","message":{"text":"mixed_content.split_into_sections (cognitive 42): mixed_content.split_into_sections has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 4 (9 pts), boolean chains 6, error handling 1 (4 pts), ternaries 1 (4 pts) (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":"headroom/transforms/mixed_content.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8e2d7b3d57c56874033af0f74038bcbe57d765fb2a3c39a3c2106f74ab83cad"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher._extract_context_from_messages (cognitive 42): SmartCrusher._extract_context_from_messages has cognitive complexity 42 (threshold 15). Drivers by points: if/else 8 (30 pts), loops 3 (8 pts), boolean chains 4 (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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea9e0848b5e4f087aeb0760249e0f65b8ed9243b262538e23ff14a004cd875fe"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffCompressor::compress_with_ccr_source (cognitive 42): DiffCompressor::compress_with_ccr_source has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (34 pts), loops 4 (7 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"adea3c69f03898a039e91cb56cbedcbbf936df9153347c2350c44e540e1c4f48"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.reindex_memories (cognitive 41): memory.reindex_memories has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 6 (11 pts), loops 4 (8 pts), ternaries 1 (3 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/memory.py"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2fc3dac8a1500fabcf3a4616e587f5dd9e527b4b629fff45a199fffb88d5ea"}},{"ruleId":"D2","level":"warning","message":{"text":"supervisors.install_supervisor (cognitive 41): supervisors.install_supervisor has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 6 (13 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (2 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":"headroom/install/supervisors.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4836320c4f6f7078c9712e9ca255a935a82143ba72529814f48b67c31b37ec"}},{"ruleId":"D2","level":"warning","message":{"text":"LocalBackend.save_memory (cognitive 41): LocalBackend.save_memory has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (24 pts), loops 5 (11 pts), boolean chains 5, ternaries 1 (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":"headroom/memory/backends/local.py"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a881e0014384e5015a8f7e0f4016cecaa8432de37b267c58fa34e9cdc4a231f"}},{"ruleId":"D2","level":"warning","message":{"text":"session_tracking.compute_window_tokens (cognitive 41): session_tracking.compute_window_tokens has cognitive complexity 41 (threshold 15). Drivers by points: if/else 9 (26 pts), error handling 3 (8 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 23). 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":"headroom/subscription/session_tracking.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0dbbfc1955ef83a9ed828e8c98ee5bdd5cba96f2f8fd163d65e373729ed2ea"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor.compress (cognitive 41): CodeAwareCompressor.compress has cognitive complexity 41 (threshold 15). Drivers by points: if/else 24 (32 pts), ternaries 2 (5 pts), boolean chains 3, 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6b40428ed74623910b7f4b2d5d6e3d3c2633ac54c7e20e5fa28acc03a07cbf"}},{"ruleId":"D2","level":"warning","message":{"text":"code_compressor.detect_language (cognitive 41): code_compressor.detect_language has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 7, loops 3 (5 pts), error handling 1 (3 pts) (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":"headroom/transforms/code_compressor.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf13f51282dfd2ffc21dc88ca1720ae958e23d151a935553cd48786883b66f2b"}},{"ruleId":"D2","level":"warning","message":{"text":"rollupHour (cognitive 41): rollupHour has cognitive complexity 41 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 5 (11 pts), error handling 1 (5 pts), ternaries 2 (5 pts), boolean chains 2, other 1 (nesting depth added 24). Of this number, 38 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. 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":"deploy/beacon/worker.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce2d16d13d5ec3169bd63c394b82e5cd1548ff9dce99ef4137eafbdc1ddd5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._ensure_serena_dashboard_disabled (cognitive 40): wrap._ensure_serena_dashboard_disabled has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (29 pts), ternaries 2 (5 pts), loops 2 (3 pts), error handling 2, 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":"headroom/cli/wrap.py"},"region":{"startLine":2414}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a3d0889b3d463a041103fd314cec679bfda211d9e9e040336944fae2edda7a"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomStrandsModel._convert_messages_to_openai (cognitive 40): HeadroomStrandsModel._convert_messages_to_openai has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (29 pts), boolean chains 7, ternaries 1 (3 pts), loops 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":"headroom/integrations/strands/model.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b06bee70ccbd1854f59bd8b93505982c82e21753adfbe2438ec78fcba74f6fc"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectMem0Adapter._save_memory_internal (cognitive 40): DirectMem0Adapter._save_memory_internal has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 18, if/else 9 (16 pts), ternaries 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"735226364c011758207e908050596189823e4d2b319f220ce8c10f5044854de0"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_turn._wire_provider_from_shape (cognitive 40): gateway_turn._wire_provider_from_shape has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (21 pts), ternaries 5 (9 pts), boolean chains 6, loops 3 (4 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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"990c5a2fd57dd1e112a12fb5ecda256efa8113d57c414dafa17a07a3408e1ae1"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin._append_proactive_expansion_after_cached_prefix (cognitive 40): AnthropicHandlerMixin._append_proactive_expansion_after_cached_prefix has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (23 pts), loops 4 (8 pts), boolean chains 7, ternaries 1 (2 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b46ed7e9e4a2168ebf439a33a6b9fb850b33f578f7f78fbc1190da551c93dcd"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseTokenizer._count_content_parts (cognitive 40): BaseTokenizer._count_content_parts has cognitive complexity 40 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 9, loops 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/tokenizers/base.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd83d605caf2523eb9e70b6d3b701bea6ba7c09c327571b96d64e6e7c92c73c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AnchorSelector._select_region_anchors (cognitive 40): AnchorSelector._select_region_anchors has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 3 (11 pts), boolean chains 1 (nesting depth added 26). 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":"headroom/transforms/anchor_selector.py"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"b185811f4e776d89ca54391c817990c7abe10b721aebe75e95ec925130177106"}},{"ruleId":"D2","level":"warning","message":{"text":"AnchorSelector::select_region (cognitive 40): AnchorSelector::select_region has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 3 (11 pts), boolean chains 2 (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":"crates/headroom-core/src/transforms/anchor_selector.rs"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7416a56a6f065ae1e984f1ce090615888ee0e320cdb96c88be5ac3f698b40f39"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming (cognitive 40): headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming has cognitive complexity 40 (threshold 15). Drivers by points: if/else 16 (28 pts), match/switch 9 (10 pts), loops 2 (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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb70bca3f820b90ee81aff82c9a71dfdf16742b7253c38d7bade4b694b585d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::websocket::run_ws_pump (cognitive 40): headroom_proxy::websocket::run_ws_pump has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (23 pts), match/switch 6 (14 pts), loops 3 (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":"crates/headroom-proxy/src/websocket.rs"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71558aad079a15fcd671bd15bfffd8ea8a6784a081c714e5f3fa4dac5017183"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingCCRHandler.process_stream (cognitive 39): StreamingCCRHandler.process_stream has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 6 (14 pts), error handling 3 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/ccr/response_handler.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1318cdeda03d5fd73a3889979b4385a3ac6bef73054ac0466a3921234998be"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._start_proxy (cognitive 39): wrap._start_proxy has cognitive complexity 39 (threshold 15). Drivers by points: if/else 28 (32 pts), boolean chains 4, error handling 2, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bab16e5df441759184cc487d4980c280c7f6dfdf51a93878bae9435a474a4f"}},{"ruleId":"D2","level":"warning","message":{"text":"LoCoMoEvaluatorV2._answer_question (cognitive 39): LoCoMoEvaluatorV2._answer_question has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 5, error handling 2 (4 pts), loops 2 (4 pts), ternaries 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"83aa602040a55e633ce9c307812205e85bc745e503ac45512bd3898d567ff48d"}},{"ruleId":"D2","level":"warning","message":{"text":"planner.build_manifest (cognitive 39): planner.build_manifest has cognitive complexity 39 (threshold 15). Drivers by points: if/else 26 (30 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 7). 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":"headroom/install/planner.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e46aad7ff5cab0f97656aa94fdda14d3057396b6dc5230cc465b0f5316b686"}},{"ruleId":"D2","level":"warning","message":{"text":"traffic_learner._load_persisted_patterns_from_sqlite (cognitive 39): traffic_learner._load_persisted_patterns_from_sqlite has cognitive complexity 39 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 11, error handling 7 (11 pts), ternaries 1 (2 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2afa26834ff4e3d8dab8374b7213de2d75dbc148dada7b5ad8d1576bfa2d745"}},{"ruleId":"D2","level":"warning","message":{"text":"CostTracker.stats (cognitive 39): CostTracker.stats has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 7, boolean chains 2, ternaries 1 (2 pts) (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":"headroom/proxy/cost.py"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"683b2ef7afdc571b4233703a020b6e329c3fd04a5ec8f92d879c12577cf3e4f5"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.apply_session_sticky_memory_tools (cognitive 39): helpers.apply_session_sticky_memory_tools has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 5 (8 pts), boolean chains 4, error handling 1 (3 pts), ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/helpers.py"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"7878e3ad29683583a438cc1121aa4a54600b2f33ec496c861806c0d6ac824d99"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction_codec.factor_values (cognitive 39): compaction_codec.factor_values has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (27 pts), loops 5 (7 pts), boolean chains 4, ternaries 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/compaction_codec.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"144ab3ae56d3379649072e9e0664f872ab5e95177fde93cca44918adfd2fa523"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::code_compressor::collect_definitions (cognitive 39): headroom_core::transforms::code_compressor::collect_definitions has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 4 (13 pts) (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1255}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ec348fdc48166f00a28ee752a159a79af42af82010066bc0044f0acfc793c56"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::crushers::crush_number_array (cognitive 39): headroom_core::transforms::smart_crusher::crushers::crush_number_array has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), loops 3 (6 pts), boolean chains 3 (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":"crates/headroom-core/src/transforms/smart_crusher/crushers.rs"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30b23c8ceaf637666a918dfcda3d5bb0e4a9ff077782dbc46494380e4486f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.opencode (cognitive 38): wrap.opencode has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (25 pts), error handling 3 (5 pts), boolean chains 4, ternaries 4 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":8953}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7c8b7cfa5c483cb127f0edc47b9ad4000ca454a189f8304490cb4125c39fed"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryGraphStore.query_subgraph (cognitive 38): InMemoryGraphStore.query_subgraph has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 3 (4 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"f134bf2b64abc6baf61887e65255bc2dae61e247e25e420bc9a9681a26ffbf14"}},{"ruleId":"D2","level":"warning","message":{"text":"InMemoryGraphStore.find_path (cognitive 38): InMemoryGraphStore.find_path has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (31 pts), loops 2 (3 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd0e039abf929e16f72d17a3074f05a20cf6ef79b6867d113a8916db602b7b6"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._responses_input_to_learner_messages (cognitive 38): openai._responses_input_to_learner_messages has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 2 (7 pts), boolean chains 4, error handling 1 (4 pts), loops 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1330}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf7142ac3ab61925be4e3f86e17af85e55efe5eecddc720655b7d73cf1999ee"}},{"ruleId":"D2","level":"warning","message":{"text":"outcome.emit_request_outcome (cognitive 38): outcome.emit_request_outcome has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 12, error handling 2 (4 pts), ternaries 4 (nesting depth added 6). 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":"headroom/proxy/outcome.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"5240ec819b6bc2476463bdcde774467714b7dbe16e160b997ea4b9e1291262b6"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction_codec._iter_rows (cognitive 38): compaction_codec._iter_rows has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 3 (7 pts), boolean chains 6 (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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23331b17417c908beba9d9d37ee8d69f66e55c6a8a8b12552496f6c30f5a04a"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_calls.extract_tool_calls (cognitive 37): tool_calls.extract_tool_calls has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 5, ternaries 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":"headroom/ccr/tool_calls.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50eef709daf184e5d37d340372c3b1a7ceef8c6a1d55eb278988674722a0b7d"}},{"ruleId":"D2","level":"warning","message":{"text":"Mem0Backend.query (cognitive 37): Mem0Backend.query has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 9, ternaries 2, error handling 1, 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":"headroom/memory/backends/mem0.py"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a50e27c829e2d0bc87ac788fad095af585031d05c35b85c5788581abe262d05"}},{"ruleId":"D2","level":"warning","message":{"text":"traffic_learner._refine_error_recovery (cognitive 37): traffic_learner._refine_error_recovery has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 4, error handling 1 (4 pts), loops 4 (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":"headroom/memory/traffic_learner.py"},"region":{"startLine":2077}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac69bd135d220fdc2fb3a151599fb3c26f63e7d9b6ff2fbc3bf0fb1b8b48ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"memory_query_policy.extract_memory_query_sources (cognitive 37): memory_query_policy.extract_memory_query_sources has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (31 pts), boolean chains 5, loops 1 (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":"headroom/proxy/memory_query_policy.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82bd3c551dbcc3365dc3707ac645d0f215706d3434c57b7fdbd396b3c153a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryToolStreamFilter._route (cognitive 37): MemoryToolStreamFilter._route has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 8, ternaries 1 (2 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":"headroom/proxy/memory_tool_stream.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d39740c0b31b480e75a30b25a0806d2c12ea0015373f62a4cb5713a0075d89b"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::reduce_context (cognitive 37): headroom_core::transforms::diff_compressor::reduce_context has cognitive complexity 37 (threshold 15). Drivers by points: loops 9 (18 pts), if/else 10 (12 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 12). 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dea8b4c773339837bcdf061bd895944a9728658752353a22e2faa4cf951166"}},{"ruleId":"D2","level":"warning","message":{"text":"claude_analysis_ttl.main (cognitive 36): claude_analysis_ttl.main has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 9 (11 pts), ternaries 5 (6 pts), error handling 1 (2 pts), boolean chains 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":"claude_analysis_ttl.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fafb211323c23af3bcbab49d6176a6ce9eb665a7dfc344572ec94fcf5d4580"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionStore._evict_if_needed (cognitive 36): CompressionStore._evict_if_needed has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 9, loops 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":"headroom/cache/compression_store.py"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"952ad5abdc2302fb00f4eaf2f51fea1de19ca011ad6779a8c48512d1445f5b09"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONStructureHandler._extract_mask (cognitive 36): JSONStructureHandler._extract_mask has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a223216fd04302a1f5ebe7a488c6097bb0a5539e817582d2684235642c8f405"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor._count_result_tokens (cognitive 36): ImageCompressor._count_result_tokens has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (31 pts), loops 2 (3 pts), boolean chains 1, ternaries 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":"headroom/image/compressor.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07151648f6616c001aa189d9ebb74b982549b4dac39244dda66650305ec0c57"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPlugin._scan_json_session (cognitive 36): CodexPlugin._scan_json_session has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (21 pts), ternaries 2 (8 pts), error handling 2 (5 pts), boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/plugins/codex.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf45b82a804996bfb0c7c094d54a935471aaaacaba217c0ca7a652ca1e714c5"}},{"ruleId":"D2","level":"warning","message":{"text":"anthropic_wire._render_known_response (cognitive 36): anthropic_wire._render_known_response has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 4 (8 pts), boolean chains 4, ternaries 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/anthropic_wire.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e365aeac6456ccb585652286231ebae9f8be550cf9ec283c5807189ee4da96"}},{"ruleId":"D2","level":"warning","message":{"text":"cost.build_session_summary (cognitive 36): cost.build_session_summary has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (20 pts), boolean chains 6, ternaries 4 (5 pts), loops 2 (3 pts), error handling 1 (2 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":"headroom/proxy/cost.py"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7fa60ede3e05b42a2321b379c693b4d12efaba1d69cfacbe5e34c3d32e8395"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::bedrock::eventstream::parse_headers (cognitive 36): headroom_proxy::bedrock::eventstream::parse_headers has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (33 pts), match/switch 1 (2 pts), loops 1 (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":"crates/headroom-proxy/src/bedrock/eventstream.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8713177e5fcdb9b9cf205c11293006f3a07dc985c1514dbfe205404d1ac3d739"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend.send_openai_message (cognitive 35): LiteLLMBackend.send_openai_message has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 15, if/else 11 (15 pts), ternaries 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/backends/litellm.py"},"region":{"startLine":1816}}}],"partialFingerprints":{"codehealthFindingId/v1":"360105e3153a13f0958b05ad0899d8ef84e298acd870cac3046fca491b74aec9"}},{"ruleId":"D2","level":"warning","message":{"text":"recover.recover_codex (cognitive 35): recover.recover_codex has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 5 (13 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/recover.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53982d4bcef52cdd39964de08da08efc27129d2a9a758d5d6900e1595db4051"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._remove_claude_wrap_selfheal_hook (cognitive 35): wrap._remove_claude_wrap_selfheal_hook has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (29 pts), loops 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":2118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5782b30c2ca1d56a6133d6ddf8a83fc6814f3f27bd28384e266f88b6277d22e2"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner.extract_tool_results_from_openai_messages (cognitive 35): TrafficLearner.extract_tool_results_from_openai_messages has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 5, loops 3 (4 pts), error handling 1 (3 pts), ternaries 1 (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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"633c2703aad9c007e5ad9a2496c92dc06bf8c85ab39e364b3b590ac98a61458d"}},{"ruleId":"D2","level":"warning","message":{"text":"lossless_compaction.compact_lossless (cognitive 35): lossless_compaction.compact_lossless has cognitive complexity 35 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 5 (10 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adbfcc0f359bda45a1bee7d15ab4fadf69a493bd881bf39386656a90fbc6dab"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::outliers::detect_rare_status_values (cognitive 35): headroom_core::transforms::smart_crusher::outliers::detect_rare_status_values has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts), match/switch 1 (2 pts) (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":"crates/headroom-core/src/transforms/smart_crusher/outliers.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7ad27ee0ba4aa589b59f6520075504a2ae5aaf4bcc3268f1d10a4dbe4f910a"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::vertex::raw_predict::forward_vertex_request (cognitive 35): headroom_proxy::vertex::raw_predict::forward_vertex_request has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (21 pts), match/switch 11 (13 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":"crates/headroom-proxy/src/vertex/raw_predict.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5125d4d55f52fd6f94fcd7ba3804c960002433fe0f30bb8b52cd49a144ad060e"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.list_memories (cognitive 34): memory.list_memories has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (25 pts), ternaries 2 (5 pts), error handling 2, boolean chains 1, loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/memory.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c40a1312149099ac1aa822af736a463619566a664292d8a6590366aec2a46b9"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._restore_codex_provider_config (cognitive 34): wrap._restore_codex_provider_config has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (25 pts), ternaries 2 (6 pts), error handling 1 (2 pts), boolean chains 1 (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":"headroom/cli/wrap.py"},"region":{"startLine":4034}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66b9e88795fd227298861ffc4581ba4a3da2df84c92e4ca2323f6cec37c66ad"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteGraphStore.find_path (cognitive 34): SQLiteGraphStore.find_path has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 2 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0698df35088c2b49d5270ddbfaf2f75bdcfb76d3eb9bdcb25cd63b855308c6"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiHandlerMixin.handle_gemini_count_tokens (cognitive 34): GeminiHandlerMixin.handle_gemini_count_tokens has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (26 pts), error handling 4 (5 pts), boolean chains 2, 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"9484451eb91cbb840d814590e5f75a88352045fd483f4755f66e9da86e232881"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryHandler.search_and_format_context (cognitive 34): MemoryHandler.search_and_format_context has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (18 pts), ternaries 4 (6 pts), boolean chains 5, error handling 3 (4 pts), loops 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"1132fc70b13d8cbcc30ec9ea4fbb55c4aa23e2417734865b6dc4abd79bc0826d"}},{"ruleId":"D2","level":"warning","message":{"text":"utils.extract_user_query (cognitive 34): utils.extract_user_query has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (27 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (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":"headroom/utils.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dca69ac68f91a9605040e747c2108862b3c41ae86029873ad9cf616eab20613"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::code_compressor::detect_language (cognitive 34): headroom_core::transforms::code_compressor::detect_language has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (26 pts), loops 4 (5 pts), boolean chains 3 (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"249a5c096b7735b05ea0d433249ab22eeae5481e44abd4dccf607ad7a7015b86"}},{"ruleId":"D2","level":"warning","message":{"text":"supervisors.remove_supervisor (cognitive 33): supervisors.remove_supervisor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 5 (11 pts), boolean chains 2, loops 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":"headroom/install/supervisors.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fb94786446e57c8cc9254e1de01e929772524dc13cde1430db655de9812fb5"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryHandler._extract_tool_calls (cognitive 33): MemoryHandler._extract_tool_calls has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 4, ternaries 1 (2 pts) (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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b80783e0a9857afe077232d7acc760701a43dc879ea081a1bb6a0a8db49b976"}},{"ruleId":"D2","level":"warning","message":{"text":"server.run_server (cognitive 33): server.run_server has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (16 pts), ternaries 8 (15 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":"headroom/proxy/server.py"},"region":{"startLine":6862}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce563f466e1b62a0852e61dede6a349a69a835213b8f64f9fe4fdc24c612fb4"}},{"ruleId":"D2","level":"warning","message":{"text":"savings_ledger.record_savings_event (cognitive 33): savings_ledger.record_savings_event has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (23 pts), error handling 4 (6 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/savings_ledger.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e40c923bd56ecb39f662cb134cf484903a203d8052b4492bf48c6422c5dcc21"}},{"ruleId":"D2","level":"warning","message":{"text":"thinking_compactor.compact_reasoning_openai_chat (cognitive 33): thinking_compactor.compact_reasoning_openai_chat has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 6, loops 1, ternaries 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":"headroom/transforms/thinking_compactor.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b678a6edcb5c98ccf5871cea3b002a7d079cea9a758fd11b9b252c912b3977f"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomMCPServer._handle_stats (cognitive 32): HeadroomMCPServer._handle_stats has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (29 pts), ternaries 1 (2 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":"headroom/ccr/mcp_server.py"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d59801c99398a71415ac7d8a1591366b939ee4bfbb6afd4d6d6fb541e56edd"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionOnlyRunner.evaluate_tool_schema_compaction (cognitive 32): CompressionOnlyRunner.evaluate_tool_schema_compaction has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 4 (10 pts), ternaries 4 (6 pts), error handling 1 (2 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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"a791c2f78f96c5725e566261b4ec725b9850556c3b55ee1912713b4e1a6d8208"}},{"ruleId":"D2","level":"warning","message":{"text":"supervisors._parse_windows_task_xml (cognitive 32): supervisors._parse_windows_task_xml has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 4 (13 pts), boolean chains 1 (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":"headroom/install/supervisors.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be4e6ec2f8a593b17f89fe14671ecb0a4562799513bf763303dba3e546d50e4"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomAgnoModel._convert_messages_to_openai (cognitive 32): HeadroomAgnoModel._convert_messages_to_openai has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 6, ternaries 1 (3 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/agno/model.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c13d13f2d5776c150b2bb0979198e77f07c07fedbb6d4cd46fe3bfcaff832d0"}},{"ruleId":"D2","level":"warning","message":{"text":"analyzer._build_digest (cognitive 32): analyzer._build_digest has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 3 (7 pts), boolean chains 1, 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":"headroom/learn/analyzer.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"10af058ec8057b336c41cd470de066fe77be9a20dd77e05da4fac5f0f974e7c2"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomProxy._start_kompress_background_warmup (cognitive 32): HeadroomProxy._start_kompress_background_warmup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 4 (9 pts), boolean chains 3, loops 2 (3 pts) (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":"headroom/proxy/server.py"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b0174ee1bdce99fb7aa730be81d630304de0457c14d689038f21373910c1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"Ctx::visit (cognitive 32): Ctx::visit has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 3 (5 pts), match/switch 1 (2 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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11db5447e387bc4baaa540eaeee3c0cbb4a1d59f42d57f673f877d86093ee56"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::crushers::crush_string_array (cognitive 32): headroom_core::transforms::smart_crusher::crushers::crush_string_array has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (25 pts), loops 4 (7 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":"crates/headroom-core/src/transforms/smart_crusher/crushers.rs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a84f1262b897c9809bc309b5abe599cfa7d8b52324faacde67e8f9999d689b"}},{"ruleId":"D2","level":"warning","message":{"text":"convert.normalizeAssistantContent (cognitive 32): convert.normalizeAssistantContent has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 4 (13 pts), boolean chains 6 (nesting depth added 14). Most of this is not in the body itself: 4 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 480). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6aac131c003075a0148e23deecc0e0985edf337a9035f85a53c18eb2999665d"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedSessions.fetch (cognitive 31): SharedSessions.fetch has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 5 (7 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (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":"headroom/cache/shared_sessions.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25dfa820ecc35541d034a77b22c482324d7414d5d8813af091fca4f842ad70c"}},{"ruleId":"D2","level":"warning","message":{"text":"context_tool_cleanup._prune_hooks (cognitive 31): context_tool_cleanup._prune_hooks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (3 pts), ternaries 1 (3 pts) (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":"headroom/context_tool_cleanup.py"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"23823cfdd2150d96a4f2827441c103ee1e2007b55116fb26a677f31197de5774"}},{"ruleId":"D2","level":"warning","message":{"text":"report_card.generate_markdown (cognitive 31): report_card.generate_markdown has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 8 (24 pts), loops 2 (4 pts), if/else 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/reports/report_card.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df0fb9dc2c1c3e2529de95380e5484f82938101cd3a6512d311830b41d4137"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenCodePlugin._scan_session_legacy (cognitive 31): OpenCodePlugin._scan_session_legacy has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (8 pts), boolean chains 6, error handling 2 (6 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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ea7f99d2001b38f8e981f31e6b585de723a9a620d420269f12c76079783915"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._openai_responses_to_sse (cognitive 31): openai._openai_responses_to_sse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 2 (4 pts), boolean chains 3 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"7335d84f262557a5f06f74dc1ff317a7c87587284c3fba4a2b170cdb2984af4d"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.history_references_ccr_tool (cognitive 31): helpers.history_references_ccr_tool has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (7 pts), ternaries 1 (4 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":"headroom/proxy/helpers.py"},"region":{"startLine":2897}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e20f3109660a8defdf3a0c6cc3a4a270acb72fa36c092aab1e6ba6a2951fdc"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIntelligenceNetwork.record_compression (cognitive 31): ToolIntelligenceNetwork.record_compression has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 3, boolean chains 1, 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":"headroom/telemetry/toin.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a3208d25790963eb69dab7ab6c63cfc2d6c601f3928b9c25c492a92e5609e8"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::score_hunks (cognitive 31): headroom_core::transforms::diff_compressor::score_hunks has cognitive complexity 31 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 5 (12 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6ec64e489002eeb179eb88bda8f53d6adef21e915c596c786873bb3ca37b11"}},{"ruleId":"D2","level":"warning","message":{"text":"audit.audit_reads_cmd (cognitive 30): audit.audit_reads_cmd has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (30 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":"headroom/cli/audit.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20f1ba06f50e20774b7274412a38021ea4346225972ec66425a0a700a844b2d"}},{"ruleId":"D2","level":"warning","message":{"text":"report_card.generate_html (cognitive 30): report_card.generate_html has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 17 (27 pts), loops 2, if/else 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":"headroom/evals/reports/report_card.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc2d032604ce2a96263b8dc87a02c2cf8e3acccd2aff72b3dbba41db453c38d"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor._extract_image_data (cognitive 30): ImageCompressor._extract_image_data has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 2 (3 pts) (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":"headroom/image/compressor.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de6578bd906c9a4338f3040c233eb2b250318ea10121e2beedbbf994b18495f"}},{"ruleId":"D2","level":"warning","message":{"text":"grok._extract_tool_output (cognitive 30): grok._extract_tool_output has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (24 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":"headroom/learn/plugins/grok.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"985f847ae0aab7f02293773a02747bc706ec0e7a48261b46a664f8e63c7348a9"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.native_api_url_supported (cognitive 30): wrap.native_api_url_supported has cognitive complexity 30 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 4 (10 pts), error handling 1 (4 pts), ternaries 2, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/copilot/wrap.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0cbcb696c808d03037f460abc890415851a63317a4351505519fc3e76da440"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchHandlerMixin._compress_batch_jsonl (cognitive 30): BatchHandlerMixin._compress_batch_jsonl has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 2 (5 pts), ternaries 3, boolean chains 2, loops 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5291dfaf93667ab661d91687aac02384aa87fd7910402f0b746601302ef54513"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiHandlerMixin.handle_google_cloudcode_stream (cognitive 30): GeminiHandlerMixin.handle_google_cloudcode_stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (22 pts), ternaries 3 (4 pts), error handling 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d4d84b9752128eeab9e2a1c2ab989e5673721f5c424ce321fef2d7d48280ca"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestOutcome.from_stream (cognitive 30): RequestOutcome.from_stream has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (19 pts), ternaries 2 (5 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 16). 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":"headroom/proxy/outcome.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f995e7ffb3e0e556734be3bf5486bfb2548513b4103196b2c8c261524b6bff6e"}},{"ruleId":"D2","level":"warning","message":{"text":"base._pdf_png_rows (cognitive 30): base._pdf_png_rows has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 4 (18 pts), if/else 3 (7 pts), loops 2 (4 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":"headroom/tokenizers/base.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b2be961e58eadeb8a72f6790ad0fa4289d082c234d1e46c087ac53352f748e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor._extract_structure (cognitive 30): CodeAwareCompressor._extract_structure has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49fac1f1ecdcf62e0eacc54f21d826dd828002002ad4b85d60799acae6c3ef1"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._compress_mixed (cognitive 30): ContentRouter._compress_mixed has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, error handling 1 (3 pts), ternaries 2, 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":"headroom/transforms/content_router.py"},"region":{"startLine":3674}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b72cb6fcef9a253ec1048e44b68e855de12a9ae5d90eda9ecd19da03e58c6ae"}},{"ruleId":"D2","level":"warning","message":{"text":"thinking_compactor.compact_thinking_to_text (cognitive 30): thinking_compactor.compact_thinking_to_text has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 4, loops 2 (3 pts), ternaries 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":"headroom/transforms/thinking_compactor.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b2ae908345ac95607d6b5b4b2e57c422897587b6193e892bb73277d5d0eccb8"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::live_zone::compress_openai_responses_live_zone (cognitive 30): headroom_core::transforms::live_zone::compress_openai_responses_live_zone has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 4 (6 pts), loops 4, boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"8315f23cefd9af3e1daf37b61a2da6348b0e5f15a1f449197dc8ac25b4d8536a"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke::handle_invoke (cognitive 30): headroom_proxy::bedrock::invoke::handle_invoke has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (20 pts), match/switch 8, loops 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fc072a641a981e8b1c51f4cc2cb7dd82a3d36966faf7ad7931e3497c6b21e4"}},{"ruleId":"D2","level":"warning","message":{"text":"format.vercelMediaImageUrl (cognitive 30): format.vercelMediaImageUrl has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 6, ternaries 3 (4 pts) (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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b93f1648adf6f8507aa8f5fcd27cde65c0726d5a057e3bce92a084213f19de"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend.send_message (cognitive 29): LiteLLMBackend.send_message has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 5, error handling 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":"headroom/backends/litellm.py"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a874bab4e77cad2a771a504d5a99ed8d7329cd6168aec97855a139758869e9"}},{"ruleId":"D2","level":"warning","message":{"text":"ttl_estimator.estimate_ttls (cognitive 29): ttl_estimator.estimate_ttls has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 6, error handling 1 (2 pts), loops 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":"headroom/cache/ttl_estimator.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87d181f83429cca698d6357bab1ea94c687642c963aacc0dbc01a7118d6c2f6"}},{"ruleId":"D2","level":"warning","message":{"text":"inspect._render_request (cognitive 29): inspect._render_request has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 9, ternaries 4 (9 pts), if/else 4 (8 pts), loops 2 (3 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":"headroom/cli/inspect.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"76abc200f952bfd849bc774df28711eccd00a3212bdaaade8985b69ad9eff8de"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.unwrap_claude (cognitive 29): wrap.unwrap_claude has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (25 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":"headroom/cli/wrap.py"},"region":{"startLine":6901}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c002295a11e02a0ae9c1cfb93d837520a42aca63b4f4b6caf3b3af5a847aae8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodePlugin.discover_projects (cognitive 29): ClaudeCodePlugin.discover_projects has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, ternaries 1 (2 pts), 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"00415142485b43a01dbcbbcb1e94424e3b58e911db341b947ec3d500dc316679"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiHandlerMixin._gemini_contents_to_messages (cognitive 29): GeminiHandlerMixin._gemini_contents_to_messages has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (4 pts), ternaries 1 (2 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c199a561edbc544b3daef021ad22eb27aa1437ac44c941c38dc72805a72d16d"}},{"ruleId":"D2","level":"warning","message":{"text":"SavingsTracker._sanitize_state (cognitive 29): SavingsTracker._sanitize_state has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, loops 1 (2 pts), ternaries 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"721391e1f54922f7671a9ba5ba24619e98d882748f16c386288d02f1f6d26b3a"}},{"ruleId":"D2","level":"warning","message":{"text":"turn_hooks.run_request_hooks (cognitive 29): turn_hooks.run_request_hooks has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (4 pts), ternaries 2 (4 pts), boolean chains 3, loops 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":"headroom/proxy/turn_hooks.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f326d56dfaab730d2e3bcf0985d75f0e2bd6f89b8671d324e3b1c71b0dae6606"}},{"ruleId":"D2","level":"warning","message":{"text":"savings_ledger.aggregate_savings (cognitive 29): savings_ledger.aggregate_savings has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 10, error handling 3 (7 pts), if/else 3 (6 pts), loops 2 (3 pts), ternaries 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":"headroom/savings_ledger.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8474bedf8f4be566b8a6b03a350ccc3d4bb9f65e1fc358670efc9a58d73fe4"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter.compress (cognitive 29): ContentRouter.compress has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 4 (10 pts), boolean chains 5 (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":"headroom/transforms/content_router.py"},"region":{"startLine":3366}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8eb588fbe1fcfc99ec3576a101cae77ead1c32c5726c2cd91ac6e22dfbdfbee"}},{"ruleId":"D2","level":"warning","message":{"text":"update_check._select_latest (cognitive 29): update_check._select_latest has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 6, error handling 2 (6 pts), 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":"headroom/update_check.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"0652e35d01e8a0b7f5e1700ab3ef9dc6db795b223ebcb2bc94448719747cd9e1"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchCompressor::score_matches (cognitive 29): SearchCompressor::score_matches has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (15 pts), loops 4 (9 pts), match/switch 1 (5 pts) (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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"9561232cbbd8fa8fd5b33770bf27286532c3f44677f7c1ee4f78d85920a8a62a"}},{"ruleId":"D2","level":"warning","message":{"text":"compress.compress (cognitive 28): compress.compress has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 4 (5 pts), boolean chains 4, error handling 1, 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":"headroom/compress.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4b6e3695d723a33312ac3556fb59fcecc6d6203d7f36a48e7841fdc2b7e946"}},{"ruleId":"D2","level":"warning","message":{"text":"providers._extract_model_id (cognitive 28): providers._extract_model_id has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (6 pts), boolean chains 3, error handling 1 (2 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56d4ffa5b69285751cbc9d3c6f924efc1c61bd538389a822f336d0b0b9cf752"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery._merge_database (cognitive 28): recovery._merge_database has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, loops 2 (4 pts), error handling 2 (3 pts), ternaries 1 (2 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":"headroom/providers/codex/recovery.py"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6110418f176498d99a0d04c08f059031e278dd9a38acd594e1ab922c81f2ae"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin.handle_compress_usage (cognitive 28): OpenAIHandlerMixin.handle_compress_usage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, error handling 3 (4 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":11908}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb384e7facb29e88c5ddda7bff60579dd1fe93516f52bed0249c3b7994d1003e"}},{"ruleId":"D2","level":"warning","message":{"text":"_PdfReader.read_xref_stream (cognitive 28): _PdfReader.read_xref_stream has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 4 (7 pts), boolean chains 4, 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":"headroom/tokenizers/base.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51e668cbc1312d530559dbf5e8d2cac61cb2e2162a96e0533d415f89668d901"}},{"ruleId":"D2","level":"warning","message":{"text":"evals._run_memory_eval (cognitive 27): evals._run_memory_eval has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 5, error handling 3 (4 pts), ternaries 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":"headroom/cli/evals.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb81019d3822099412adde494e697e0cefc285e1a3401cf207ae363be97ec3fa"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner.extract_tool_results_from_messages (cognitive 27): TrafficLearner.extract_tool_results_from_messages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 4 (6 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"417625a533793347106cd9873633bd3744065b5d1556c87aacf4e0b477ae8480"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProjectContextResolver._rollout_for_thread (cognitive 27): CodexProjectContextResolver._rollout_for_thread has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), ternaries 3 (6 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/codex/project_context.py"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"243191fb4b16156c4d1d99e416026d2ed1eac9f2d6b3a48ebb1d4dcfbc3bf19e"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestTransformer.run (cognitive 27): RequestTransformer.run has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 9, error handling 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/gateway_turn.py"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"33944e7bb5b1dbf92e5bf2e3a3b74eba8595edaa31060cfe5ae1b75b47cac014"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor.should_apply (cognitive 27): CodeAwareCompressor.should_apply has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (21 pts), loops 2 (4 pts), boolean chains 2 (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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"670525ba1b54321ee92c4d916bbc2dd68022ef1a61689a77c622b57f74877bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"Ctx::compress_class_ast (cognitive 27): Ctx::compress_class_ast has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 3 (5 pts), match/switch 1 (3 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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1729}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8622190256710326a4b1afce61181d37d10705b9ff8d83898a56d6705a92b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::anchor_selector::write_python_json_inner (cognitive 27): headroom_core::transforms::anchor_selector::write_python_json_inner has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (8 pts), match/switch 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":"crates/headroom-core/src/transforms/anchor_selector.rs"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b8d09858905c6a4d02a606014d407c1b5431904372e8493197232ef7aa2c17"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::orchestration::numeric_anomaly_indices (cognitive 27): headroom_core::transforms::smart_crusher::orchestration::numeric_anomaly_indices has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 2 (3 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":"crates/headroom-core/src/transforms/smart_crusher/orchestration.rs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fc35ea954fb07257fad5b45e351c8fe63cdd02ed13cc1f3b9cdfc9cc276ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::tag_protector::parse_tag_at (cognitive 27): headroom_core::transforms::tag_protector::parse_tag_at has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 4 (7 pts), boolean chains 4, match/switch 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":"crates/headroom-core/src/transforms/tag_protector.rs"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08485a33ca12b01ea2cf829d7d6f80e441d8c00f085356b379878afb0846bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::cache_stabilization::anthropic_cache_control::any_anthropic_cache_control (cognitive 27): headroom_proxy::cache_stabilization::anthropic_cache_control::any_anthropic_cache_control has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 4 (10 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":"crates/headroom-proxy/src/cache_stabilization/anthropic_cache_control.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7878876eb10dacd9fe2f8d407582e614ec99030be4ec667196eb618b260dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchResultProcessor._messages_to_google_contents (cognitive 26): BatchResultProcessor._messages_to_google_contents has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (4 pts), ternaries 1 (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":"headroom/ccr/batch_processor.py"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f87a08e3c9fffea5d930d24cc6acdf140c8859e7d7c47b5cbdd68796b614fe9"}},{"ruleId":"D2","level":"warning","message":{"text":"CCRResponseHandler.handle_response (cognitive 26): CCRResponseHandler.handle_response has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts), 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":"headroom/ccr/response_handler.py"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5b31118c2edae053ed888e7db3bf62d9db5aeb066f046408062f53e7643dd7"}},{"ruleId":"D2","level":"warning","message":{"text":"claude._component_tokenizations (cognitive 26): claude._component_tokenizations has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (3 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4bb8c70245fa4f79734ed243bb3a6cd34489f160a90dacfd724a56b57067e2"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexPlugin._scan_jsonl_session (cognitive 26): CodexPlugin._scan_jsonl_session has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1, loops 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":"headroom/learn/plugins/codex.py"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d2c5fd25cd7f0d1b076c48da156da36faed1a7fa357db9400628c06f71906e"}},{"ruleId":"D2","level":"warning","message":{"text":"GrokPlugin._scan_session (cognitive 26): GrokPlugin._scan_session has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (19 pts), error handling 2 (3 pts), ternaries 1 (2 pts), boolean chains 1, loops 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":"headroom/learn/plugins/grok.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d769e389eea506b246f86f6327b1a3b7c2ca703088838a076b4d8ae4a969d716"}},{"ruleId":"D2","level":"warning","message":{"text":"verbosity._ordered_events (cognitive 26): verbosity._ordered_events has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (11 pts), ternaries 3 (9 pts), error handling 2 (3 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":"headroom/learn/verbosity.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"69601ec9c53ca8e29001287a04b35f9541d7fae256dd21712f6a8a1a90511000"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner.flush_to_file (cognitive 26): TrafficLearner.flush_to_file has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), error handling 4 (6 pts), loops 2, boolean chains 1 (nesting depth added 6). 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fe8e9e88a6e8d087d2661c27d474355ac79702f5d77411e67b325d0432617b"}},{"ruleId":"D2","level":"warning","message":{"text":"CohereProvider.get_context_limit (cognitive 26): CohereProvider.get_context_limit has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 1 (3 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":"headroom/providers/cohere.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e7a6edd53b004e3f8dcddbe543a73ad0526d5ff22925542313a74ecdd9875a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._codex_ws_text_shape (cognitive 26): openai._codex_ws_text_shape has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 5 (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"af70b885e1a60597d4e1035ef1c556f440a5015f37cd85557eaf9d6b3120e555"}},{"ruleId":"D2","level":"warning","message":{"text":"savings._compute (cognitive 26): savings._compute has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 12 (13 pts), if/else 7 (8 pts), boolean chains 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/savings.py"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8fbd4ee3163c31326f363625393d5e235cad0770f31ac17a91e4436b8b252b"}},{"ruleId":"D2","level":"warning","message":{"text":"content_router._mask_quoted (cognitive 26): content_router._mask_quoted has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 5, loops 2 (4 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":"headroom/transforms/content_router.py"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9a02daff9840561db7c34312c0a234d55e0e890fcbf9f18b98973f46a50ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"kompress_compressor._load_kompress (cognitive 26): kompress_compressor._load_kompress has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 4 (8 pts), ternaries 1 (2 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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"76964b97c753bf508bf4a524ffd21af4c2055a36b053225eadedb9693b04eef3"}},{"ruleId":"D2","level":"warning","message":{"text":"smart_crusher._build_tool_name_index (cognitive 26): smart_crusher._build_tool_name_index has cognitive complexity 26 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"920d5c908b2fa3cdae408cc46cf9c60b456fb4a653e57a0aee17891afd5fca14"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime-proof.run_case (cognitive 26): runtime-proof.run_case has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, loops 4, ternaries 3, error handling 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/scripts/runtime-proof.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"b843f80e2baae62518a9aae551ec231ad966a281a3c45141456c1907d87a0f30"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusherPlanner::plan_top_n (cognitive 26): SmartCrusherPlanner::plan_top_n has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 4 (6 pts), boolean chains 3, match/switch 1 (2 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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bb3085cb29c15218482927ca6232861a518af3e2d578b78f885653820a6d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::cache_stabilization::volatile_detector::walk_openai (cognitive 26): headroom_proxy::cache_stabilization::volatile_detector::walk_openai has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (4 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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"87527b4731b88a8171f2166c3197c9ca835dd495b56dc461b829eff7f0b5df04"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyManager.start (cognitive 26): ProxyManager.start has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 5 (7 pts), boolean chains 6, loops 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba93a8562024ae5bc2d275db589430556caecedb4262bff6f868400a6781d179"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend.map_model_id (cognitive 25): LiteLLMBackend.map_model_id has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4 (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":"headroom/backends/litellm.py"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4713932ff514bd95fbca419d154a3330e505b3821271a0bd7af6722349bf47"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexDetector.detect (cognitive 25): RegexDetector.detect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 5 (7 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":"headroom/cache/dynamic_detector.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f738286fcdf0c11b9951e87062c4cc86af50acde4d56e89c929874b4dd3f166a"}},{"ruleId":"D2","level":"warning","message":{"text":"install.install_status (cognitive 25): install.install_status has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (10 pts), boolean chains 5 (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":"headroom/cli/install.py"},"region":{"startLine":1164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36233b82fc15d9c60d95d2f9bcaa6c567da8c42a6a3376552e80d419f5390d3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor.has_images (cognitive 25): ImageCompressor.has_images has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (21 pts), loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/image/compressor.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcddf631d2cbfee7127ae6b534fec7e99d78d7a091bee65b8d89838df90a663"}},{"ruleId":"D2","level":"warning","message":{"text":"ledger._read_ledger (cognitive 25): ledger._read_ledger has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 4, boolean chains 3, 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":"headroom/mcp_registry/ledger.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"237eb5ee403e9d57f9302a986fb32365487da043df93212247613f046bcb28ec"}},{"ruleId":"D2","level":"warning","message":{"text":"HNSWVectorIndex._passes_filter (cognitive 25): HNSWVectorIndex._passes_filter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14 (21 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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43284ab93d8edb82cbc8f9d9f92efe4ea8be2d207311672d9eb56d484ed222f"}},{"ruleId":"D2","level":"warning","message":{"text":"counterfactual.resolve_rates (cognitive 25): counterfactual.resolve_rates has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 8, ternaries 3 (4 pts) (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":"headroom/pricing/counterfactual.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6aef42855e803bbb825669ab771b902de0fe65c2db80c10e6374420e8f7c97"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._responses_input_to_waste_messages (cognitive 25): openai._responses_input_to_waste_messages has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, ternaries 1 (3 pts), 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd2f71e86b9de9b8b75d27fdccb6e086a18ee0e47e9cf78475d625bef0569cf"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers._inflate_bounded (cognitive 25): helpers._inflate_bounded has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, loops 2 (3 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":"headroom/proxy/helpers.py"},"region":{"startLine":3145}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e56912348ccee7bda4c8e429e52a524830dce364fb03f814298d9899637568"}},{"ruleId":"D2","level":"warning","message":{"text":"anchor_selector._calculate_value_uniqueness (cognitive 25): anchor_selector._calculate_value_uniqueness has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (5 pts), ternaries 2 (5 pts), loops 3 (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":"headroom/transforms/anchor_selector.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59deb605e60c76503de7db97c2df569ac66793b18adc21435062549605cbfa1"}},{"ruleId":"D2","level":"warning","message":{"text":"content_detector._try_detect_json (cognitive 25): content_detector._try_detect_json has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 4 (7 pts), boolean chains 2, ternaries 1 (2 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":"headroom/transforms/content_detector.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9f559816313e055f9ec5b032486e85c2ec945377b96f80e83b61d1c4395294"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._net_cost_allows (cognitive 25): ContentRouter._net_cost_allows has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (6 pts), boolean chains 4, error handling 2 (3 pts) (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":"headroom/transforms/content_router.py"},"region":{"startLine":6187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0d8c984f56100d9cd6647e09427bbb9509b2cd78b0b90beca5b899b434fdd6c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::log_compressor::is_summary_line (cognitive 25): headroom_core::transforms::log_compressor::is_summary_line has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 5 (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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"6038b48e6de84aca75d2f337052ce755274bb69e13a70a3955605442df5a7870"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::log_compressor::summarize_omitted (cognitive 25): headroom_core::transforms::log_compressor::summarize_omitted has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81ad2a25ef59d8f17d69d94cf58881f37c1bb3740ca272840c6367943544d61"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::orchestration::prioritize_indices (cognitive 25): headroom_core::transforms::smart_crusher::orchestration::prioritize_indices has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/orchestration.rs"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2f02b0b8f4ee3bdf46cc6d3484fed3b0eb270ef356cb37bdfee39174d82900"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::tag_protector::identify_spans (cognitive 25): headroom_core::transforms::tag_protector::identify_spans has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (19 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/tag_protector.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5a487ae91e99c39619d4617d38d08f310698401c808d363e1e8246ff9a51f0"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_openai::compress_openai_chat_request (cognitive 25): headroom_proxy::compression::live_zone_openai::compress_openai_chat_request has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (5 pts), loops 2 (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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abdf466b65f1ecef4170975bee7be9e59d7e97c702c917b7bff9e49ac76e338"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::compression::live_zone_responses::compress_openai_responses_request (cognitive 25): headroom_proxy::compression::live_zone_responses::compress_openai_responses_request has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 3 (5 pts), loops 2 (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":"crates/headroom-proxy/src/compression/live_zone_responses.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d58db75fb301e0bf45ae1df4b1c3871f15324fb734627082a822a750ba53e03"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyManager.buildLaunchSpecs (cognitive 25): ProxyManager.buildLaunchSpecs has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 4 (5 pts), loops 3 (4 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b6c4cb1a60b55586bd36d309f8ab4f8f3ca694db8009822ab00c744dd7b66f"}},{"ruleId":"D2","level":"warning","message":{"text":"litellm._place_system_cache_control (cognitive 24): litellm._place_system_cache_control has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 6, loops 3 (5 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":"headroom/backends/litellm.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad2cdf38f13a3a1df02c0de3b6d7446bc037dba61bdb68a1755079520f0242a"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor._hook_commands (cognitive 24): doctor._hook_commands has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 pts), ternaries 2 (4 pts), boolean chains 2 (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":"headroom/cli/doctor.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0506ddf92aa8d617659ada55268f28b62e4a2d4b1d649190f67dfdbb38fae40"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.expected_init_hooks (cognitive 24): doctor.expected_init_hooks has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 4 (7 pts), boolean chains 3, loops 2 (3 pts), 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":"headroom/cli/doctor.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"08317ae759c94efb2ad9e854fe38f70d9467b138b1f57b11d09e831197c24b5c"}},{"ruleId":"D2","level":"warning","message":{"text":"context_tool_cleanup.purge_context_tool_artifacts (cognitive 24): context_tool_cleanup.purge_context_tool_artifacts has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 3 (6 pts), error handling 1 (3 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":"headroom/context_tool_cleanup.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"43eb27061e1fdbf7e96fa5ccd8f8d16ed52b8ec9afdfa79caaabda2e450a5709"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor._ocr_extract (cognitive 24): ImageCompressor._ocr_extract has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), error handling 4 (7 pts), boolean chains 3 (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":"headroom/image/compressor.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c0a546c4881c6e26536804cc9e3f9a74d93d592267e663f1b9680809f51a5e"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime._read_proc_metadata (cognitive 24): runtime._read_proc_metadata has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 5 (8 pts), boolean chains 3, loops 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":"headroom/install/runtime.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8cb0d238732c581fd605f0e211d9686429d42007b0e6ebc61f72e484ae212e"}},{"ruleId":"D2","level":"warning","message":{"text":"model.optimize_messages (cognitive 24): model.optimize_messages has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/strands/model.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8114e385ed417f125ef1e2fd51e2165a3b868c9608f406292608bbfd3fdf32a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodePlugin._merge_worktrees (cognitive 24): ClaudeCodePlugin._merge_worktrees has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 4 (8 pts), boolean chains 2, error handling 1 (2 pts), loops 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"772fff3efbc7e5acb953e4e738a1170fd682bd3042d4eb5b8860f846962a20b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Mem0SystemAdapter.search_memories (cognitive 24): Mem0SystemAdapter.search_memories has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, error handling 1 (3 pts), loops 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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3061ee76a608b776d7ffc2ab5d616ed04068862cf99e7972bca1e4cc2ae82e"}},{"ruleId":"D2","level":"warning","message":{"text":"live.handle_codex_live_websocket (cognitive 24): live.handle_codex_live_websocket has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), error handling 4, boolean chains 3, loops 2, ternaries 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":"headroom/providers/codex/live.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"62726e6b60fa680a3c07b19537c2ef7442a93735d207a2cc3243144e217bc056"}},{"ruleId":"D2","level":"warning","message":{"text":"extensions.install_all (cognitive 24): extensions.install_all has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts), 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":"headroom/proxy/extensions.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcef01eae165c94a8b9a1ab74e56806da512d62ecd17490c5d1faeafadad6e7"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_turn.shape_gateway_body (cognitive 24): gateway_turn.shape_gateway_body has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 3, loops 1 (3 pts), error handling 1, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c7aa9dcf0109e9a7b677171294d9d496ce87e258b850befec8ca0ca6a3d1ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.append_text_to_latest_user_chat_message (cognitive 24): helpers.append_text_to_latest_user_chat_message has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (helpers.append_text_to_latest_user_input_item) 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":"headroom/proxy/helpers.py"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ffaf5409165fa0eb1190584bf5fa448666c120ad86feb3b8edb0f59fa1b0e7"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.append_text_to_latest_user_input_item (cognitive 24): helpers.append_text_to_latest_user_input_item has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (helpers.append_text_to_latest_user_chat_message) 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":"headroom/proxy/helpers.py"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c4800288e5f39dce1f4a65c756646a105abcf93e0763f651a66f60d511f027"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers._decompress_bounded (cognitive 24): helpers._decompress_bounded has cognitive complexity 24 (threshold 15). Drivers by points: error handling 10 (20 pts), if/else 4 (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":"headroom/proxy/helpers.py"},"region":{"startLine":3254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83148cdcb417fdcfcdacfb43333b685b53c72cc3a0021db047a9fe61089da5b"}},{"ruleId":"D2","level":"warning","message":{"text":"output_shaper.classify_responses_turn (cognitive 24): output_shaper.classify_responses_turn has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 3, ternaries 1 (2 pts), 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":"headroom/proxy/output_shaper.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8a7d951aecbeb1e250ddaf226a17b6b88a9b2ee8112de9bdcb9baaa94b33cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadLifecycleManager._apply_lifecycle (cognitive 24): ReadLifecycleManager._apply_lifecycle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2, boolean chains 1 (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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ee9f7c30f2cb0c45ead4f4d8975f91eaf2ca78e12fdb935957c98168c1826e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor::analyze_symbol_importance (cognitive 24): CodeAwareCompressor::analyze_symbol_importance has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 6 (8 pts), boolean chains 3 (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a988cc329c21ef8d2cefc0d2302aac4d4471a8463078fb17e0c4f9bf184a83d"}},{"ruleId":"D2","level":"warning","message":{"text":"LogCompressor::format_output (cognitive 24): LogCompressor::format_output has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (4 pts), match/switch 1 (3 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"621bb355b1dcbaeb33f71b4e96569a8b829675dd64e7f364b55b7c28210fb38c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::cache_stabilization::volatile_detector::walk_anthropic (cognitive 24): headroom_proxy::cache_stabilization::volatile_detector::walk_anthropic has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 2 (4 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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"712727a2e4357d020747a69fef3f2e34c085888247ae6e5e3ebf879d538f399a"}},{"ruleId":"D2","level":"warning","message":{"text":"register.register (cognitive 24): register.register has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 5, if/else 4 (nesting depth added 2). None of this is in the body itself: all 24 points belong to 4 function literals inside it that branch (lines 184, 259, 172, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"671a6404ec23bb023e754c4400ea53a8c706be939b38c0f8601f324ddd45c701"}},{"ruleId":"D2","level":"warning","message":{"text":"prefix_tracker._classify_history_canonical (cognitive 23): prefix_tracker._classify_history_canonical has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, loops 1, ternaries 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"7377dda5c2f161581219cf2f10610236d6604a11c3e8b9de76dbe6a51a3154f4"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomMCPServer._handle_read (cognitive 23): HeadroomMCPServer._handle_read has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), error handling 4, boolean chains 3, ternaries 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/ccr/mcp_server.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd1c5cccd5aa9c1eb92a57e35feb3e333cdfc68d418c1985f15160b72921482"}},{"ruleId":"D2","level":"warning","message":{"text":"html_oss_benchmarks.evaluate_qa_accuracy_preservation (cognitive 23): html_oss_benchmarks.evaluate_qa_accuracy_preservation has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (7 pts), error handling 2 (3 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc501a2f0d098650b8be483576f98002ed97a9230eba0c77edf33c642249933"}},{"ruleId":"D2","level":"warning","message":{"text":"LoCoMoEvaluator._store_conversation (cognitive 23): LoCoMoEvaluator._store_conversation has cognitive complexity 23 (threshold 15). Drivers by points: loops 5 (11 pts), if/else 5 (8 pts), ternaries 1 (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":"headroom/evals/memory/runner.py"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ab45977fc63578252e0786857b9fcf229502a8e8c7ff26b6cca9540c316cbc"}},{"ruleId":"D2","level":"warning","message":{"text":"supervisors.start_supervisor (cognitive 23): supervisors.start_supervisor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (6 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":"headroom/install/supervisors.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d47731e8abec4167328f2a19c2951b9d026992ecceb8355bd92ab8656caf83b"}},{"ruleId":"D2","level":"warning","message":{"text":"opencode._extract_output (cognitive 23): opencode._extract_output has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 9, loops 1 (2 pts), ternaries 1 (2 pts) (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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ffa03558df0485e58bc8058b3802dffdc249b330416b35f635416371636e09"}},{"ruleId":"D2","level":"warning","message":{"text":"registry._discover (cognitive 23): registry._discover has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 3 (5 pts), loops 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":"headroom/learn/registry.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a117812b8c6dec61735c4031fe10d36d75318dc4b1f5d99c4749d8188fd893e"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteVectorIndex._passes_filter (cognitive 23): SQLiteVectorIndex._passes_filter has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (18 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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"c75e3775d33e03369b04b4570937dfc73d0d3f22a110601f578c30d4825d0ac0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodeAdapter.write_memories (cognitive 23): ClaudeCodeAdapter.write_memories has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (19 pts), boolean chains 3, loops 1 (nesting depth added 12). 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":"headroom/memory/sync_adapters/claude_code.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc382d4fd28f52a25962049cb2d0ffdb1582eb24cbb1a2e418bf1c1e3c069283"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomOtelMetrics.record_proxy_request (cognitive 23): HeadroomOtelMetrics.record_proxy_request has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/observability/metrics.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1d898a256a994883db32178cc3446485852eaaa042acbd70349a4c55ce9532"}},{"ruleId":"D2","level":"warning","message":{"text":"conversation_savings.turn_conversation_key (cognitive 23): conversation_savings.turn_conversation_key has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (6 pts), boolean chains 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":"headroom/proxy/conversation_savings.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2100d5e39f0688e4b63d5e967ab0b1471ce2ab897c2fe8427a076170845aa6b"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.inject_tool_search_deferral (cognitive 23): helpers.inject_tool_search_deferral has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 5, ternaries 1 (2 pts), loops 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":"headroom/proxy/helpers.py"},"region":{"startLine":4240}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ca20635142f0a80f08715820a478688e1d0e6c3a98fea31702d4b2b830b4c7"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor._analyze_symbol_importance (cognitive 23): CodeAwareCompressor._analyze_symbol_importance has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4, boolean chains 2, ternaries 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1085}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9260ee9edf9c949aaabd3c343a05310d38462b30cf2bc15ba8331b38ed6e29"}},{"ruleId":"D2","level":"warning","message":{"text":"content_router._detect_content (cognitive 23): content_router._detect_content has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2, error handling 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":"headroom/transforms/content_router.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"851b574d0cc33499234e8387ab84b41fb4a21b63f6fb2ddac8421de82f5adb55"}},{"ruleId":"D2","level":"warning","message":{"text":"cross_turn_dedup._longest_match (cognitive 23): cross_turn_dedup._longest_match has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, loops 2 (3 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":"headroom/transforms/cross_turn_dedup.py"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ca6b40435630f5d5dda84aad2b55329ebd0644ae56172e3c90211af8b07753"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchCompressor::format_output (cognitive 23): SearchCompressor::format_output has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (7 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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaee044c6c041956842ee5d5917c89f94cd2ce263c8c980bf9c2fae4d41c0da"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::sse::framing::parse_event_block (cognitive 23): headroom_proxy::sse::framing::parse_event_block has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (4 pts), loops 2 (3 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":"crates/headroom-proxy/src/sse/framing.rs"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7875d9399c94854b239eaa187a560c812420f0383ae248e55a67ff01d60fbf2"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyLLMBackend._convert_messages (cognitive 22): AnyLLMBackend._convert_messages has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/backends/anyllm.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"296d088c82b610b109bdff37eee13f5d9436456fea102626b0ed564d0b2cf837"}},{"ruleId":"D2","level":"warning","message":{"text":"AnyLLMBackend._to_anthropic_response (cognitive 22): AnyLLMBackend._to_anthropic_response has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 7, error handling 1 (4 pts), loops 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":"headroom/backends/anyllm.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bc131c1591d2edb9f1a9112be9231e4bc8ba17b33204fd35f81bcaee975bad"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicCacheOptimizer._analyze_sections (cognitive 22): AnthropicCacheOptimizer._analyze_sections has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (6 pts), loops 2 (4 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":"headroom/cache/anthropic.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"4db4031c499fbce565bf28c37b8a008fbbd13bd50cb40b6215f0b508e59710a4"}},{"ruleId":"D2","level":"warning","message":{"text":"prefix_tracker.mirror_client_message_cache_control (cognitive 22): prefix_tracker.mirror_client_message_cache_control has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 3 (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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21eeb1c8873b8bb699be053e0cd83d6f7ad8777415159011eb858433d192249"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticCacheLayer._extract_query (cognitive 22): SemanticCacheLayer._extract_query has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), ternaries 1 (6 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). 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":"headroom/cache/semantic.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba55bd2149b47d91f8a723e0c943aaec033b1150f3af1d7542b89eafdadc88"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.delete_memories (cognitive 22): memory.delete_memories has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 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":"headroom/cli/memory.py"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1b207b3cc0d434ca498962a7a84b803ad29fdde5acaa83c98e59a045d04202"}},{"ruleId":"D2","level":"warning","message":{"text":"tools.tools_install_cmd (cognitive 22): tools.tools_install_cmd has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 3 (7 pts), loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/tools.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c5d349458528f3facbecd60d52f87f472529355431fe15c19f20932ecfcf5c"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._inject_codex_provider_config (cognitive 22): wrap._inject_codex_provider_config has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 5 (9 pts), ternaries 1 (nesting depth added 7). 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":"headroom/cli/wrap.py"},"region":{"startLine":3824}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a14c1102372798beb5358da23a4ae450a6c5ceff9b028e9d65b8e7e52e0d4f"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomClient._extract_query (cognitive 22): HeadroomClient._extract_query has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), ternaries 1 (6 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 15). 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":"headroom/client.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a18a61ead1adbfa5bfd27562ff6c34b41d35601049c60702dd7ee2bc49e7679"}},{"ruleId":"D2","level":"warning","message":{"text":"config._orchestrator_invokes_retrieve (cognitive 22): config._orchestrator_invokes_retrieve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (5 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":"headroom/config.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"944743b1391f50c5644cc07d0e04a0e8ce0ab81e33054b0e640731317c715cdf"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor._extract_query (cognitive 22): ImageCompressor._extract_query has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 2 (4 pts) (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":"headroom/image/compressor.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7a96ea65062bfbbbbefe4759341400e6027f35c3ab20265cffe2d31272c12d"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomMCPCompressor.compress (cognitive 22): HeadroomMCPCompressor.compress has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 3, error handling 2, ternaries 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":"headroom/integrations/mcp/server.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe58568fa52ac96cc8f1d456874f46ca453d2af6dc29352586777d21525bd44f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAdapter.write_memories (cognitive 22): CodexAdapter.write_memories has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts), boolean chains 2, 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":"headroom/memory/sync_adapters/codex_agent.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"94626bbf6c8b48a2ca92bff555bcb681ff9a9f7d6fd23de1c9dca5cb5644b9fb"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicProvider.get_context_limit (cognitive 22): AnthropicProvider.get_context_limit has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, error handling 1 (2 pts), loops 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":"headroom/providers/anthropic.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"707ca149fd0df7e86434e6e79cd671e8c7f723ccc85b47b22696012e2405c537"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._restore_codex_additional_tools (cognitive 22): openai._restore_codex_additional_tools has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, loops 2 (3 pts) (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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0063e6d39566913a0f42025cab0ad7921527fa29e14f69a3943d2969878dbdf"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.apply_session_sticky_ccr_tool (cognitive 22): helpers.apply_session_sticky_ccr_tool has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 4 (6 pts), boolean chains 4, error handling 1 (3 pts) (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":"headroom/proxy/helpers.py"},"region":{"startLine":2934}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba3ed306834b96653896669376b285986172160c78ab033eec05b7d5405d20a"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryHandler.handle_memory_tool_calls (cognitive 22): MemoryHandler.handle_memory_tool_calls has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, error handling 1 (3 pts), loops 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b4619dc32c40420d4fc64f75d5a623f642ae6e8cb0e11dcef1bb76fd12701b"}},{"ruleId":"D2","level":"warning","message":{"text":"output_steering.apply_openai_chat_verbosity_steering (cognitive 22): output_steering.apply_openai_chat_verbosity_steering has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 2 (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":"headroom/proxy/output_steering.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec3a13e9b25d5a975a4ce65bedbb1316c24327809fcfbffd595c165f6970509"}},{"ruleId":"D2","level":"warning","message":{"text":"stream_output_tokens._hit_output_ceiling (cognitive 22): stream_output_tokens._hit_output_ceiling has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/stream_output_tokens.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7b241f71c9e10a03a6106a43d192e173a0cbdc0c0171ad59dbe5ecc4e2daab"}},{"ruleId":"D2","level":"warning","message":{"text":"tabular_ingest.parse_fixed_width (cognitive 22): tabular_ingest.parse_fixed_width has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, loops 3 (4 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":"headroom/transforms/tabular_ingest.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"34163b55ffa464a4784a51d17dbd2c2c3b0e48663ea13801f6df6cb3a2b1878e"}},{"ruleId":"D2","level":"warning","message":{"text":"StackTraceDetector::terminates (cognitive 22): StackTraceDetector::terminates has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (9 pts), match/switch 1 (nesting depth added 4). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e9610c944ad1c8d31f4996889633e61fed52899a738231b634d14492fffdc3"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher::crush_array_with_source (cognitive 22): SmartCrusher::crush_array_with_source has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), match/switch 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"323d96a32edc26c1f7aea469c87a7ff2a14161641c35c20959a123944fa0d7ce"}},{"ruleId":"D2","level":"warning","message":{"text":"TextCrusher::compress (cognitive 22): TextCrusher::compress has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (18 pts), loops 3 (4 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":"crates/headroom-core/src/transforms/text_crusher/crusher.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc1eb039d80267bbabf50bda3204fb9c1c47333b1efb5374f54ca6eb3aae162"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::diff_compressor::format_output (cognitive 22): headroom_core::transforms::diff_compressor::format_output has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 5 (9 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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"d558c8db266a52a32ed4db2e83bf795ad712b904cf1cc4c3fb05407af4bed84c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::log_compressor::collapse_trace_frames (cognitive 22): headroom_core::transforms::log_compressor::collapse_trace_frames has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 4, loops 1 (nesting depth added 9). Of this number, 21 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f51e8e55d56ea94b26298ac4e48ca78ea5f2ba0c7ac890e3bc8c83c09b3f24"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::field_detect::detect_id_field_statistically (cognitive 22): headroom_core::transforms::smart_crusher::field_detect::detect_id_field_statistically has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/field_detect.rs"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2956cb468b5a1fcf6ea7484118c9e6ac7550a8f6b68cde516195eea33b02d6"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::field_detect::detect_score_field_statistically (cognitive 22): headroom_core::transforms::smart_crusher::field_detect::detect_score_field_statistically has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 7, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/field_detect.rs"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"523f4f79f60097e401999f98afa6ba16bb686566088ba0cad2c74404ba03170d"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke_streaming::run_anthropic_state_machine (cognitive 22): headroom_proxy::bedrock::invoke_streaming::run_anthropic_state_machine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (3 pts), match/switch 1 (3 pts) (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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"026070b47d54c2b4e4230f65c8726f278f5b780e1d3b6d5bcb221b1d9e373ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicCacheOptimizer._stabilize_prefix (cognitive 21): AnthropicCacheOptimizer._stabilize_prefix has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/anthropic.py"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d3cc28f479a691bb30a1d65057fce0099086d402a09b044a8d187072300639"}},{"ruleId":"D2","level":"warning","message":{"text":"init._ensure_claude_hooks (cognitive 21): init._ensure_claude_hooks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (9 pts), ternaries 4 (5 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/init.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd9f38a0b21818d78ead505ddab89249d5a980219224c397bab84fc4c4107b8"}},{"ruleId":"D2","level":"warning","message":{"text":"copilot_auth.apply_copilot_api_auth (cognitive 21): copilot_auth.apply_copilot_api_auth has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 3, ternaries 2 (3 pts), loops 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":"headroom/copilot_auth.py"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"c123a288d1611420395472f57bbeecf13ba74a764d5233895a38027564801dd8"}},{"ruleId":"D2","level":"warning","message":{"text":"datasets.load_bfcl (cognitive 21): datasets.load_bfcl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 3 (5 pts), ternaries 2 (4 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":"headroom/evals/datasets.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"580f5e7c1b4392a88ec80f8bedc5ea24d23344e98e9c9cbde8d80f933955b8ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SuiteRunner.run (cognitive 21): SuiteRunner.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 8, error handling 1 (2 pts), loops 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":"headroom/evals/suite_runner.py"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c6b0ca2548055d3e26df47ce8e3d37940169ca64ee99684e7e7aac31315ab4"}},{"ruleId":"D2","level":"warning","message":{"text":"langgraph.compress_tool_messages (cognitive 21): langgraph.compress_tool_messages has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (8 pts), boolean chains 2, error handling 1 (2 pts), 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":"headroom/integrations/langchain/langgraph.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5ac7365025ee4d0517227289358e4bd0bb910b0537a8f6d7e9f2d01366b5b0"}},{"ruleId":"D2","level":"warning","message":{"text":"writer._merge_recommendations (cognitive 21): writer._merge_recommendations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/writer.py"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a4101b889a997371b6f61a54689674caaf744abca46d07a4f46845f293e4f9d"}},{"ruleId":"D2","level":"warning","message":{"text":"adapters.__getattr__ (cognitive 21): adapters.__getattr__ has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (21 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":"headroom/memory/adapters/__init__.py"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d227dce7be7dc7968093891fc8e8aa99768895e05d3a4e02b84ef2fe5f84ed"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectMem0Adapter.close (cognitive 21): DirectMem0Adapter.close has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"474da51b9c1357c4cd3a5f62b1b1b7910c3bcbcaf9166e2c15f80e8a6e8a7578"}},{"ruleId":"D2","level":"warning","message":{"text":"MemorySystem.handle_memory_save (cognitive 21): MemorySystem.handle_memory_save has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 5 (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":"headroom/memory/system.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1c92bb54714563931774eedf614ded64b7e2d92da7c49d446cf7130522458"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner._load_pending_state (cognitive 21): TrafficLearner._load_pending_state has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, error handling 2 (3 pts), loops 1, ternaries 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfcbc5cf78bc9a05ce8d94d30f99dea9a21b3695d1368cadd714063ff88c807"}},{"ruleId":"D2","level":"warning","message":{"text":"traffic_learner._project_for_pattern (cognitive 21): traffic_learner._project_for_pattern has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 4 (5 pts) (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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1854}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28f03de08dc308d73bae7a779972d748e59c3caa0d6e91815fbd4e5353cd84a"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery.discover_referenced_temp_homes (cognitive 21): recovery.discover_referenced_temp_homes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (6 pts), error handling 1 (2 pts), boolean chains 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":"headroom/providers/codex/recovery.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7517ca372253feb6c000d676b4520912ce16329e83bba6657d4a9162d8e3aa6e"}},{"ruleId":"D2","level":"warning","message":{"text":"vscode._strip_jsonc_comments (cognitive 21): vscode._strip_jsonc_comments has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 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":"headroom/providers/copilot/vscode.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"130efe17cfd9e20eb488754c78b2732b086aeddd2e47233c2845b8bfa4dcc8c7"}},{"ruleId":"D2","level":"warning","message":{"text":"install_registry.apply_provider_scope_mutations (cognitive 21): install_registry.apply_provider_scope_mutations has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), loops 2 (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":"headroom/providers/install_registry.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b89d73a65116fd50669102b5a09f27bbe2a3806050db2fa778bd0308639888"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_turn.normalize_usage (cognitive 21): gateway_turn.normalize_usage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, loops 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/gateway_turn.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc3e2e055ce26703576c984c4de7e4816f868e0c49b4ac70ba71a4b5afab4c2"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.compute_turn_id (cognitive 21): helpers.compute_turn_id has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, error handling 2 (3 pts), loops 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":"headroom/proxy/helpers.py"},"region":{"startLine":3575}}}],"partialFingerprints":{"codehealthFindingId/v1":"45ab8fea944ea565e763d6c8ae72394b4e04fb04f85e50a40f4bf5810735cb92"}},{"ruleId":"D2","level":"warning","message":{"text":"astgrep._run_ast_grep (cognitive 21): astgrep._run_ast_grep has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (6 pts), loops 2 (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":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"4105e109fcb2638644979dbd5b2da0146f9beee3971de4c187c2114cb519450c"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryHandler._init_backend_locked (cognitive 21): MemoryHandler._init_backend_locked has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), error handling 3 (8 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb67c8f1874aec55b14929a7f0b407c52070a0bfe19ce3cac5a40a73ae5445e"}},{"ruleId":"D2","level":"warning","message":{"text":"system_compaction._compact_system_blocks (cognitive 21): system_compaction._compact_system_blocks has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 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":"headroom/proxy/system_compaction.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ede3c912417a805d7a9ac1efd4f8450c9b618e26c07df3c73f6256137128800"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIntelligenceNetwork.import_patterns (cognitive 21): ToolIntelligenceNetwork.import_patterns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), error handling 1 (2 pts), boolean chains 1, loops 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":"headroom/telemetry/toin.py"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"942c30afb3f73fcebbbd50f67e83b4673f6839a4ff59a7e54ae7bf58d516a2a2"}},{"ruleId":"D2","level":"warning","message":{"text":"base._pdf_own_keys (cognitive 21): base._pdf_own_keys has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 1, 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":"headroom/tokenizers/base.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea61cf32a541026f2c0502f787019ca75f692d91a6cc8c0f869fb3f5df208937"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteKompressCompressor.compress (cognitive 21): RemoteKompressCompressor.compress has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 3 (7 pts), boolean chains 2, error handling 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":"headroom/transforms/kompress_remote.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5ec02526d4b6093b4fbbbde0acdecaf8d0c55b0f2122fc7a990a90c24d85ff"}},{"ruleId":"D2","level":"warning","message":{"text":"lossless_compaction.fold_repeated_blocks (cognitive 21): lossless_compaction.fold_repeated_blocks has cognitive complexity 21 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 4 (9 pts), boolean chains 2 (nesting depth added 11). 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":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a587aa3b4a0613cd727574a5e16e4c4a0755387950756633acaf7fafc66be2bb"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadMaturationManager._process_message (cognitive 21): ReadMaturationManager._process_message has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 1 (2 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":"headroom/transforms/read_maturation.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"be54b7f1b35bde0f93f7cbb1d43fcda64fdaf50d8e57d95436fe595c050db832"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::live_zone::plan_responses_item (cognitive 21): headroom_core::transforms::live_zone::plan_responses_item has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"7afcc48101c0f6f976e708586bce78c2ecf582b2d566e8c9b497c8fdb9650ffb"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::compaction::compactor::flatten_uniform_nested (cognitive 21): headroom_core::transforms::smart_crusher::compaction::compactor::flatten_uniform_nested has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (12 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/compaction/compactor.rs"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0af936119d8e5d4cd2abc53a8b2b92110c1a1f4e8b4fb45a70cb4c931dbfc7"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::bedrock::invoke_streaming::translate_stream (cognitive 21): headroom_proxy::bedrock::invoke_streaming::translate_stream has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 4 (13 pts), if/else 3 (5 pts), loops 2 (3 pts) (nesting depth added 12). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"9320287bd2d92105fa1ec9b96799001a86cd3d3a9d107b65ddfb698a00298b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.html.renderChart (cognitive 21): dashboard.html.renderChart has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (6 pts), ternaries 5, loops 2 (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 9 belong to 5 function items inside it that branch. 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":"crates/headroom-proxy/src/observability/dashboard.html"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2bb5fb7d7d6f4458aa5f56445d431bf6448202810d894e0dd1b84e9e4e26c6"}},{"ruleId":"D2","level":"warning","message":{"text":"format.vercelMediaPart (cognitive 21): format.vercelMediaPart has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4, ternaries 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"7402606f853ad7f307a191251fbb6165b04c1a9ed0bf5dc0b83683892ca6c0ac"}},{"ruleId":"D2","level":"warning","message":{"text":"claude_analysis_ttl.turns_of (cognitive 20): claude_analysis_ttl.turns_of has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, error handling 2 (4 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":"claude_analysis_ttl.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7866599c1459dbec929e880b22710de156bda7b57b234e9fbbd4e7d5cde8b9cf"}},{"ruleId":"D2","level":"warning","message":{"text":"agent_savings.proxy_pipeline_kwargs (cognitive 20): agent_savings.proxy_pipeline_kwargs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, error handling 1 (2 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/agent_savings.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e33ee3f18bffc542e894ead23044cc0a56ebd4d5e7253baf2a8bae336c707a"}},{"ruleId":"D2","level":"warning","message":{"text":"codex._extract_edit_path (cognitive 20): codex._extract_edit_path has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, error handling 1 (2 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":"headroom/audit/codex.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"011a6f22bbf73ca1181969a840c657b9c1361a140999d9cddae3c3ecd1537176"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMBackend.stream_openai_message (cognitive 20): LiteLLMBackend.stream_openai_message has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, loops 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":"headroom/backends/litellm.py"},"region":{"startLine":2032}}}],"partialFingerprints":{"codehealthFindingId/v1":"866cced5ebe9f4476d641ad47f56fd040e5fb35346ff8109c5187069937297d6"}},{"ruleId":"D2","level":"warning","message":{"text":"litellm._fetch_bedrock_inference_profiles (cognitive 20): litellm._fetch_bedrock_inference_profiles has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (4 pts), boolean chains 2, error handling 2, ternaries 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":"headroom/backends/litellm.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7f55bc92d39aaef8f1d8988a303ceda167baaf7aaa10632e92eb2b3176fd9d"}},{"ruleId":"D2","level":"warning","message":{"text":"compression_cache._extract_tool_result_content (cognitive 20): compression_cache._extract_tool_result_content has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (2 pts), boolean chains 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":"headroom/cache/compression_cache.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2c8d2dba75744c6059d08dd26ff063e62241cc89806dbc638789a8f53c131c"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionStore.store (cognitive 20): CompressionStore.store has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 1, ternaries 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":"headroom/cache/compression_store.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"7702a0f575b18232b5fb1dcb4a09a0c7e4e5c9323754b4bee661f86da4f33556"}},{"ruleId":"D2","level":"warning","message":{"text":"compression_store._create_default_ccr_backend (cognitive 20): compression_store._create_default_ccr_backend has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, error handling 2 (3 pts) (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":"headroom/cache/compression_store.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f37e6c5ac8da6f2a9a65dd68e72c7bf02b47851f744a0680c4b5367ab8a539"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_server._format_session_summary (cognitive 20): mcp_server._format_session_summary has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 1 (2 pts) (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":"headroom/ccr/mcp_server.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54cb821a21c14be49e390d7d5352d66ef83abc10b081cc7de870928ba8cd903"}},{"ruleId":"D2","level":"warning","message":{"text":"savings.savings (cognitive 20): savings.savings has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 2 (4 pts), boolean chains 3 (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":"headroom/cli/savings.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a580441f5cc061271fe695243b9ebc41171134f90ee72cc9a00410494997eded"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._warn_proxy_mode_mismatch (cognitive 20): wrap._warn_proxy_mode_mismatch has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, error handling 1 (2 pts) (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":"headroom/cli/wrap.py"},"region":{"startLine":9773}}}],"partialFingerprints":{"codehealthFindingId/v1":"0edaac56989f35eff408aa5763ce140839ceda29ccc1e8db9e9bc0a13f9c6722"}},{"ruleId":"D2","level":"warning","message":{"text":"config.unwrap_tool_call (cognitive 20): config.unwrap_tool_call has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 2 (3 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":"headroom/config.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f91592e7c991687f9f4009f611835a45924685802184474620e0a596084eae1"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchCompressionEvaluator.evaluate_case (cognitive 20): BatchCompressionEvaluator.evaluate_case has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, ternaries 5, error handling 3 (4 pts), if/else 3 (nesting depth added 1). 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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ed38a8e0160ebec7ec0f71613c049e8c013d036af53f605b78b685d4778782"}},{"ruleId":"D2","level":"warning","message":{"text":"BeforeAfterRunner.evaluate_case (cognitive 20): BeforeAfterRunner.evaluate_case has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, error handling 4 (5 pts), if/else 5, ternaries 3 (nesting depth added 1). 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":"headroom/evals/runners/before_after.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f190502e1cc5c2d1469b47879e749f8e66abdbd1c797ca1f96a7cf62f38c6b71"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionOnlyRunner.evaluate_ccr_lossless (cognitive 20): CompressionOnlyRunner.evaluate_ccr_lossless has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 3 (4 pts), error handling 1 (2 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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a5ea7c646a2d8c86032b285e71b28e9ac45ef486da2f08454303170177eff3"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionMiddleware.__call__ (cognitive 20): CompressionMiddleware.__call__ has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1, loops 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":"headroom/integrations/asgi.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"402424308c315aadadc698c18540af9cd721a8a1ce25734ac32e79a0f899980f"}},{"ruleId":"D2","level":"warning","message":{"text":"loops.apply_loop_weighting (cognitive 20): loops.apply_loop_weighting has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 2 (3 pts), boolean chains 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":"headroom/learn/loops.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d87eed6956738776c62c53a83be27ff628d7f5392d68cc4a78fa0d9ce40598"}},{"ruleId":"D2","level":"warning","message":{"text":"claude._greedy_path_decode (cognitive 20): claude._greedy_path_decode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (4 pts), error handling 2 (3 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"90488af50194553525d10ebf49cfebfa87729824cc1d6f3c9172c266b2ce21f6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectResolver._extract_cwd_from_system_prompt (cognitive 20): ProjectResolver._extract_cwd_from_system_prompt has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/storage_router.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e1f9c327a701fcf73aa6e02dda5446deb38e43810149b921783da29c733c87"}},{"ruleId":"D2","level":"warning","message":{"text":"metrics._dynamic_metric_attributes (cognitive 20): metrics._dynamic_metric_attributes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), error handling 1 (2 pts), boolean chains 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":"headroom/observability/metrics.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a881745fc51d094ac262f1a5dd75f62b4b6830a4f90cb8353001446467e2887"}},{"ruleId":"D2","level":"warning","message":{"text":"hermes._restore_responses_text_parts (cognitive 20): hermes._restore_responses_text_parts has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 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":"headroom/providers/hermes.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"f431b540616c69a867ba71c6c05ecff9790b023fb958744330f0e9cc45cc7929"}},{"ruleId":"D2","level":"warning","message":{"text":"body_forwarding.select_outbound_body (cognitive 20): body_forwarding.select_outbound_body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, ternaries 2 (3 pts) (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":"headroom/proxy/body_forwarding.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"1036e6c4695f2c10daade5b06b4c57db636597bcab0239c4e64dc992b5f10177"}},{"ruleId":"D2","level":"warning","message":{"text":"astgrep._open_regular_file_under_root (cognitive 20): astgrep._open_regular_file_under_root has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9, error handling 4 (5 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52970915cbb742c30857dae02cc98b3a3349a26b564335f967e5afbff95a914"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryHandler._extract_user_query (cognitive 20): MemoryHandler._extract_user_query has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 2 (4 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e0ecd95fc30ed3c9370fde218aa2897d58f7f3a5b7160f52affa5318b52a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryToolStreamFilter.tail_frames (cognitive 20): MemoryToolStreamFilter.tail_frames has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 2 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/memory_tool_stream.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"562eeca95487a2a3ce5b438f515a79ac7fc322f6a26d9223102d398e85384a5d"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomProxy._eager_preload_transforms (cognitive 20): HeadroomProxy._eager_preload_transforms has cognitive complexity 20 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), error handling 2 (4 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/server.py"},"region":{"startLine":2033}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e42df9b0dfcfcd0051ed7a8ec1c221aed99c460aeb7734a3ab9f0376d4540b8"}},{"ruleId":"D2","level":"warning","message":{"text":"tls_diagnostics._probe_uncached (cognitive 20): tls_diagnostics._probe_uncached has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 3 (6 pts), error handling 3 (4 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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9bd19b0bd6e52dfa310b4ec1cdcd89f2648b2cd7c3dc7d98c4a83598322bd98"}},{"ruleId":"D2","level":"warning","message":{"text":"upstream_guard.allowlisted_destinations (cognitive 20): upstream_guard.allowlisted_destinations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts), 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":"headroom/proxy/upstream_guard.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb5dfcb40a48e29bc37dd17ba7fcbd886b9388b5897361a2252a88a2910613"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolSignature._matches_pattern (cognitive 20): ToolSignature._matches_pattern has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, 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":"headroom/telemetry/models.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c73e89c026a30d5c7cf869d8497b3eb747b33b6df85b31a834ddef03172d679"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeAwareCompressor.apply (cognitive 20): CodeAwareCompressor.apply has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 2, 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2468}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13d6a2151b0cf98602a93686fa630bdb12510474f1798e7d79eacd785770eaf"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadLifecycleManager._find_tool_call_msg_index (cognitive 20): ReadLifecycleManager._find_tool_call_msg_index has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"360aa8907e90918b5bffbc68f4a79cef03d5578a8ec7e2a373197f8508c09b97"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_json._scan_from (cognitive 20): recursive_json._scan_from has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 3 (6 pts), boolean chains 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":"headroom/transforms/recursive_json.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee64372a7d9cd492413eddba9419ab6ba16ce45d719069f15ea24f5d59a65722"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAnalyzer::analyze_field (cognitive 20): SmartAnalyzer::analyze_field has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), match/switch 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac95dc8e0b2aaddfa6df6a9f10603f5507b6c227d2ee05b96b6bcdb0ae1057c"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher::process_string_with_hook (cognitive 20): SmartCrusher::process_string_with_hook has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (5 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"deec5751960be43164c0c6a4d7f443bca8313621c92bb67d44ad92e7719ce33f"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::code_compressor::make_omitted_comment (cognitive 20): headroom_core::transforms::code_compressor::make_omitted_comment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 2 (4 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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25bc4113863e56ea32e768ca4cded6bf6dc065a1dd906bdda9cc5df71f914fd"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_parity::bin::parity_run::main (cognitive 20): headroom_parity::bin::parity_run::main has cognitive complexity 20 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 3 (9 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-parity/src/bin/parity_run.rs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"314960b4bd1215ba14fadd1d95df55ca8966bba1ff74f9e6e62c253f923032c4"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_proxy::cache_stabilization::volatile_detector::scan_value_recursive (cognitive 20): headroom_proxy::cache_stabilization::volatile_detector::scan_value_recursive has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (4 pts), boolean chains 1, match/switch 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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f87cdaa2a2026d6f301c4e879b783554a5482f2929c5636a916cfd39cc061e"}},{"ruleId":"D2","level":"warning","message":{"text":"snip.describe (cognitive 20): snip.describe has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 4. 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":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd031e13b0487284b78ef7506831688ce0e264f99dc228f96dc31c6ee56e74da"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_server._read_shared_events (cognitive 19): mcp_server._read_shared_events has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 3 (5 pts), boolean chains 1, loops 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":"headroom/ccr/mcp_server.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32ca29178cc1a500ce46ca8a2ec0928a22ce7c92adaf7f3f594e89797076b8d"}},{"ruleId":"D2","level":"warning","message":{"text":"agent_savings.agent_savings (cognitive 19): agent_savings.agent_savings has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/agent_savings.py"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e1f6b67f0bc352a7b4161706a3c6abe2b28ba3feeabd982f42f81a3adba0ef"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.check_claude_remote_control_gate (cognitive 19): doctor.check_claude_remote_control_gate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts), loops 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":"headroom/cli/doctor.py"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e27354765836231a1d0151c0a5c9076947cc598460f12e9ca7902f9885ca9a1"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.doctor (cognitive 19): doctor.doctor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 4, ternaries 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":"headroom/cli/doctor.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7704a846ff20be7e13ede963fb00fde72a5865c8038652e5340424c9261dd2"}},{"ruleId":"D2","level":"warning","message":{"text":"learn._activate_output_shaper (cognitive 19): learn._activate_output_shaper has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 4, boolean chains 2, error handling 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":"headroom/cli/learn.py"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dde71d97807903eda97dbc84263604ace7f1512f107ed09dcf9432e6dfb5ce4"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.edit_memory (cognitive 19): memory.edit_memory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, error handling 2 (3 pts) (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":"headroom/cli/memory.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"766aaf467a00fa267ee1091a3f811ffaf5df5d82870cfe8dade7c3096386eafe"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.prune_memories (cognitive 19): memory.prune_memories has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 3, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/memory.py"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1eda604b0728b21b609d9830633846970820517151dcbc70df290530f548d8"}},{"ruleId":"D2","level":"warning","message":{"text":"perf.perf (cognitive 19): perf.perf has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 3 (8 pts), ternaries 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/perf.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4601d0717239be383bc5dbd1ab4b9a2de1efaf517ed5475a0c3be78a5ab3da"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._setup_serena_mcp (cognitive 19): wrap._setup_serena_mcp has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 3, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":2885}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2482e5e535117f77b14a2e44c0ae3b6c7663f9e4d70908baaf54cd64cf4bb6"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap.unwrap_opencode (cognitive 19): wrap.unwrap_opencode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, error handling 1 (2 pts) (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":"headroom/cli/wrap.py"},"region":{"startLine":9209}}}],"partialFingerprints":{"codehealthFindingId/v1":"42264ecd500e76e557cae69e1b7c2b39c032bd2cf66d4994e8efb38bfa95cbc9"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONStructureHandler._should_preserve_token (cognitive 19): JSONStructureHandler._should_preserve_token has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 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":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2806da26d7c3cf02d469a32ec1ffef7b62261dd2326c850cad78577cdaa5f5"}},{"ruleId":"D2","level":"warning","message":{"text":"context_tool_cleanup._names_managed_dir (cognitive 19): context_tool_cleanup._names_managed_dir has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6, loops 2 (3 pts) (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":"headroom/context_tool_cleanup.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"048351de78183dfd88850f7640b4bd4f98fbf5b22bc3815ef7315f5b9ce0066b"}},{"ruleId":"D2","level":"warning","message":{"text":"LoCoMoEvaluatorV2._aggregate_results (cognitive 19): LoCoMoEvaluatorV2._aggregate_results has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7516d4098712dfa08fc41bfc6ec037061bf0374dd2b9781ba98a2aef1054df75"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomPostHook.__call__ (cognitive 19): HeadroomPostHook.__call__ has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, ternaries 1 (2 pts) (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":"headroom/integrations/agno/hooks.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"440e82cb6e9798e0c5cc650ad09879c6e9d495e82b3e6f8c8a2c4fce581495d8"}},{"ruleId":"D2","level":"warning","message":{"text":"chat_model.optimize_messages (cognitive 19): chat_model.optimize_messages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), boolean chains 2, ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaa44fb4779d90f699a87ef5bedbd8e04b8f2f7fc647cb5b681e1c8bbcd850f"}},{"ruleId":"D2","level":"warning","message":{"text":"analyzer._call_cli_llm (cognitive 19): analyzer._call_cli_llm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 4 (5 pts), boolean chains 2, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/analyzer.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"e277def0ec4eaaf8a8607e2e7ea078d8bc630516672f3ccff323ee3286c4b7b4"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodePlugin._project_path_from_session_cwd (cognitive 19): ClaudeCodePlugin._project_path_from_session_cwd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), error handling 2 (5 pts), loops 2 (3 pts), boolean chains 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22f1112a97709c7fc05f8ef274a82fa9e7413e3e9217a56e7a2ce6b17d7f161"}},{"ruleId":"D2","level":"warning","message":{"text":"HNSWVectorIndex.index_batch (cognitive 19): HNSWVectorIndex.index_batch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (5 pts), boolean chains 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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a814b15ab371a9bcdb22ea12e322cff9eeccb4761304bd625f2458d0583ce33c"}},{"ruleId":"D2","level":"warning","message":{"text":"Mem0Backend._ensure_client (cognitive 19): Mem0Backend._ensure_client has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 1 (2 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":"headroom/memory/backends/mem0.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"658e183140940f367d9a47c54b08e8a998236fb77fa7df4ec3c53da7698b0c80"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_server._handle_search (cognitive 19): mcp_server._handle_search has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (9 pts), error handling 3 (4 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (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":"headroom/memory/mcp_server.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd3671eb11a9668595f0927f8ae18fd54707db43f325f49553d89e4c3ff1252"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin._append_context_to_latest_non_frozen_user_turn (cognitive 19): AnthropicHandlerMixin._append_context_to_latest_non_frozen_user_turn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, loops 2 (3 pts) (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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef91203e55f2f48c74b49a86d565dee380bfc0d4c3941245a338a68c5491144a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._drop_undeclared_web_search_calls (cognitive 19): openai._drop_undeclared_web_search_calls has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b27adac5ff8ba03280df7ea16064978558f0d1cc7654331bee31478e339c18f"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._dedup_responses_output_items (cognitive 19): openai._dedup_responses_output_items has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), boolean chains 3, loops 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6374af674e4c688e8e56dc20b3a292ebfb8bed68fb461ef37535b0d6db0e02"}},{"ruleId":"D2","level":"warning","message":{"text":"public_errors.classify_exception (cognitive 19): public_errors.classify_exception has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (19 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":"headroom/proxy/public_errors.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"154567c17ca16f0ddc6548238b85e5948d3e199f9cced7dfd9497fff32e7632a"}},{"ruleId":"D2","level":"warning","message":{"text":"server.create_app (cognitive 19): server.create_app has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (6 pts), boolean chains 3, error handling 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":"headroom/proxy/server.py"},"region":{"startLine":3448}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bb33c0ef1bae1002f9323f05f513acc92104d9ac84ad289c7675d61991d0ec"}},{"ruleId":"D2","level":"warning","message":{"text":"workspace_registry.resolve_registered_cwd (cognitive 19): workspace_registry.resolve_registered_cwd has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts), loops 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":"headroom/proxy/workspace_registry.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83bd4c4b1863ad42da76c291256396243a5a201b9656b6421dbd9885d9b02d3"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.create_storage (cognitive 19): storage.create_storage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 1 (3 pts), ternaries 1 (2 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":"headroom/storage/__init__.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf886d1e0eb677eb56ad90247337492f8bfe7c5b865d9c1a4139244cffffedf"}},{"ruleId":"D2","level":"warning","message":{"text":"compression_batches.compress_batch_with_router (cognitive 19): compression_batches.compress_batch_with_router has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3, loops 2, error handling 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":"headroom/transforms/compression_batches.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a00354172de65c9154d4ecccf2e45a75696998e8c3f3d6161e4594ce9aa817d"}},{"ruleId":"D2","level":"warning","message":{"text":"compression_units.compress_unit_with_router (cognitive 19): compression_units.compress_unit_with_router has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/compression_units.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"970989aba04de4a962023542c9160043e0c2ddd3ec7ff3d3b53cb524b694f1b6"}},{"ruleId":"D2","level":"warning","message":{"text":"content_detector.detect_content_type (cognitive 19): content_detector.detect_content_type has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 8. 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":"headroom/transforms/content_detector.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"477c0ef630c9751edf8e4c21c0d2e5eee3f6643e274006fa41da062d4c8bbbbb"}},{"ruleId":"D2","level":"warning","message":{"text":"read_maturation._iter_tool_results (cognitive 19): read_maturation._iter_tool_results has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (4 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":"headroom/transforms/read_maturation.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcb8d9aee4a28c3f559b1d2704f2ebfafbb5a675a94ab717929a146872027c8"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_json.route_embedded_json (cognitive 19): recursive_json.route_embedded_json has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/recursive_json.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c17719bebb988180fd2dc23aee45ac2475a4cbaf4aa6f33a9585a1165df1046"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffNoise::apply (cognitive 19): DiffNoise::apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 3 (6 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":"crates/headroom-core/src/transforms/pipeline/offloads/diff_noise.rs"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"2584338a7109d183375db81604364ed43e16a45f8c372a63b6c1a0b9d289134f"}},{"ruleId":"D2","level":"warning","message":{"text":"LogTemplate::flush_run (cognitive 19): LogTemplate::flush_run has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (6 pts), match/switch 1 (2 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":"crates/headroom-core/src/transforms/pipeline/reformats/log_template.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7793d7e8dea02d669caa38798273d5074bb7b995593831b5477e9dccad17b91c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::hf_cache::expand_vars_nt (cognitive 19): headroom_core::hf_cache::expand_vars_nt has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 7 (17 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/hf_cache.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb6bfdf19c4f85ca4ed19e4d8621f7ff55554aff2ee53b330396d0f0e76e713"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::content_detector::detect_content_type (cognitive 19): headroom_core::transforms::content_detector::detect_content_type has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 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":"crates/headroom-core/src/transforms/content_detector.rs"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6baad5d954812884c865e0391226caf84d2b8a2c16933a4a4660064aad6d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::content_detector::try_detect_code (cognitive 19): headroom_core::transforms::content_detector::try_detect_code has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/content_detector.rs"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"817eb11e57f0873b62e3ad4cd892a12180e76863d1b8ca91698f5d32a62497be"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::compaction::compactor::detect_discriminator (cognitive 19): headroom_core::transforms::smart_crusher::compaction::compactor::detect_discriminator has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 3 (5 pts), match/switch 2 (5 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":"crates/headroom-core/src/transforms/smart_crusher/compaction/compactor.rs"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ecf8e01deda9c03e0abbc10ed114154a414f23f7ff04f73867a6456d9dd353"}},{"ruleId":"D2","level":"warning","message":{"text":"Ledger::record (cognitive 19): Ledger::record has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 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":"crates/headroom-proxy/src/observability/ledger.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cdc8357703ec99d5d765f8af07f4230f940884b1e42e73ca12227fcf621a90"}},{"ruleId":"D2","level":"warning","message":{"text":"hooks.extractToolCalls (cognitive 19): hooks.extractToolCalls has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 3 (7 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":"sdk/typescript/src/hooks.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28da5c928ea81c8e0216ad2be60bc12af108e6df6cc253f76db91f0c36b59d8"}},{"ruleId":"D2","level":"warning","message":{"text":"codex.classify_command (cognitive 18): codex.classify_command has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, loops 1 (2 pts), ternaries 1 (2 pts), 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":"headroom/audit/codex.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"21920631b322ddc23d6ab996d4996007758437a6edad0bd6fdd5b09445dbbfbc"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAICacheOptimizer._analyze_prefix (cognitive 18): OpenAICacheOptimizer._analyze_prefix has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 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":"headroom/cache/openai.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"87415cf6709c3d22cd5a683aba00316c21a1a6cd57abc9353c23b2f8610741a6"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchContextStore.get_memory_stats (cognitive 18): BatchContextStore.get_memory_stats has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (8 pts) (nesting depth added 12). 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":"headroom/ccr/batch_store.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"329f8bfb4401db7f076173e023ae73b28861143f311bee5a9d194d764045b673"}},{"ruleId":"D2","level":"warning","message":{"text":"init._ensure_codex_hooks (cognitive 18): init._ensure_codex_hooks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 3, loops 2 (3 pts), ternaries 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/init.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63efe3f48876915f4ed3b3908938924c53fa27f58403deab3222eafb099cb04"}},{"ruleId":"D2","level":"warning","message":{"text":"install._start_deployment (cognitive 18): install._start_deployment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, error handling 2, ternaries 1 (2 pts) (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":"headroom/cli/install.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"558dd86fa5aac11c928cf9881377ec65242c74035dbd09603703293aae2d19d6"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp.mcp_uninstall (cognitive 18): mcp.mcp_uninstall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/mcp.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78160eff542fc65b8ec9a971c57cc8cfa8c432e97557fd7f9ab5cfab9219b9d"}},{"ruleId":"D2","level":"warning","message":{"text":"memory.show_memory (cognitive 18): memory.show_memory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (17 pts), error handling 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":"headroom/cli/memory.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"11efd0aaf7b94aebef0b54833d2c6ec8687596ca6669975b641be4dd3baef7d5"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._restore_claude_wrap_base_url (cognitive 18): wrap._restore_claude_wrap_base_url has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 2, ternaries 2, error handling 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":"headroom/cli/wrap.py"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa328d5f6cd202bc761d6ffe01fdc46b0d31cd0702deaee63cdd48a8a77edd5f"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._codex_session_launch_settings (cognitive 18): wrap._codex_session_launch_settings has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4 (5 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":3317}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2ea0fffc25ac9b6679b8228930d397f13e31ff7a04d261196be90d320e4bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotTokenProvider.get_api_token (cognitive 18): CopilotTokenProvider.get_api_token has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, ternaries 1 (3 pts) (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":"headroom/copilot_auth.py"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea313cdb6c1eed72c2630253b7ce9920a2e61df2ac3f43b3b668e10f1d9536c3"}},{"ruleId":"D2","level":"warning","message":{"text":"__main__.cmd_benchmark (cognitive 18): __main__.cmd_benchmark has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), ternaries 1 (2 pts), loops 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":"headroom/evals/__main__.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a346da32598ba6df9ebdc7621fce566e8337b4892e6cb0652fbcb1e88514fe"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchCompressionEvaluator.run (cognitive 18): BatchCompressionEvaluator.run has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 5, loops 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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"841b7d98597ade7a58bc10c6b5b624c1451300e12fd1cb447b0703ec3fd1d87e"}},{"ruleId":"D2","level":"warning","message":{"text":"planner.resolve_targets (cognitive 18): planner.resolve_targets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, 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":"headroom/install/planner.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab5c5c46937e61d8d8b1e6133eb8c7d5cbaf55e802dff8bb4235d14e5760bba"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomAgnoModel._has_thinking_blocks (cognitive 18): HeadroomAgnoModel._has_thinking_blocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (4 pts), boolean chains 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":"headroom/integrations/agno/model.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdb1e1cc4af5b150622c606165444b61dcdf4776d3c30391878da69af4be463"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodePlugin._extract_tool_results (cognitive 18): ClaudeCodePlugin._extract_tool_results has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 1 (2 pts), loops 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":"headroom/learn/plugins/claude.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c4b61784483879cc93a001731e1eca225fe8f2422dbbb1deea98bf84c5ad41"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiPlugin._scan_jsonl_session (cognitive 18): GeminiPlugin._scan_jsonl_session has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), error handling 2 (3 pts), 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":"headroom/learn/plugins/gemini.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"993530aa2a3a2bc4ac251f917825ad9fc92d65193c206e2a7cff60803362c417"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteVectorIndex.index_batch (cognitive 18): SQLiteVectorIndex.index_batch has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (4 pts), error handling 1 (2 pts) (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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5edeb45aeca93f790a96cbb3dd33bf39a171ff344b42868eb706ff2bcda9d3"}},{"ruleId":"D2","level":"warning","message":{"text":"pipeline.discover_pipeline_extensions (cognitive 18): pipeline.discover_pipeline_extensions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 3 (6 pts), boolean chains 1, loops 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":"headroom/pipeline.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efb1a43218dae9b98fd4e796dc9cffbb2d6f50ed82f90aa09dfd4d8418308f8"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProjectContextResolver._fallback_or_skip (cognitive 18): CodexProjectContextResolver._fallback_or_skip has cognitive complexity 18 (threshold 15). Drivers by points: if/else 2 (9 pts), loops 3 (6 pts), ternaries 1 (2 pts), boolean chains 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":"headroom/providers/codex/project_context.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6310b2a528dcabba12d86f028c89da5d38cf7c7bdfacef9bf83efe11d630fc68"}},{"ruleId":"D2","level":"warning","message":{"text":"vscode.unrouted_vscode_profiles (cognitive 18): vscode.unrouted_vscode_profiles has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (6 pts), boolean chains 4, ternaries 3 (4 pts), error handling 2 (3 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":"headroom/providers/copilot/vscode.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9ad3c65e72a65f19cb8e42cc1a95e527b865000641a05000d32dfa9131db6ad"}},{"ruleId":"D2","level":"warning","message":{"text":"hermes.compress_scoped_passthrough_body (cognitive 18): hermes.compress_scoped_passthrough_body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/hermes.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c6484f3f06f0a45be135dc1b8e33ad385632cad8d10f42ac271d4c41eb58a0"}},{"ruleId":"D2","level":"warning","message":{"text":"CostTracker.record_tokens (cognitive 18): CostTracker.record_tokens has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 4, ternaries 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/cost.py"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b488ca9ec98138b7252a833c9033f72944b0d4f4d4e19dec262f0d336e896d37"}},{"ruleId":"D2","level":"warning","message":{"text":"BedrockHandlerMixin.handle_bedrock_invoke (cognitive 18): BedrockHandlerMixin.handle_bedrock_invoke has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/bedrock.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"273fc5b4bac190e94647f74f5436b5ce92f439319dda8d9c1a086233413c10e6"}},{"ruleId":"D2","level":"warning","message":{"text":"loopback_guard.is_ip_literal_host_header (cognitive 18): loopback_guard.is_ip_literal_host_header has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, error handling 2 (3 pts) (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":"headroom/proxy/loopback_guard.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b81e6ab7f215923db633272dfb4a9b70709f69a3b642ee1710e893b2c447b4"}},{"ruleId":"D2","level":"warning","message":{"text":"output_turn_policy.classify_turn (cognitive 18): output_turn_policy.classify_turn has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 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":"headroom/proxy/output_turn_policy.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca98958520c4e04d1aef5a535c8ed8749279c522749690edf2f0c472ca5bda8"}},{"ruleId":"D2","level":"warning","message":{"text":"SavingsTracker.record_request (cognitive 18): SavingsTracker.record_request has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 7 (8 pts), boolean chains 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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82c968c9d13a81af247e1d88ddbb5d90cf8e2383b4232417f01bd9a9ceb6125"}},{"ruleId":"D2","level":"warning","message":{"text":"generator._build_waste_histogram (cognitive 18): generator._build_waste_histogram has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (4 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":"headroom/reporting/generator.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62ac4806a455d8a3704fdefdf4920312685fce5a0654f75ed0e3c8d88db6c74"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageReporter._report_usage (cognitive 18): UsageReporter._report_usage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/telemetry/reporter.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"2679f65b6a566aa782f1fcdfe96b014c2c585fc368cd2c3a8294dcdd2f939b3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolIntelligenceNetwork._update_field_statistics (cognitive 18): ToolIntelligenceNetwork._update_field_statistics has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), ternaries 2 (3 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":"headroom/telemetry/toin.py"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a48cc39cc00e29a4d03bdc21aa8e6143d02be20f08bd81f3e729d84018390ff"}},{"ruleId":"D2","level":"warning","message":{"text":"code_compressor._make_omitted_comment (cognitive 18): code_compressor._make_omitted_comment has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 1 (2 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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2776}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9133540a156e1d2ed9e1bfefaef54fe3611acd7e11c1906dc00e0710756d548"}},{"ruleId":"D2","level":"warning","message":{"text":"compaction_codec._decode_cell (cognitive 18): compaction_codec._decode_cell has cognitive complexity 18 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 8 (9 pts) (nesting depth added 6). 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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bc56490a0eb48910eef653853346c39b963fcf02a14964f0f11cbaa9b506ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAnalyzer::detect_temporal_field (cognitive 18): SmartAnalyzer::detect_temporal_field has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), boolean chains 2, match/switch 1 (2 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89de2111241135c115a4dd3950994d8a5e27ae5bbb2c6bd0358c2cae176efb9"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusher::execute_plan_tracked (cognitive 18): SmartCrusher::execute_plan_tracked has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (6 pts), boolean chains 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee31a8b44a1ebf382a2a7392e03ceef018251cc5c4883853303eeb6700e2584"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::live_zone::compress_openai_chat_live_zone (cognitive 18): headroom_core::transforms::live_zone::compress_openai_chat_live_zone has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), loops 2 (4 pts), boolean chains 2, match/switch 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2236}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d34099c65e4416857e6f6beba39ab9f4ddf2e972ddd84e0133c2e5400b3e10"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::text_crusher::crusher::apply_length_fallback (cognitive 18): headroom_core::transforms::text_crusher::crusher::apply_length_fallback has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/text_crusher/crusher.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"531bd5a63b90cb7a96a17736449188a6a2f7376928f04e7abe92b6f60774e450"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderPath::classify (cognitive 18): ProviderPath::classify has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-simulators/src/domain.rs"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"acea85e418f2c7eb129a487559331621eb936ab6fe2f8c0a86136219ec9e92d2"}},{"ruleId":"D2","level":"warning","message":{"text":"convert.normalizeToolResultContent (cognitive 18): convert.normalizeToolResultContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 5 (nesting depth added 5). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 523). The decisions are inside the literal, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literal\u0027s work into a named function or method at the enclosing scope and have the literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f364c9d225bb84aea649765a8ca0160da3de6cc9cdf45f3fff5c30888e44605"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicCacheOptimizer._insert_breakpoints (cognitive 17): AnthropicCacheOptimizer._insert_breakpoints has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 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":"headroom/cache/anthropic.py"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"842b9777a7980bd485cb865ca20c487981c435c748608f8dbfa751866d041c23"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicCacheOptimizer._extract_cacheable_content (cognitive 17): AnthropicCacheOptimizer._extract_cacheable_content has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 2 (4 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":"headroom/cache/anthropic.py"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"a95fcbeb0b945217cb7164f7b7f40cb2a880b5964b5baad77bfc9c8da6d37689"}},{"ruleId":"D2","level":"warning","message":{"text":"compression_cache._swap_tool_result_content (cognitive 17): compression_cache._swap_tool_result_content has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 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":"headroom/cache/compression_cache.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc1e528b2784181e7459c79a17189b8c415e1ac15a05cc636f7f1e45a06672cd"}},{"ruleId":"D2","level":"warning","message":{"text":"SemanticCache.get (cognitive 17): SemanticCache.get has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6 (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":"headroom/cache/semantic.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6de60403a3a8765fe7a568bda9dd6a09aa70755509c064f6a6e5d8e82e95988"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextTracker._calculate_relevance (cognitive 17): ContextTracker._calculate_relevance has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 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":"headroom/ccr/context_tracker.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2dc2c8dcd758a61837530b6e97baec07e73353e014894b898efd4968b6492b"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomMCPServer._probe_proxy_unreachable (cognitive 17): HeadroomMCPServer._probe_proxy_unreachable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (4 pts), boolean chains 3 (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":"headroom/ccr/mcp_server.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"2382d1f92edb646f2c57e6a20c3d074f2260b781609d40cc94c12b17923908c8"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingCCRHandler._openai_response_to_chunks (cognitive 17): StreamingCCRHandler._openai_response_to_chunks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 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":"headroom/ccr/response_handler.py"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"685042ff8c4e02f1f620c9c0a2fde503673ebc845ad6291dbf6642c8cfac8e47"}},{"ruleId":"D2","level":"warning","message":{"text":"tool_calls.drop_tool_calls (cognitive 17): tool_calls.drop_tool_calls has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2 (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":"headroom/ccr/tool_calls.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"261d30e048134ce795570d04a70bb7253284ffaf6246d99df303850a18de1f73"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.check_network_endpoints (cognitive 17): doctor.check_network_endpoints has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, ternaries 2 (4 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":"headroom/cli/doctor.py"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec8922fdcb6b1cbcd29daacc7dbb586460583c03ceff719e17d1a93955de35b"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy._tcp_port_in_use (cognitive 17): proxy._tcp_port_in_use has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts), loops 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":"headroom/cli/proxy.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8d46b2f11779b55ca51551b95a3fa2bc3811990f7ff172848c4d4b7a79f737"}},{"ruleId":"D2","level":"warning","message":{"text":"update.update (cognitive 17): update.update has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (5 pts), boolean chains 2 (nesting depth added 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":"headroom/cli/update.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"893f32b5eea768d7341d37b8112ca347660200ecf46aab9947db84491aabf273"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._kill_proxy_by_pid (cognitive 17): wrap._kill_proxy_by_pid has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 4 (5 pts), loops 3 (4 pts) (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":"headroom/cli/wrap.py"},"region":{"startLine":4596}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c4a7b8b5e9924a28304b80e69ec42b139941e6d4bc8a24532f937e42c7ac47"}},{"ruleId":"D2","level":"warning","message":{"text":"copilot_auth._parse_expiry (cognitive 17): copilot_auth._parse_expiry has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (4 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":"headroom/copilot_auth.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ac25b682dbdc620dfdc28ab4eaabda2741b4d9e3823138c8a4b700fe328128"}},{"ruleId":"D2","level":"warning","message":{"text":"adversarial_grid.run_adversarial_grid (cognitive 17): adversarial_grid.run_adversarial_grid has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (7 pts), if/else 3 (6 pts), ternaries 1 (4 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":"headroom/evals/adversarial_grid.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5071cd9fce6beab43b61fa9eef98d22d0401ad55c50396645755dcb003357565"}},{"ruleId":"D2","level":"warning","message":{"text":"comprehensive_benchmark.run_lm_eval (cognitive 17): comprehensive_benchmark.run_lm_eval has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 3, boolean chains 2, loops 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"369df247c130d4a0622a84d03f8efb56e016813752c9233230f4c9f506e56f69"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionEvaluator.evaluate_case (cognitive 17): CompressionEvaluator.evaluate_case has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, error handling 4 (5 pts), ternaries 3, if/else 2 (nesting depth added 1). 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":"headroom/evals/core.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9018c0a0ecbd58152643fc60d45639872a3814b7a9575e237dde5601305dfce"}},{"ruleId":"D2","level":"warning","message":{"text":"datasets.load_natural_questions (cognitive 17): datasets.load_natural_questions has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/datasets.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"68af777e447502f855d5e8f47981d64297bcd8ee7902b486dea028b779da794e"}},{"ruleId":"D2","level":"warning","message":{"text":"LoCoMoEvaluator.run (cognitive 17): LoCoMoEvaluator.run has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3 (4 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":"headroom/evals/memory/runner.py"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"e896e05be16be3036e6b40e9541f628ec523212777e78e5ccbfaba10ba178bf3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageCompressor.compress (cognitive 17): ImageCompressor.compress has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 6 (7 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":"headroom/image/compressor.py"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aa0c02d6bd44d0e94f5b5651e84abeaf73660e5a2cdee92b70a07cd19eaf75"}},{"ruleId":"D2","level":"warning","message":{"text":"providers._apply_unix_env_scope (cognitive 17): providers._apply_unix_env_scope has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (4 pts), loops 2 (3 pts), ternaries 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":"headroom/install/providers.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b03b484ea67875d8ba68d005de2c2296cfcbfbb270dce97013024b5adbf750"}},{"ruleId":"D2","level":"warning","message":{"text":"runtime.build_runtime_command (cognitive 17): runtime.build_runtime_command has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 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":"headroom/install/runtime.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"db52fd1bf29066772de6745502d30e0e1874d1334cea81ca8559074a5239b551"}},{"ruleId":"D2","level":"warning","message":{"text":"providers.detect_provider (cognitive 17): providers.detect_provider has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 4 (8 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":"headroom/integrations/langchain/providers.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d5258cd8a5eca459dccd54041012c9377175ea39aa3c1cda2515c8db39b01e"}},{"ruleId":"D2","level":"warning","message":{"text":"analyzer._detect_default_model (cognitive 17): analyzer._detect_default_model has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (4 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":"headroom/learn/analyzer.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4633fcebc18ed72e248e66da44f64f3226ced2ec9f6aa4918a5416ea057ddab"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiPlugin.discover_projects (cognitive 17): GeminiPlugin.discover_projects has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 2, ternaries 1 (2 pts), loops 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":"headroom/learn/plugins/gemini.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"1152066782591bfea43aa27bc1920c057ee590df3cd6ee12d8381fad1377f884"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeRegistrar.get_plugin_servers (cognitive 17): ClaudeRegistrar.get_plugin_servers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (3 pts), ternaries 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":"headroom/mcp_registry/claude.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d7557caea9598a62fb9467a93eb5df3f6418c8da3b929ad1aaaeb6a4b96755"}},{"ruleId":"D2","level":"warning","message":{"text":"HNSWVectorIndex.search (cognitive 17): HNSWVectorIndex.search has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc13c2e477bc550d6b2235f7be0698490d1885ed26857f7f6d1daf9e9ce4286"}},{"ruleId":"D2","level":"warning","message":{"text":"bridge_parsers.detect_format (cognitive 17): bridge_parsers.detect_format has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/bridge_parsers.py"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b8f798b1ccfea25b957d0650fbeaa19583c5cc419d3fb7b9f150b211d24185"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner.on_messages (cognitive 17): TrafficLearner.on_messages has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9628d598fa33193b32f32567820e9c3acedd1852df2f186f94a13142b2b7b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner._save_pattern (cognitive 17): TrafficLearner._save_pattern has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1, 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b06f80914f25f2f8ce659d39882a29bbc93f55a966d2f8a7032aa54c64f8d31"}},{"ruleId":"D2","level":"warning","message":{"text":"TrafficLearner._hydrate_persisted_state (cognitive 17): TrafficLearner._hydrate_persisted_state has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (6 pts), error handling 3 (5 pts), ternaries 2 (4 pts), boolean chains 1, loops 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d523e818ba4baf7561fc052de41a4db57b53ad43c322255b270b28e59df0c0"}},{"ruleId":"D2","level":"warning","message":{"text":"install._ensure_codex_auth_helper (cognitive 17): install._ensure_codex_auth_helper has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 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":"headroom/providers/codex/install.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b93ca5092de4e56a80322568a7200a580617db7f1fe39abd6f123bb1df9ff2"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayTurn.finish (cognitive 17): GatewayTurn.finish has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 2 (3 pts) (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":"headroom/proxy/gateway_extension.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd4403a3f57301132af8bdfa8c42e450376b4f4dcda4ac7258deb67a3f59cc9"}},{"ruleId":"D2","level":"warning","message":{"text":"openai._lift_codex_additional_tools (cognitive 17): openai._lift_codex_additional_tools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/openai.py"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"83455395607a446d1efb84abd4573bc62296fe5e0c5258888f78f87eb9acf909"}},{"ruleId":"D2","level":"warning","message":{"text":"astgrep._build_outline (cognitive 17): astgrep._build_outline has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 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":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffed4568f3be0bf4290c44b68975af15260d325891841fc6d99a0e3460730045"}},{"ruleId":"D2","level":"warning","message":{"text":"orphan_watchdog.orphan_watchdog_loop (cognitive 17): orphan_watchdog.orphan_watchdog_loop has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 5, loops 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":"headroom/proxy/orphan_watchdog.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04c6da2cb3252398cc6d4e80e4143ec7be39f6136d07050398dc1e3ca4dae1a"}},{"ruleId":"D2","level":"warning","message":{"text":"output_steering.apply_verbosity_steering (cognitive 17): output_steering.apply_verbosity_steering has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 1 (3 pts), loops 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":"headroom/proxy/output_steering.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"afaeb488acf82a2bf39a5ab17aeda6396cc5dc8ca8e5150b4afc8ce4e25c01a8"}},{"ruleId":"D2","level":"warning","message":{"text":"savings_attribution.accumulate (cognitive 17): savings_attribution.accumulate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (15 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":"headroom/proxy/savings_attribution.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9f6de38f3b83b84ea85e88d16ac9bb44df91cd8c9449782a7b34d15ce61c21"}},{"ruleId":"D2","level":"warning","message":{"text":"tls_diagnostics.find_cert_verify_error (cognitive 17): tls_diagnostics.find_cert_verify_error has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), boolean chains 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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04411dc537aab181dbc0dae1bdd61ee343007c66a8a661ed81a57c8edcd8199"}},{"ruleId":"D2","level":"warning","message":{"text":"savings_ledger._read_events (cognitive 17): savings_ledger._read_events has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 3, error handling 2 (3 pts), loops 1, ternaries 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":"headroom/savings_ledger.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e8acc03697cb4dd400bad8f6e953e500b8b59bc0ab5a0ead5e813f4ff51a8e"}},{"ruleId":"D2","level":"warning","message":{"text":"savings_ledger._maybe_compact (cognitive 17): savings_ledger._maybe_compact has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 3 (4 pts), boolean chains 3, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/savings_ledger.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b787e287518d4bf190e7a78c7653b07a6c457a2043af42fdfccbd0558ff6ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Headroom.with_provider (cognitive 17): Headroom.with_provider has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (17 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/testing/harness.py"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d264c85caf2b36d54925288a9d2b6327d4c436f951e56a9bae4eadead2c5c11"}},{"ruleId":"D2","level":"warning","message":{"text":"_PdfReader.__init__ (cognitive 17): _PdfReader.__init__ has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 4 (5 pts), loops 2 (3 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":"headroom/tokenizers/base.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bed69295267692325b0e4e4e2d477ce3daca52b9bcd8c9bfcf9a64b4c6628f"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigCompressor.compress (cognitive 17): ConfigCompressor.compress has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (4 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":"headroom/transforms/config_compressor.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6507d196359046ad73058e7e2627bd93c1b28c628dc82738e355fc3525ef52d5"}},{"ruleId":"D2","level":"warning","message":{"text":"content_router._custom_tool_call_commands (cognitive 17): content_router._custom_tool_call_commands has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, error handling 1 (2 pts), loops 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":"headroom/transforms/content_router.py"},"region":{"startLine":710}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1ce0bca2980bd3768634df61836c5953ba6dd390711207b22249c05589d3d5"}},{"ruleId":"D2","level":"warning","message":{"text":"cross_turn_dedup.dedup_blocks (cognitive 17): cross_turn_dedup.dedup_blocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 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":"headroom/transforms/cross_turn_dedup.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"71687b93ed21fa6e9f444a781ec74b905af0799caedb74632122c6efd5dadad5"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffOffload::estimate_bloat (cognitive 17): DiffOffload::estimate_bloat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 1 (2 pts), boolean chains 1, 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":"crates/headroom-core/src/transforms/pipeline/offloads/diff_offload.rs"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"0438206de418ba500ea56eeb87d6f2df869769382d66f42a17aba9b9dc379593"}},{"ruleId":"D2","level":"warning","message":{"text":"LogTemplate::apply (cognitive 17): LogTemplate::apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 1 (2 pts), loops 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":"crates/headroom-core/src/transforms/pipeline/reformats/log_template.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"45037e00c4bfb996f42b1d806d101e50d13ee1958b5f8aa352846a36624a87db"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchCompressor::select_matches (cognitive 17): SearchCompressor::select_matches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f846edf283355fe4b7bdc5ae0d72f51a67691ee75dbfea604112cadb99418e5"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartCrusherPlanner::plan_smart_sample (cognitive 17): SmartCrusherPlanner::plan_smart_sample has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), if/else 2 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7124ad43517fc9193ae5d224d4547b2e22f344812f99ffa12a1b183e46f9d9"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::adaptive_sizer::compute_unique_bigram_curve (cognitive 17): headroom_core::transforms::adaptive_sizer::compute_unique_bigram_curve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (8 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":"crates/headroom-core/src/transforms/adaptive_sizer.rs"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b37580216cb2fcd289da970337808f04bbab91680a78c8dd639f761eab12f9b"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::code_compressor::first_line_docstring (cognitive 17): headroom_core::transforms::code_compressor::first_line_docstring has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (4 pts) (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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"e484ff99c7d07991756b2845698b4010513c3bcc156bf9f0678608a2841a4cec"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::content_detector::try_detect_git_status (cognitive 17): headroom_core::transforms::content_detector::try_detect_git_status has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, match/switch 1 (2 pts), loops 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":"crates/headroom-core/src/transforms/content_detector.rs"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"61bfba5e62435ddf25f36127b96df34874b3dffc80c9d1f342fb7b359c34c8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::live_zone::plan_block_replacements (cognitive 17): headroom_core::transforms::live_zone::plan_block_replacements has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"6869d28fc91327ed3913a5f11be6dbc80af54fbc14ce0a5dc8fd8272799cfd3c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::compaction::compactor::cell_from_value (cognitive 17): headroom_core::transforms::smart_crusher::compaction::compactor::cell_from_value has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (12 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/compaction/compactor.rs"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd92c9ad02818c753ca8aef307cc2a76311740368d070f2576123b718dbf6943"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::statistics::detect_sequential_pattern (cognitive 17): headroom_core::transforms::smart_crusher::statistics::detect_sequential_pattern has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 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":"crates/headroom-core/src/transforms/smart_crusher/statistics.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b956fead48777baacad792f9baa856f858da3533cbb28604d2cd844d864951a"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::text_crusher::crusher::split_segments_icu (cognitive 17): headroom_core::transforms::text_crusher::crusher::split_segments_icu has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 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":"crates/headroom-core/src/transforms/text_crusher/crusher.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3f10347a45652c8ba1d4227ac9216e44bf26a84f35f778936eb16132129b4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkState::apply (cognitive 17): ChunkState::apply has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (2 pts) (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":"crates/headroom-proxy/src/sse/openai_chat.rs"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2015de30cd36eb6907dd5744154e46386afe321fa1486ef914e63dae727358"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkState::apply_choice (cognitive 17): ChunkState::apply_choice has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/sse/openai_chat.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"95bae87d724500418d1ddb785000cf8b2e042c64ae42b9165cae7b855fb2044c"}},{"ruleId":"D2","level":"warning","message":{"text":"worker.extract (cognitive 17): worker.extract has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), boolean chains 5, if/else 1 (4 pts) (nesting depth added 7). 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":"deploy/beacon/worker.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37b27ce10a3bdc652761af6cc3bd74e4579d9cd0f0970df00e68e90809dfe51"}},{"ruleId":"D2","level":"warning","message":{"text":"snip.bar (cognitive 17): snip.bar has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. 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":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb27cab45020621c49203eb45e30129dbe4d233851683f0f0adadef2badd1ca"}},{"ruleId":"D2","level":"warning","message":{"text":"convert.replaceTextBlocks (cognitive 17): convert.replaceTextBlocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (5 pts), boolean chains 3, loops 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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea9834217dd631d074a21a12e5077c76aa3161daea6b26c8e7d8a2c5265e08e"}},{"ruleId":"D2","level":"warning","message":{"text":"format.anthropicMediaImageUrl (cognitive 17): format.anthropicMediaImageUrl has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, ternaries 1 (2 pts), loops 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec76969a2718fd10f48d8966bda4fef7730321c1732093ac869b8732128865f2"}},{"ruleId":"D2","level":"warning","message":{"text":"scheduled (cognitive 17): scheduled has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 4 (5 pts), error handling 1 (2 pts), ternaries 1 (2 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":"deploy/beacon/worker.js"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"b529becead42b58afe30e6a979f7cf1b0bc74ab5a6a97701b7f494cfaf6a1b03"}},{"ruleId":"D2","level":"warning","message":{"text":"_fileperms_windows.open_no_follow (cognitive 16): _fileperms_windows.open_no_follow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, error handling 1, ternaries 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":"headroom/_fileperms_windows.py"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f240989126be6a465f208eb231ff82ca40bfb38a6e980e684f8f5156e157d8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicCacheOptimizer._looks_like_example (cognitive 16): AnthropicCacheOptimizer._looks_like_example has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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":"headroom/cache/anthropic.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"77385a6fb36c4586cd9e72229dfdca4956ebefa96d4f7c9218a94e72ab623796"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseCacheOptimizer._extract_system_content (cognitive 16): BaseCacheOptimizer._extract_system_content has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/base.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1a6c71bb9fa117bebb2f69e6a55da652b1bcb524ca3332b21db31beccf6798e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTrackerStore.compute_session_id (cognitive 16): SessionTrackerStore.compute_session_id has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (4 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":2108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f94c3794e9b1a48c6437ef6bde54a8e440941c6ec9339413f78b22c9a42fa9e"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionTrackerStore._decode_state (cognitive 16): SessionTrackerStore._decode_state has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 1 (3 pts), boolean chains 2, loops 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":2391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f483a8d67fcff1664eb1fdde256b211e9b6a16ca83ae2e87eed7f550001780d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ttl_observations.resolve_learned_ttl (cognitive 16): ttl_observations.resolve_learned_ttl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 3, error handling 2 (3 pts), 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":"headroom/cache/ttl_observations.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f8c36bd14180c54dcaedab285b3d18126c90c771b8f48e4c14092409643889"}},{"ruleId":"D2","level":"warning","message":{"text":"doctor.check_savings (cognitive 16): doctor.check_savings has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6, error handling 1 (2 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/doctor.py"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aeb91e70787a51c8ab84bc462a8b1b5f749d435751bb92e7346e75bf518cfb5"}},{"ruleId":"D2","level":"warning","message":{"text":"init._ensure_codex_provider (cognitive 16): init._ensure_codex_provider has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (4 pts), boolean chains 2, loops 1 (2 pts), 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":"headroom/cli/init.py"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e653f57edab0b697ff46740f1e4ec3bca2e22cc464f643cee342fbef79da4b"}},{"ruleId":"D2","level":"warning","message":{"text":"wrap._remove_headroom_installed_serena_mcp (cognitive 16): wrap._remove_headroom_installed_serena_mcp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (2 pts), ternaries 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/wrap.py"},"region":{"startLine":3050}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca2f52fe142b3fd9a733979e0d823219b9c1a1fb21e56116fa448d89d5a484c"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomClient.__init__ (cognitive 16): HeadroomClient.__init__ has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 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":"headroom/client.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dee5f33346424380a53eb9fb1a673dccfb13ce542ebc21f694e953bf9fa3e2"}},{"ruleId":"D2","level":"warning","message":{"text":"copilot_auth._read_windows_copilot_cli_oauth_token (cognitive 16): copilot_auth._read_windows_copilot_cli_oauth_token has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/copilot_auth.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b30e595810681db9be4c8c15a735f1b753ac7893970dc5554769c5508f8d60a"}},{"ruleId":"D2","level":"warning","message":{"text":"copilot_auth.poll_copilot_device_authorization (cognitive 16): copilot_auth.poll_copilot_device_authorization has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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":"headroom/copilot_auth.py"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"534318a7b7dba6028cdb2f1b717be5c9822a9c52eb5e1ddc3fdfd338549a4e06"}},{"ruleId":"D2","level":"warning","message":{"text":"__main__.cmd_report (cognitive 16): __main__.cmd_report has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (11 pts), loops 2 (3 pts), boolean chains 1, if/else 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":"headroom/evals/__main__.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d05b49271c43b5f35bd4914148e74a8b8900a537f4671f3329558e03fe26967"}},{"ruleId":"D2","level":"warning","message":{"text":"tile_optimizer._optimize_content_block (cognitive 16): tile_optimizer._optimize_content_block has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 pts), error handling 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":"headroom/image/tile_optimizer.py"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"01994eb3c2a172fe0c1f94d008523ae6b4a3c66f302422ac458d80d0bd004e66"}},{"ruleId":"D2","level":"warning","message":{"text":"model.optimize_messages (cognitive 16): model.optimize_messages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 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":"headroom/integrations/agno/model.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"a187172708fb0408f965d73a56aa743f96c4ea931735647eeaacbf273c232851"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeCodePlugin._extract_user_events (cognitive 16): ClaudeCodePlugin._extract_user_events has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, loops 1 (2 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/plugins/claude.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4422b4960230b4e80863e2c6c3f7ec7cf0d4bbd813f2148b5f57bd6c269b82a9"}},{"ruleId":"D2","level":"warning","message":{"text":"DirectMem0Adapter.search_memories (cognitive 16): DirectMem0Adapter.search_memories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, loops 1, ternaries 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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43e81ed3084c13d50479359ea19f7e2efdcb5bfb49c69d68ded1db463485906"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryBridge._get_new_organic_memories (cognitive 16): MemoryBridge._get_new_organic_memories has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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":"headroom/memory/bridge.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"965617729c74b8b7c4d347a4034a50d29aea0113e2ae6dff6f820593302497f7"}},{"ruleId":"D2","level":"warning","message":{"text":"bridge_parsers.extract_entities_from_text (cognitive 16): bridge_parsers.extract_entities_from_text has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 5, boolean chains 3 (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":"headroom/memory/bridge_parsers.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c6f700f3c7a87491e6b1db6ba335832c73ce59c74eaa17ecaa967c9782848"}},{"ruleId":"D2","level":"warning","message":{"text":"factory._create_vector_index (cognitive 16): factory._create_vector_index has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (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":"headroom/memory/factory.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"368c6294f94cb42b7ba51b5f90cf14e920f7cd618248bd50a47045e2b1a7f2e8"}},{"ruleId":"D2","level":"warning","message":{"text":"traffic_learner._patterns_to_recommendations (cognitive 16): traffic_learner._patterns_to_recommendations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), loops 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":"headroom/memory/traffic_learner.py"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2fa8314282b6c15573cefe6cc02dbd894da2625cdd5dea3374cf1886c64fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadroomOtelMetrics.record_pipeline_run (cognitive 16): HeadroomOtelMetrics.record_pipeline_run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (6 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":"headroom/observability/metrics.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8f21560fe43742abda6186574854ee953721f606befc86cc2a0f740b5bb9ca"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexProjectContextResolver._turn_identity (cognitive 16): CodexProjectContextResolver._turn_identity has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 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":"headroom/providers/codex/project_context.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e6cd0d3a3f46b6b468026bfcff18eac54c7552b1a20ccf85822f2c3fdeb95e"}},{"ruleId":"D2","level":"warning","message":{"text":"recovery._merge_pinned_home (cognitive 16): recovery._merge_pinned_home has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), boolean chains 5, loops 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":"headroom/providers/codex/recovery.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c45e4c0d191ad783a042e4a48cf1f3eadc38a4e8f9bce9026d8f68ecb0ea0be"}},{"ruleId":"D2","level":"warning","message":{"text":"threads._codex_state_db_paths (cognitive 16): threads._codex_state_db_paths has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (5 pts), error handling 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":"headroom/providers/codex/threads.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b420e63edbe7d58e179c32d690788c5d3ede396fb791a168a92bba27f86862f"}},{"ruleId":"D2","level":"warning","message":{"text":"config._strip_jsonc_comments (cognitive 16): config._strip_jsonc_comments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), 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":"headroom/providers/opencode/config.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07036f4bb06c31e372eaf27663af20275ccbc82f05d6f88779c2d49d1cb26f6"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway_turn._usage_in_shape (cognitive 16): gateway_turn._usage_in_shape has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 4, ternaries 1 (3 pts) (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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f399b797b9bf1abae31b155fd33606e0e8957a8c401e8c6f57a9426503e80c3"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin._extract_cache_stable_last_message_suffix (cognitive 16): AnthropicHandlerMixin._extract_cache_stable_last_message_suffix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7f3f74cef95c03b93f588edeb0cce4caf9ecd49f5b0c1e7a1c2f7730f5c857"}},{"ruleId":"D2","level":"warning","message":{"text":"AnthropicHandlerMixin.handle_anthropic_batch_results (cognitive 16): AnthropicHandlerMixin.handle_anthropic_batch_results has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6776}}}],"partialFingerprints":{"codehealthFindingId/v1":"c098d3b37d9f594f6b5028fe87eed338c799ead976c8ab75f9030b5116dc4b7f"}},{"ruleId":"D2","level":"warning","message":{"text":"GeminiHandlerMixin._carry_tail_append_into_preserved (cognitive 16): GeminiHandlerMixin._carry_tail_append_into_preserved has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 3, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0eb64426690c10c6541942271aad63ad39d1d5ff0c38d3f2074ebb7a77e8e8"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIHandlerMixin._observe_openai_ws_response_create (cognitive 16): OpenAIHandlerMixin._observe_openai_ws_response_create has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2250}}}],"partialFingerprints":{"codehealthFindingId/v1":"788f2d7f90157583ad50e30fc4c7ba61077a1972753650171eff987a88f28716"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers._read_request_body_bytes (cognitive 16): helpers._read_request_body_bytes has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (6 pts), if/else 4 (6 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/helpers.py"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"2303986cbd926e3872b5f4e29a962ca25f2c0a78005474e95cdb122ab283dc52"}},{"ruleId":"D2","level":"warning","message":{"text":"helpers.inject_tool_search_deferral_openai (cognitive 16): helpers.inject_tool_search_deferral_openai has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, loops 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":"headroom/proxy/helpers.py"},"region":{"startLine":4793}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c81efde772bfabb395d6289b644486a18ece49afd84eadb4876b7592907b3e"}},{"ruleId":"D2","level":"warning","message":{"text":"output_shaper._responses_tool_output_is_error (cognitive 16): output_shaper._responses_tool_output_is_error has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 2, error handling 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":"headroom/proxy/output_shaper.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cd7e0476e4b3930d2e9422164682da758b3fe7783c2e80865b0da5839385aa8"}},{"ruleId":"D2","level":"warning","message":{"text":"output_turn_policy.classify_openai_responses_input (cognitive 16): output_turn_policy.classify_openai_responses_input has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 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":"headroom/proxy/output_turn_policy.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9caf508cb679ed3b17f14c9f0ff5c75359ccea665dce235a8bc6c14336b7a7e"}},{"ruleId":"D2","level":"warning","message":{"text":"PersistentMetricsState._normalize (cognitive 16): PersistentMetricsState._normalize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 6, ternaries 2 (3 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5623cd591cf9f4eba46bbbb1835da7c08cf3c8ece0b63dee64b9e9f31c1c04"}},{"ruleId":"D2","level":"warning","message":{"text":"sse_byte_buffer_policy.parse_sse_events_from_byte_buffer (cognitive 16): sse_byte_buffer_policy.parse_sse_events_from_byte_buffer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 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":"headroom/proxy/sse_byte_buffer_policy.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7031801286e9dfb777ea4f3e8f74be46dd2f2d7481a46043e5eb3c5c5ab542"}},{"ruleId":"D2","level":"warning","message":{"text":"turn_hooks.merge_provider_headers (cognitive 16): turn_hooks.merge_provider_headers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"headroom/proxy/turn_hooks.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7af723d1f9ca0805f07097bc8cc3c092e7e2853fbb29082f8c944a0ca827cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"context.detect_stack (cognitive 16): context.detect_stack has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 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":"headroom/telemetry/context.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8db68b9897d8f30512cfb3ec7cbfdea03d99b121968e0a23a5e077dab2e3e34"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralTokenizer.count_messages (cognitive 16): MistralTokenizer.count_messages has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 2 (4 pts), boolean chains 1, error handling 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":"headroom/tokenizers/mistral.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeee9b1633c11bf8e1300aea850ede6f44835ba0f34038f6239a480508b0137e"}},{"ruleId":"D2","level":"warning","message":{"text":"CompressionCache.get (cognitive 16): CompressionCache.get has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), 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":"headroom/transforms/content_router.py"},"region":{"startLine":1914}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4a4d5430ffcf025425c348a253e73f05a62ad3642bed87c965c00463456aec"}},{"ruleId":"D2","level":"warning","message":{"text":"ContentRouter._lossless_first (cognitive 16): ContentRouter._lossless_first has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 2, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/content_router.py"},"region":{"startLine":3886}}}],"partialFingerprints":{"codehealthFindingId/v1":"3808ae3533b279476886976e2ef16f94577ba46cb1f09eb8394f2554316b3b86"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadLifecycleManager.apply (cognitive 16): ReadLifecycleManager.apply has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 1 (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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"992f67f8f0fe2350de47072dd9f14f6922641c6a2bbe369fda780cf95f709fcf"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadLifecycleManager._classify_reads (cognitive 16): ReadLifecycleManager._classify_reads has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"6317d5f04ef415d8c4e7e51b166096c119f77bb1df4833e7087b6e6a03fcb6c8"}},{"ruleId":"D2","level":"warning","message":{"text":"recursive_json._scan_spans (cognitive 16): recursive_json._scan_spans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/recursive_json.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07c2132f19b9f1b7ec2b86ae3fc60a03753282e5de0fadfcad38a2a2e26784f"}},{"ruleId":"D2","level":"warning","message":{"text":"LogCompressor::parse_lines (cognitive 16): LogCompressor::parse_lines has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1bedeb52d235f6fa7354da0bc92aed1c66abcfc6edc162969a43cf279bf6e82"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartAnalyzer::detect_pattern (cognitive 16): SmartAnalyzer::detect_pattern has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, loops 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca7c1f9d50a75d6cc75ecb13a630e4e79db7c20e9cecb56b6417d73bcfeda56"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::live_zone::dispatch_compressor (cognitive 16): headroom_core::transforms::live_zone::dispatch_compressor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"1587d0072766a0462fbad9ce9b04e98d1a1f987bea148e10a05f246145c0eeff"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::pipeline::offloads::search_offload::extract_file_prefix (cognitive 16): headroom_core::transforms::pipeline::offloads::search_offload::extract_file_prefix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 4, loops 2 (4 pts) (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":"crates/headroom-core/src/transforms/pipeline/offloads/search_offload.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c0a783ac2c571955fdd331dc555983e77e9da46c6696a573db08c8ce7ef247"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::safety::collect_assistant_tool_call_ids (cognitive 16): headroom_core::transforms::safety::collect_assistant_tool_call_ids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (4 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":"crates/headroom-core/src/transforms/safety.rs"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8964b462e6c0bb5d712c7eb0746b223c3f0375f3a2e1982e930a5f7f776bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::compaction::formatter::write_kv_table (cognitive 16): headroom_core::transforms::smart_crusher::compaction::formatter::write_kv_table has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 2 (3 pts), match/switch 1 (3 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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a4913647c4961109fcbfd1458be76adafadeeed89956880001f4950a6dc775"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::smart_crusher::orchestration::fill_remaining_slots (cognitive 16): headroom_core::transforms::smart_crusher::orchestration::fill_remaining_slots has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 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":"crates/headroom-core/src/transforms/smart_crusher/orchestration.rs"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"43cf3cca3b2aa3ff2c2458c0ea7286f975b81026109f6696afdb64afdd0b6d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"headroom_core::transforms::text_crusher::crusher::relevance_cjk (cognitive 16): headroom_core::transforms::text_crusher::crusher::relevance_cjk has cognitive complexity 16 (threshold 15). Drivers by points: loops 6 (10 pts), if/else 3 (5 pts), boolean chains 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":"crates/headroom-core/src/transforms/text_crusher/crusher.rs"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a666864f6b266bdc9e16114618d83b21e26038f5ddf427792d2ab8445229b30"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.html.dashboard.renderTransformationCard (cognitive 16): dashboard.html.dashboard.renderTransformationCard has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (7 pts) (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0229d84a2cb2c34fdc064da52631683883a8613f3df7d042dcad5c503e9930d"}},{"ruleId":"D2","level":"warning","message":{"text":"DurableAdvancementKeyStore.migrateLegacyLog (cognitive 16): DurableAdvancementKeyStore.migrateLegacyLog has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, error handling 2, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/advancement-key-store.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4bbef24da58d683232d77c2817745cc5ac3178cfcd2886608bc5fad8ab4cd2c"}},{"ruleId":"D2","level":"warning","message":{"text":"gateway-config.applyGatewayProviderBaseUrlsInPlace (cognitive 16): gateway-config.applyGatewayProviderBaseUrlsInPlace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 4, ternaries 2 (4 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":"plugins/openclaw/src/gateway-config.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"66083ef69891a76a41a952586d117b4ea738b92835b1b76d029c7aa9b165d4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"stream.parseSSE (cognitive 16): stream.parseSSE has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), error handling 1 (4 pts), loops 2 (3 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":"sdk/typescript/src/utils/stream.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"effff8bea692d7bfcfe8bb93635c258ec5fd1d01c0b091c3347862b6e116d8c0"}},{"ruleId":"D2","level":"warning","message":{"text":"fetch (cognitive 16): fetch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), error handling 3 (5 pts), boolean chains 2, ternaries 1 (nesting depth added 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":"deploy/beacon/worker.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddc5cd1b6723524d4e594ee78b72dceb73765da670ec61e6c55f3b829c79bf3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/openai.py: FileTooLong \u2014 8519 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 8019 over it, 17.04\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a149c868bb131bca2b799ddff44dd590f260b961e2c6b020d20310d5a71c568"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/wrap.py: FileTooLong \u2014 5969 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5469 over it, 11.94\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":"headroom/cli/wrap.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f64756261232448473a4030fa2bce3d21bd67cc5a820a76783ad59e6c42dcda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/server.py: FileTooLong \u2014 4600 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4100 over it, 9.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":"headroom/proxy/server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae5836cbb1b9f283a7ad183585fe580338c5bcf45753208d66d86114e1e6325"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/content_router.py: FileTooLong \u2014 4550 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4050 over it, 9.10\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":"headroom/transforms/content_router.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08bfde1ef72fa62e2bec2b9ac1910357042b133984859a93c2c08a7148556635"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/anthropic.py: FileTooLong \u2014 4240 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3740 over it, 8.48\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db25be9c10760af91f89e8deec882579cc84e897941019217acca1a8a5068881"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/helpers.py: FileTooLong \u2014 2527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2027 over it, 5.05\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":"headroom/proxy/helpers.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"416a2bc5e2835e76f58e5e39259cb3f394282088860da90d7939d8b74bfb300e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::proxy::forward_http: FunctionTooLong \u2014 headroom_proxy::proxy::forward_http runs 437 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 337 over it, 4.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"611f38f1f84fac64cfd6a9e6b3dc6fe11dfd8f1d5bf274be34722734b70b5c08"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/streaming.py: FileTooLong \u2014 1759 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1259 over it, 3.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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e1ebe080bb7e103da35cac00c994cba4870ab889ae82fcf95a2af614920419"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/savings_tracker.py: FileTooLong \u2014 1742 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1242 over it, 3.48\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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a5555e2f12539dacdf952886bd5a8fb1dc7ac941b794042b9324256096ce04"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/code_compressor.py: FileTooLong \u2014 1702 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1202 over it, 3.40\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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79b2a30f136f61cb82138c09c54cdf08082b7ac9b58b9c2b03726acd02635cb0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/kompress_compressor.py: FileTooLong \u2014 1642 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1142 over it, 3.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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcb4c24f82c11f478a89c8f53341e086efce9041ebb00d8a9a39f794b99a9df"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: memory/traffic_learner.py: FileTooLong \u2014 1376 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 876 over it, 2.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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5258f358ec63bfae92f807e36d3375cbc587b1da0cacd345a9a87f1f5116cace"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::vertex::raw_predict::forward_vertex_request: FunctionTooLong \u2014 headroom_proxy::vertex::raw_predict::forward_vertex_request runs 271 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 171 over it, 2.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/vertex/raw_predict.rs"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a92e42e45b5c7cb517b50a85ddf8ce525c0dc692e51a453061daf8ee112fcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/prefix_tracker.py: FileTooLong \u2014 1343 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 843 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5914c03fb7c0c1f3889ced9bc8fe6193b7fc2fbbfd7287ff182258f39350b17"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/proxy.py: FileTooLong \u2014 1332 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 832 over it, 2.66\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":"headroom/cli/proxy.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9298591a9e4236c1fafb5b6eb60ade8f8dd9ff32d43b59e7dd0d3f33b6e09cc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming: FunctionTooLong \u2014 headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming runs 259 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 159 over it, 2.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdee96242a572b1ce2afe86906699ed7092d2dec7a6a455ecde2e9052b16cff1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/memory_handler.py: FileTooLong \u2014 1269 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 769 over it, 2.54\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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0178ab21a882cb33703011e33dd60b24d38f08b772c6efa522976ec1bf2f3602"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/prometheus_metrics.py: FileTooLong \u2014 1254 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 754 over it, 2.51\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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d061885572106d9695f692c0dbb7e488de25fe7614d4ee5cd89116be6cbca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testing/harness.py: FileTooLong \u2014 1234 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 734 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":"headroom/testing/harness.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61fafd0914dc88c1bc30fac8b20ea58bb5ffb6704ffb7b55f029842d3cd8738"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ContentRouter: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\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":"headroom/transforms/content_router.py"},"region":{"startLine":2702}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b02655c97cb53af774ff4e169ec6a682cf4d1e77ff03ceffe6737c6542c72a7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/code_compressor.rs: FileTooLong \u2014 1186 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 686 over it, 2.37\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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de9b7a79e780f68086c5f85faaa2f2b96cfbf335efc3d4f3022409006e707d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request: FunctionTooLong \u2014 headroom_proxy::compression::live_zone_anthropic::compress_anthropic_request runs 236 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 136 over it, 2.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bff90c53c76bf91a04be700c6e86a16df0db27650180d1196127aa19dad2f3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/live_zone.rs: FileTooLong \u2014 1175 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 33 free functions. The bar is 500 significant lines; this is 675 over it, 2.35\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc3ca00db39b1d46436ab9d3bc3149a0c51541e72cb4cdca13e145b585a042c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 652 over it, 2.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":"crates/headroom-py/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3206aaacd9042a143e1614bc10259026bcd8555e56bed7917469db03a9d90bb6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backends/litellm.py: FileTooLong \u2014 1140 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 640 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":"headroom/backends/litellm.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"904f9421d385248560ad4b23bd176b1eb3cbfd968fd99c7432c0bf319d711081"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::proxy::run_sse_state_machine: FunctionTooLong \u2014 headroom_proxy::proxy::run_sse_state_machine runs 228 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed6e121e9995d1699b6fca93a971abff7004008eb6700bfc5bc02e70d58c902"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/gemini.py: FileTooLong \u2014 1139 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 639 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5ef683364d9ac9e3886017141f93c6174f824fe978883c905e06fbbfc1ba76"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/gateway_turn.py: FileTooLong \u2014 1123 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 623 over it, 2.25\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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f34a3df3bf2db95a65f19aa083810677eb8756e480b871fe538f476eb968bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headroom/copilot_auth.py: FileTooLong \u2014 1100 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 600 over it, 2.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":"headroom/copilot_auth.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f75c5098c2eaca8d815cbe8820db57e853de3dec897881a34da8fdeff04ea9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: proxy/cost.py: FileTooLong \u2014 1099 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 599 over it, 2.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":"headroom/proxy/cost.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df216f653b17c3028b4213d13acd5cd0d58ea274daf8211834b83c4c8cd3dea"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::bedrock::invoke::handle_invoke: FunctionTooLong \u2014 headroom_proxy::bedrock::invoke::handle_invoke runs 219 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 119 over it, 2.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74afbd713efbcd7b9ceb8eb40416a0f1ec838ce9ae95749d1dbee5becc8e4c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/init.py: FileTooLong \u2014 1055 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 555 over it, 2.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":"headroom/cli/init.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efbbb2a90c30228549e55b1414781904b9a4c46957d8461ab82155d8778e583"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/log_compressor.rs: FileTooLong \u2014 1021 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 521 over it, 2.04\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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6f1dc69b88deb76fe130c93846d9450933b2403de8f9b59b4fd506e8524940"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/install.py: FileTooLong \u2014 1010 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 510 over it, 2.02\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":"headroom/cli/install.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5493142f466a560700778277bf152a4cb046fc7e9204439cd6bb87732cf093a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/proxy.rs: FileTooLong \u2014 990 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 490 over it, 1.98\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da8af14d27346d6035426d958c21099440f094a40494e62d189e09d89a95732"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: telemetry/session.py: FileTooLong \u2014 964 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 464 over it, 1.93\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":"headroom/telemetry/session.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c562768945e1d85cff7b5cf7ced49bc7107bfaba989f0b1358d882dd4bae43"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: telemetry/toin.py: FileTooLong \u2014 954 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 454 over it, 1.91\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":"headroom/telemetry/toin.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"923e56934168da3c3401041efe7a4cb16deb0207fe255c059378238d63525dcc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ccr/mcp_server.py: FileTooLong \u2014 946 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 446 over it, 1.89\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":"headroom/ccr/mcp_server.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a7ee8d1555fc15ff49c7ba82ccdfcd5016f111bafc112220223ef49ebf93c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::compression::live_zone_responses::compress_openai_responses_request: FunctionTooLong \u2014 headroom_proxy::compression::live_zone_responses::compress_openai_responses_request runs 189 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_responses.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1c383cd0652ee621a4c23ca5ccf56ac5fff7a98b1091f542989d5961193b32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: evals/batch_compression_eval.py: FileTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 443 over it, 1.89\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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"694cf43197758f9255ddecca1394ba7940d83829dfaf29f49189b8ceb0644429"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/doctor.py: FileTooLong \u2014 936 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 436 over it, 1.87\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":"headroom/cli/doctor.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf67d5f0a70d1c9f835399c3365acb4129f2900b26333315bd38fd636a6cc78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headroom/settings_store.py: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 432 over it, 1.86\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":"headroom/settings_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c676c8a046c1bffffafdb24719a9b8203d9f75df08bbf2cce264a684727dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::compression::live_zone_openai::compress_openai_chat_request: FunctionTooLong \u2014 headroom_proxy::compression::live_zone_openai::compress_openai_chat_request runs 182 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b8d926d2a58ec594e1415aaec1660800a09bfa70dc5c5e54a0199e7da4f2e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/memory.py: FileTooLong \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 391 over it, 1.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":"headroom/cli/memory.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74841975a226708614e81caa3ff2aa9bdb52b779cba7457910f65e4449609e1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handlers/batch.py: FileTooLong \u2014 881 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 381 over it, 1.76\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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b955d209dee6603cc42bc7d7b7828b76fb14d305112318a5203124692017a2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/compression_store.py: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 302 over it, 1.60\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":"headroom/cache/compression_store.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac824d4e558c8dabcf2f7be6be4698deb04b1b4bb54978cfa91bf6c916405413"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/diff_compressor.rs: FileTooLong \u2014 794 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 294 over it, 1.59\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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b08efe7ce9bb133ed7f3288c3e9c37dbd795f8dce6707033329094c1bc39b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: register.register: FunctionTooLong \u2014 register runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"463445ff2a319b743867c818a0f6e8bdff031afebd2de3a74b187458fec853bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartAnalyzer.analyze_crushability: MethodTooLong \u2014 analyze_crushability runs 157 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9217a2c8422a19b4bfbe37e259a30d7f11370282e43bb17a879c20f3b5c8d1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiffCompressor.compress_with_ccr_source: MethodTooLong \u2014 compress_with_ccr_source runs 156 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0380cbbbefc4a252e443f92a6b3bbee8cb6a0f992c20a587fec738c03b6d7c72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Ctx.compress_function_ast: MethodTooLong \u2014 compress_function_ast runs 146 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1511}}}],"partialFingerprints":{"codehealthFindingId/v1":"275b293ff6bda3b94fb91038b0e032278982c0ad2eca28f04a4a81477be2a844"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryHandler: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\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":"headroom/proxy/memory_handler.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb68951d37305003a75e2a40382bddd8ed6ab3355852f1db444e0f042957c57"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: evals/datasets.py: FileTooLong \u2014 714 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 214 over it, 1.43\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":"headroom/evals/datasets.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94d50038ffb8722409ce89ea27080d8b62bf155447d881d2b6821740e0f1de8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/smart_crusher.py: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 200 over it, 1.40\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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f4a8fc2ed6fed4b69cfef567e67da3634d9d26d615ffccf4b898cf3ad3a478"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observability/ledger.rs: FileTooLong \u2014 700 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 200 over it, 1.40\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":"crates/headroom-proxy/src/observability/ledger.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"019578cbcf8277e982b8fb2abf751cc8787c668063f04f5cd1765a1fd873140c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: utils/format.ts: FileTooLong \u2014 698 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 198 over it, 1.40\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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadd10d21bd11890a0a65f670d71202a3ac8dbe60c21f02eb476ea4c00c5e30f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartCrusher: ClassTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 21 methods, 2 blocks, lines 121-1203. The bar is 400 significant lines; this is 155 over it, 1.39\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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67a6c1b316ef89b4c1ea5f2948a16a3588e0443955051830d4ebdcc0e94998c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: templates/dashboard.html: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 177 over it, 1.35\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":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d50b2381c61affc0057da4f6afb4f8d1695d04db12447c92ef18ddf50bc991"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: headroom/client.py: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 169 over it, 1.34\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":"headroom/client.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1442b4544971aaf2e43b6c342a5875ff4658bc017e51e79ef94c5e558811d913"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: codex/recovery.py: FileTooLong \u2014 655 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 155 over it, 1.31\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":"headroom/providers/codex/recovery.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b28484721b44053aa3071395e772ea6bf1c67b057be2d88e02901e1da6be66b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: install/supervisors.py: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 153 over it, 1.31\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":"headroom/install/supervisors.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5e259e95b3bbc298a231bbf1c20d2e79ee247f4e5df4a4e0824a6578f51177"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smart_crusher/crusher.rs: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: SmartCrusher (2 blocks, 121-1203). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2567fbde21e533830f9710e859aeafc83d681ab7faa5f798b8231890f023b5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: bedrock/invoke_streaming.rs: FileTooLong \u2014 642 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 142 over it, 1.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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6076054983c355cac021b92abeaf2e31fcc9731e4da78407d91b1f8b3b6608"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SmartCrusher.process_value_with_hook: MethodTooLong \u2014 process_value_with_hook runs 126 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86425d361a423bc25104a06efbc5488ed1b734c2dbf5c7fd023d0b018439b32"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: memory/runner_v2.py: FileTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 122 over it, 1.24\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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dc3c5d08917e2c6770d39b4aef7ebc1f9acbb13c80a4d47923b6e506604f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: langchain/chat_model.py: FileTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 108 over it, 1.22\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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4ceb59ad73bc4160a864ec037525712328815152c9e19512e0c32fbe4b7594"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cli/learn.py: FileTooLong \u2014 601 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 101 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":"headroom/cli/learn.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34411b754b57db08cba6c5bf39ea0651024727bd6e2bd6eb61f7ccb3e871cf35"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapters/embedders.py: FileTooLong \u2014 592 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 92 over it, 1.18\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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0302c5f217d5e2f69a325b9acd0f219d55f86a778591211861e9f0fd40dfcb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: observability/metrics.py: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\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":"headroom/observability/metrics.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a772637bc00fce8f6f08b52755c59b3ea3bb136cc321bd072983c863f83c23"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: transforms/content_detector.py: FileTooLong \u2014 585 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 85 over it, 1.17\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":"headroom/transforms/content_detector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa87a72b2f7aeae904845583647d7dad4ea67d8cc5b17332e730a7df99aae7da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ccr/response_handler.py: FileTooLong \u2014 579 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 79 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":"headroom/ccr/response_handler.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba5e2e27b217a4d0c6d2e07be5d12f8f9078fb29c09d17b142be1009b752746"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LogCompressor.select_lines: MethodTooLong \u2014 select_lines runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc738465e7a56618de7837adfbedb43359a04e1e6d3b8efa7fad0cb757a59e05"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_proxy::bedrock::eventstream::parse_headers: FunctionTooLong \u2014 headroom_proxy::bedrock::eventstream::parse_headers runs 114 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/eventstream.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d2ea3ae44f1b7f0e6478bcb357071e5fc626d50445dae62a532e919db236b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: settings.html.settingsPage: FunctionTooLong \u2014 settingsPage runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/settings.html"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"699223fa5477c9b8ac8f8a0134cca62115291e509b3e7d0698a4ab4de7f755b8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SavingsTracker: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cfd8535988b4446b624ddb9706c1d055b9814d0363b2fa5896c36c0e4c5964"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/transport.ts: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 63 over it, 1.13\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":"plugins/opencode/src/transport.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6de6d187ce09c3d63be87c5402253cdc3eddc6d38fb683599ff74df7fbeb36"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backends/direct_mem0.py: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"440dbdf17bfdf59533a6ddc215bc0afa3df0c829afd0a678858a4f3cf8daf3c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: install/runtime.py: FileTooLong \u2014 552 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 52 over it, 1.10\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":"headroom/install/runtime.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8b834985a90d54dffa021c9bac030a5b7499ab8af5aacd214666f9f0eb24a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AnthropicHandlerMixin: 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"335928ce251cd6b716285c5bc4cd2f42f5ae44f447feefd267359f7eefbdea50"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OpenAIHandlerMixin: 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3a2eb54e8b5dd005e8694613770f65cc3e7486252540621e730e2d476c3a51"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.html.renderChart: FunctionTooLong \u2014 renderChart runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/observability/dashboard.html"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e5b60f2c829a569a5c5478f1ce39fc993cd896802a739099430a1fb049882f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: models/registry.py: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 43 over it, 1.09\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":"headroom/models/registry.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aecd1b942aa7b5f3c0df6f3cd7a01ae99d96fa3d977fc2dc638d67a49d09569"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SmartAnalyzer: ClassTooLong \u2014 432 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), 9 methods, 2 blocks, lines 48-731. The bar is 400 significant lines; this is 32 over it, 1.08\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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc8cafc7e9a49282ea73560389c66fa8d705d98e264c435a33ca16e5d5eba91"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cache/dynamic_detector.py: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\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":"headroom/cache/dynamic_detector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5cfcc83fbf3db8eba5f228c83aeec90b120539854af7a85b2c694bb0cf89cd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: telemetry/models.py: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 35 over it, 1.07\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":"headroom/telemetry/models.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdd1a37b20d1ffc338572359f2cd4a50ad000ba38cfc2f5380a76db4c974d20"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TrafficLearner: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"headroom/memory/traffic_learner.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d33ed365e6465cf24393d203c8dd17cfb31d86b7ee3c870d8e066ca4d1c897"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PrometheusMetrics: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa47d380b8d074651658f30b8f62e645038e4dd4749436566141902594d04a1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: CliArgs: TooManyFields \u2014 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/config.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e2fe5b3d6c5042fdbdb1b452be9d7a8967d4ff1ddf5409aa8fdfff1afba50b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tokenizers/base.py: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\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":"headroom/tokenizers/base.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f215c92ccf53054b4d805c7051460c6f41718aa9762a3e898afc95cb5e401695"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_core::transforms::live_zone::plan_block_replacements: FunctionTooLong \u2014 headroom_core::transforms::live_zone::plan_block_replacements runs 106 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1342}}}],"partialFingerprints":{"codehealthFindingId/v1":"db04cfd4a49d51a43b02f2a06b2e758435b40e018398e718eb9638e271db9b99"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/lib.rs: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted). The bar is 500 significant lines; this is 27 over it, 1.05\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":"crates/headroom-parity/src/lib.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"874f6bb216b48c3b173f90ce32988cc37992114106b450035fd7157d4dc739a8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapters/sqlite_vector.py: FileTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 24 over it, 1.05\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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f01d37c225279398efa0270ecf16fb5cab8cb59f88df5aeb1eb0ca443cce911"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: adapters/hnsw.py: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 23 over it, 1.05\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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc23e31d5cd89251f65539430f60430d6299c5be45ec13099f7ed54bc8064bea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: learn/analyzer.py: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 15 over it, 1.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":"headroom/learn/analyzer.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bf104ba70ca2393bc522a51c1c47e7685c3266ddbb947960e0a72543859d07"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: providers/proxy_routes.py: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 6 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":"headroom/providers/proxy_routes.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"731827b49b5601c5d3a3855a70d00598648c75d88c5fcd820202d1d9cb88af35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: headroom_core::transforms::live_zone::compress_openai_responses_live_zone: FunctionTooLong \u2014 headroom_core::transforms::live_zone::compress_openai_responses_live_zone runs 101 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2693}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc9040b3eafef1f602ed3a943f3fcd9de39cd8c8804628d53dee78e42026c44"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: smart_crusher/analyzer.rs: FileTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), about 86% of them inside a single declaration: SmartAnalyzer (2 blocks, 48-731). The bar is 500 significant lines; this is 1 over it, 1.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0df0a3d924c9af76a33818f18bb60297671bf94656d6cfcf1f38898d13cda5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 39 shared lines): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:610-713 | crates/headroom-proxy/src/compression/live_zone_openai.rs:345-450 | crates/headroom-proxy/src/compression/live_zone_responses.rs:353-458 \u2014 These 3 members are variants of one another: a block of 39 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a15d9710566e0a9f9c84347c41274e48513ab2a67a260ef5432c62122998bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 15 shared lines): crates/headroom-core/src/transforms/live_zone.rs:1345-1519 | crates/headroom-core/src/transforms/live_zone.rs:2422-2510 | crates/headroom-core/src/transforms/live_zone.rs:2909-3037 \u2014 These 3 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"de21ae76015b3ce455252a363708ff6856811ecc800c52679a2f512cf4639d23"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (211 shared lines): crates/headroom-proxy/src/bedrock/invoke.rs:146-470 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:131-509 \u2014 These two members are variants of one another: 211 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f37a295c677840d13f150ce4bf35f0d76764c868e5d16c3eead90522f6109c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (105 shared lines): crates/headroom-proxy/src/compression/live_zone_openai.rs:64-303 | crates/headroom-proxy/src/compression/live_zone_responses.rs:64-311 \u2014 These two members are variants of one another: 105 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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b793f07b646d18bd38c44831cf046778f34ace2308ab366d36367437fb77c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (52 shared lines): headroom/evals/core.py:285-377 | headroom/evals/runners/before_after.py:286-393 \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":"headroom/evals/core.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"6485294bc329a9b6f5a71eb912ed7f7975765d3d957a66d29fef9daeed2f4581"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (46 shared lines): headroom/providers/anthropic.py:407-505 | headroom/providers/openai.py:188-264 \u2014 These two members are variants of one another: 46 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":"headroom/providers/anthropic.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c79cf71b25fc51940f00862c96552deb93cf8d8cd821060949b3dba4e0a9a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): headroom/providers/openai.py:406-458 | headroom/providers/openai_compatible.py:152-191 \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":"headroom/providers/openai.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf134e85301de7d3bf4ef26ca0f1d424fd76a7b01b0655a50949032b02b5ec63"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): headroom/cli/evals.py:154-184 | headroom/cli/evals.py:343-361 | headroom/cli/install.py:976-1035 | headroom/cli/wrap.py:7808-7840 | headroom/proxy/handlers/streaming.py:1182-1233 | headroom/proxy/prometheus_metrics.py:904-1260 | headroom/testing/harness.py:1039-1059 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/evals.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e3c0c07861627793762c4f300baeb69102124887ab340550b92c835904e0be"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): headroom/backends/anyllm.py:230-277 | headroom/backends/anyllm.py:284-478 | headroom/backends/litellm.py:1273-1395 | headroom/backends/litellm.py:1402-1810 | headroom/proxy/handlers/streaming.py:1267-2196 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/backends/anyllm.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffe21feb71a821ffdae1d5ac34e5530b79785d0aaa55c9dd27c677ca67a6e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): headroom/proxy/handlers/batch.py:38-407 | headroom/proxy/handlers/batch.py:534-618 | headroom/proxy/handlers/batch.py:684-832 | headroom/proxy/handlers/batch.py:835-1088 | headroom/proxy/handlers/gemini.py:1483-1725 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/batch.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f0d8379e821d2fb8babc35c98eef22299960372f15aaea0e34ae2ef1f582e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/backends/litellm.py:1273-1395 | headroom/backends/litellm.py:1402-1810 | headroom/backends/litellm.py:1821-2030 | headroom/backends/litellm.py:2037-2116 \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":"headroom/backends/litellm.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5aedc517e92b4139df6bf41aee5bd8117c408db8441a4cff455adce50fa0db"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/cli/init.py:1228-1237 | headroom/cli/init.py:1243-1252 | headroom/cli/init.py:1258-1267 | headroom/cli/init.py:1273-1282 \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":"headroom/cli/init.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47ef53bfb0dfa636b72339212c1befb018e2c163c00968d84e46b3a9ca4dbf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/integrations/langchain/chat_model.py:277-306 | headroom/integrations/langchain/chat_model.py:858-943 | headroom/integrations/langchain/chat_model.py:952-1066 | headroom/integrations/langchain/memory.py:278-305 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a826847233aad9d33a2aa6e8b5b060ae52f96cffa9fe614d2a404dcd6e48f3ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/memory/adapters/embedders.py:403-452 | headroom/memory/adapters/embedders.py:643-672 | headroom/memory/adapters/embedders.py:837-882 | headroom/memory/adapters/embedders.py:1070-1118 \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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d2bcd6153cc76307b07b53ea64d1a7e995a5b2ab15033c960af7bf6508ffa57"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/memory/writers/claude_writer.py:35-57 | headroom/memory/writers/codex_writer.py:25-43 | headroom/memory/writers/cursor_writer.py:35-54 | headroom/memory/writers/generic_writer.py:33-52 \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":"headroom/memory/writers/claude_writer.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08454aadb59b35589ac86fc049847de4dae2be7301dc7dc0e51673e109bd8e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/parser.py:621-644 | headroom/providers/cohere.py:183-195 | headroom/providers/google.py:191-203 | headroom/tokenizers/mistral.py:167-215 \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":"headroom/parser.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc5055c976b954a4bffce4707c0aaff3198562315fe8e6d20362ac995060ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): headroom/proxy/handlers/gemini.py:406-1256 | headroom/proxy/handlers/gemini.py:1262-1461 | headroom/proxy/handlers/gemini.py:1483-1725 | headroom/proxy/handlers/openai.py:3546-6200 \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab977af873fcc8d93a0243089747f5d1e98dec67452145f83c6e455eb6934932"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (97 corresponding lines): headroom/audit/maturation.py:70-166 | headroom/audit/maturation.py:177-277 \u2014 These two members are one piece of code written twice and then edited apart: 97 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":"headroom/audit/maturation.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"28feae82701c8706610ff26bb13e1e54e71fa7136c99c75d0d606e69e4f15770"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): headroom/learn/plugins/opencode.py:347-430 | headroom/learn/plugins/opencode.py:438-513 \u2014 These two members are one piece of code written twice and then edited apart: 76 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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d305f2b8f54c03c40d865c40f736dab07970efe1733fba6fb17483df75a03760"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (97 corresponding lines): headroom/integrations/agno/model.py:431-545 | headroom/integrations/strands/model.py:275-371 \u2014 These two members are one piece of code written twice and then edited apart: 97 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":"headroom/integrations/agno/model.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e0dbbc034f4e6a08ce78b162212f900c6685e4c694a0f4795ce9e114e87287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (67 corresponding lines): crates/headroom-core/src/transforms/log_compressor.rs:1156-1228 | crates/headroom-core/src/transforms/search_compressor.rs:335-401 \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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"070313dfc899f64719c0784c5a24b6f74790f215921a31e33a5f6b99f736a314"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (75 corresponding lines): headroom/evals/runners/compression_only.py:79-166 | headroom/evals/runners/compression_only.py:172-246 \u2014 These two members are one piece of code written twice and then edited apart: 75 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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9de85bd381d450fc1d04910a2421b5a9bde1f6a955766d32db8c1b9ae51bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): crates/headroom-proxy/src/bedrock/invoke.rs:486-570 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:889-954 \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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb82465aca9e9c3a59e4d4c9eef1c2aac157ea21410d291c22dd0b77b59317a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): headroom/memory/adapters/graph.py:308-392 | headroom/memory/adapters/graph.py:401-476 \u2014 These two members are one piece of code written twice and then edited apart: 76 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"becb35133fbcf52f3e87a46218f1ec19978f32e89446be47c5fc0da53d81aaa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): crates/headroom-proxy/src/bedrock/invoke_streaming.rs:747-810 | crates/headroom-proxy/src/vertex/raw_predict.rs:489-536 \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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"8524955e48a2965790b42662de501e17f5068b5057c31b7702165faad3ab02eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): headroom/integrations/agno/providers.py:65-129 | headroom/integrations/strands/providers.py:38-99 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"088c3e710bca102618622337bcd50f15457cab33dad8fb1d40435dcd26c6e69e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 48\u002B corresponding lines): headroom/evals/batch_compression_eval.py:1224-1290 | headroom/evals/core.py:385-444 | headroom/evals/runners/before_after.py:471-518 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 48 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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"724d986156b8c7abcbbb38aa48e1f7e077d099f7ae2c5ea587e48d27ea0c4a70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): headroom/memory/bridge_parsers.py:269-336 | headroom/memory/bridge_parsers.py:390-451 \u2014 These two members are one piece of code written twice and then edited apart: 62 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":"headroom/memory/bridge_parsers.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b3ced4837ff1183776b75ec4b7df4b27ab89a94e5df7709a7ef4a1cef7e81d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): headroom/memory/writers/base.py:107-171 | headroom/memory/writers/cursor_writer.py:66-133 \u2014 These two members are one piece of code written twice and then edited apart: 65 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":"headroom/memory/writers/base.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"165e86598efc9f83351813330fc2addcca4137d3beb7f8750bd1cce11968900a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): headroom/cli/init.py:219-274 | headroom/cli/init.py:634-678 \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":"headroom/cli/init.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"546540bf130856e6c6d0bf38409beac1bb6feb13d76c6e5f896f13866fe45ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:215-254 | crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:453-492 \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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a4a10670eec89dc75be67aac1c3c0bf9835c065b84df28a77070d52538955c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): crates/headroom-proxy/src/sse/openai_chat.rs:143-181 | crates/headroom-proxy/src/sse/openai_chat.rs:184-216 \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":"crates/headroom-proxy/src/sse/openai_chat.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba31c8e280bcc17aa3f82a64f85256e9556eee551bd43fe1cf286354611a4036"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): headroom/memory/wrapper_tools.py:208-258 | headroom/memory/wrapper_tools.py:441-489 \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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5de4967da33b67e12761f8923cf8404fcc6b2768e62deb7ca47a0fc50e3ce2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): headroom/proxy/memory_handler.py:2008-2054 | headroom/proxy/memory_handler.py:2059-2114 \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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34dd3af2db703b45cff61349926ea4028e946865c6b6e598e1a59c6ca3aa798"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:172-208 | crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:212-243 \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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"001b5a457c24a84674f5a0de53f79890fc9324cb7151f528413742ef797fe6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): crates/headroom-core/src/transforms/smart_crusher/planning.rs:178-237 | crates/headroom-core/src/transforms/smart_crusher/planning.rs:448-494 \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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af4b16e99d06f8620e0ef2bbe7303d16722c4e8676bb046d062d6ef57673b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): crates/headroom-core/src/transforms/content_detector.rs:565-602 | crates/headroom-core/src/transforms/content_detector.rs:604-646 \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":"crates/headroom-core/src/transforms/content_detector.rs"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e33cc1c6317a0172ff71d064376a4767978f5636673af7710fd30d60083337cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): headroom/memory/adapters/hnsw.py:696-754 | headroom/memory/adapters/sqlite_vector.py:793-826 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"2928a791b96144b7981873837a4b0d7f261e75a082021c82912f045ead18be1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): headroom/providers/copilot/vscode.py:68-108 | headroom/providers/opencode/config.py:130-163 \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":"headroom/providers/copilot/vscode.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91395f8d09d36a888e1775aff5e6f6b808999da76a0689fe5be63b3312227bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (68 corresponding lines): headroom/integrations/agno/model.py:736-803 | headroom/integrations/strands/model.py:537-611 \u2014 These two members are one piece of code written twice and then edited apart: 68 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":"headroom/integrations/agno/model.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0846ad709b04404688077fa7f5c36b03027b64443287da66eb884c56bfc5929"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): headroom/proxy/tool_schema_compaction.py:242-277 | headroom/proxy/tool_schema_compaction.py:375-440 \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":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b096f99f95b639b23927209c701bb5bce37476c962641d2644fed6d5b6e1a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): headroom/relevance/hybrid.py:154-201 | headroom/relevance/hybrid.py:204-259 \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":"headroom/relevance/hybrid.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2c8ee2bc5b146a96d88fa615a4d0582e9205cdf56e1d1fc20d376dc0ef02ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): headroom/proxy/handlers/openai.py:2174-2204 | headroom/proxy/handlers/openai.py:2259-2317 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"465ee8c6c49666d89b7141acfa40583394cb09cbb7fa4b60d69380bab079c9df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): headroom/models/ml_models.py:229-270 | headroom/models/ml_models.py:313-366 \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":"headroom/models/ml_models.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c2c8bfd3451fea92bf2e00640d66fec171a9136393d2be4740226f1441a896"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): headroom/evals/memory/runner.py:171-200 | headroom/evals/memory/runner_v2.py:278-310 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"headroom/evals/memory/runner.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c554317e1689c006241fc45024ecc29eed44de9b024db969fb1ca037edb8a2d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): crates/headroom-core/src/transforms/smart_crusher/crusher.rs:154-181 | crates/headroom-core/src/transforms/smart_crusher/crusher.rs:395-429 \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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"723bea69461122523246585ec9cea2c61ec8d0a67be92e71888bf49fc4abd60b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): headroom/memory/adapters/embedders.py:774-815 | headroom/memory/adapters/embedders.py:996-1048 \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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cdf92d85f866ecb406add39a9c967e959affc2dc1a0182546006e82bb63880"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/headroom-proxy/src/websocket.rs:223-235 | crates/headroom-proxy/src/websocket.rs:237-250 \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":"crates/headroom-proxy/src/websocket.rs"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f785af00a09e6f403a3d0dd17a0317c341959c47ba40cf15a8fe3c8f5d7651"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): headroom/proxy/memory_handler.py:1867-1901 | headroom/proxy/memory_handler.py:1973-2003 \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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c1980ea69fef6dd1cbce4a7bd40592d725e2274cf2d0e1da28a148585e3560"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/copilot_linux_secret.py:38-54 | headroom/copilot_macos_keychain.py:59-77 \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":"headroom/copilot_linux_secret.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0a4467fc4b5efaa24dadeeb54eb7db07ab6f2d783463657e4a868763ac7244"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): headroom/image/onnx_router.py:258-284 | headroom/image/trained_router.py:307-361 \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":"headroom/image/onnx_router.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"26cc29a71713819d420340efc821bb8c3914b1244950d84e04108b9cf93e6195"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): headroom/cli/wrap.py:1600-1638 | headroom/proxy/output_savings.py:399-440 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"headroom/cli/wrap.py"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9cca8c684569c043f9e50e9f4e24649c81b40c8aeccbfe551c23117168e21e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): headroom/memory/__init__.py:159-190 | headroom/memory/backends/__init__.py:31-69 \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":"headroom/memory/__init__.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df316fea308a43cc892e402b4a1002d9e6b130be8570ba357f5ecce20119f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): headroom/learn/plugins/codex.py:97-118 | headroom/learn/plugins/gemini.py:113-136 | headroom/learn/plugins/grok.py:91-108 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"headroom/learn/plugins/codex.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1d34df9961873278a158bc05b4ae61d409461ec1f04ae8e9056687336f98c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): crates/headroom-core/src/transforms/text_crusher/crusher.rs:245-273 | crates/headroom-core/src/transforms/text_crusher/crusher.rs:276-302 \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":"crates/headroom-core/src/transforms/text_crusher/crusher.rs"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feadf3fefc1ae491ebed4ac34a45dffeea004b852b01d7f30e5cbcac21e37e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): headroom/providers/codex/images.py:84-111 | headroom/providers/codex/responses.py:95-120 \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":"headroom/providers/codex/images.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95922eccef9f1a9648df8c8cd80461cfedfcb0d35efd4c76f574687e39bf9a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): headroom/evals/memory/judge.py:53-98 | headroom/evals/memory/judge.py:105-151 \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":"headroom/evals/memory/judge.py"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a758fc2c60a2f8d6b32031c0c98e92ef6d461eee55b4d6fa845ff288372080f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): headroom/transforms/lossless_compaction.py:243-269 | headroom/transforms/lossless_compaction.py:314-343 \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":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8b245b3cf46548ece1ed9ee86cbf0587b98e58102a6aa1eae6d252791d67e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/headroom-proxy/src/main.rs:220-239 | crates/headroom-simulators/src/main.rs:52-69 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"crates/headroom-proxy/src/main.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb60b19a09f505c5f4914564735a7e1b9527e42ff4c548f7fb8eb8aa4dd5ea5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): headroom/transforms/log_compressor.py:199-224 | headroom/transforms/search_compressor.py:172-200 \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":"headroom/transforms/log_compressor.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b48e6282c183a54814cb6e756ab05418ebc429847a7b795797b81c3c7edfed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): headroom/integrations/langchain/chat_model.py:236-274 | headroom/integrations/langchain/memory.py:238-275 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0bcf5ea12bb9f509267b807873633363350e670920f7c0548739d1fb286565"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): headroom/cli/init.py:307-320 | headroom/providers/codex/install.py:354-369 \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":"headroom/cli/init.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"496c09213945782d5398791f851a62ce13739230e7944b874a2ddd33d34e06f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): headroom/cli/wrap.py:2183-2214 | headroom/cli/wrap.py:2218-2235 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"headroom/cli/wrap.py"},"region":{"startLine":2183}}}],"partialFingerprints":{"codehealthFindingId/v1":"139b29bd5ffaec711b8186b373b5d87511cd834cb61b87a498986e1eabdde20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): headroom/transforms/lossless_compaction.py:273-306 | headroom/transforms/lossless_compaction.py:347-374 | headroom/transforms/lossless_compaction.py:438-465 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"873a6fca9de2a0ab411432e8b3a415104b490df58cbe0288191443417f9997f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/proxy/savings_tracker.py:1644-1660 | headroom/proxy/savings_tracker.py:1663-1690 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c59ab7566a61ca8b1780c131e9eb6fa2b08c24daad6af1dd398e59a0bb3f6c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): headroom/memory/adapters/embedders.py:379-400 | headroom/memory/adapters/embedders.py:620-640 \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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"e809151c4c7114c14f394c0b55c9f32f1a88ec8fa8e7646506d58b166a3127ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/memory/adapters/hnsw.py:135-151 | headroom/memory/adapters/sqlite_vector.py:129-146 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"036b0c7806718c55127d3cf7255478ba5e5fe1585bb5867949dd74a37e4b41f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): headroom/proxy/helpers.py:3457-3499 | headroom/proxy/helpers.py:3503-3554 \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":"headroom/proxy/helpers.py"},"region":{"startLine":3457}}}],"partialFingerprints":{"codehealthFindingId/v1":"234519815ed7a82a23ded45cc38c73cc059196f13d69427b192bef51dea14ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): headroom/fsutil.py:70-110 | headroom/install/state.py:34-63 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"headroom/fsutil.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e51c72c29987ea199651e62ea18643ab0c67e33a4fa740ca39abcf9228aff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): headroom/mcp_registry/base.py:127-141 | headroom/mcp_registry/opencode.py:119-130 \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":"headroom/mcp_registry/base.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"868702725d26ac6c3583f122e9365905222e27116339e6597855d717b54fea70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): headroom/proxy/ccr_session_tracker.py:63-81 | headroom/proxy/tool_injection_tracker.py:66-87 \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":"headroom/proxy/ccr_session_tracker.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"2670b15723cdb9dbb9185c0ab1fe8b17fdee268a914dcddc4d8c79a6c5f2132f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): headroom/transforms/content_detector.py:600-636 | headroom/transforms/content_detector.py:640-679 \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":"headroom/transforms/content_detector.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a38b9ed537dfc6aaa6cb61ac89419eeb7791a99859e5520f932d1ad2b0aa091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): headroom/compression/detector.py:188-232 | headroom/compression/detector.py:235-280 \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":"headroom/compression/detector.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e45629de4ca7fd2a93f477a26c820dcb18b929c826cd2181ec14e0dd11d342"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): headroom/pricing/litellm_model_resolution.py:84-114 | headroom/pricing/litellm_model_resolution.py:132-157 \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":"headroom/pricing/litellm_model_resolution.py"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"344be3ff2381af0b3439a0a254ffcf572bf0640d1e28e4643cde0a66419250c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): headroom/providers/cohere.py:326-367 | headroom/providers/google.py:333-381 \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":"headroom/providers/cohere.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"aceca080eeca9ab48bacc665351e7faef6b23a1428310c3453c32735d843839e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): headroom/memory/adapters/sqlite_graph.py:181-204 | headroom/memory/adapters/sqlite_graph.py:221-242 \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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"506c2ca7d150d870e7028a1c2bc7511880d70de748d328f83c94a350358eb803"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/headroom-core/src/cache_control.rs:192-213 | crates/headroom-core/src/cache_control.rs:218-236 \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":"crates/headroom-core/src/cache_control.rs"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"7472f4cc41bed7f5e0d7ce02051b5e6fc6e1cd767e658a94e88eb4b4be6dfba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): headroom/proxy/gateway_turn.py:328-343 | headroom/proxy/gateway_turn.py:346-362 \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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f268f7f778457f256e4d3fd98e39b7840ffac0297bb3261ae61bea3ca3f34d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/cli/wrap.py:275-312 | headroom/providers/claude/vscode.py:49-65 \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":"headroom/cli/wrap.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dad9161d240270462196db8d7b7eb3ab1e6fdc381bc80d13c7f19778a4c25f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): headroom/proxy/savings_tracker.py:427-452 | headroom/proxy/savings_tracker.py:456-485 | headroom/proxy/savings_tracker.py:500-537 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e61981ac691f125088deb5cb28af7386bb24940f25ca470f7c72bf5089d8d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): headroom/proxy/loopback_guard.py:187-229 | headroom/proxy/loopback_guard.py:317-348 \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":"headroom/proxy/loopback_guard.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fb1ecf546d63ac6e1c08d24dc141795dfc53ee03440cbc1b0e1d556e5c4c02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): headroom/memory/adapters/sqlite_graph.py:781-813 | headroom/memory/adapters/sqlite_vector.py:922-943 \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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fcf03d4e5083cb70f88c984a34fffe15c73ab5a79c0d95703602bf5395ab9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): headroom/cli/wrap.py:8387-8426 | headroom/cli/wrap.py:8530-8574 \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":"headroom/cli/wrap.py"},"region":{"startLine":8387}}}],"partialFingerprints":{"codehealthFindingId/v1":"5697b629632cea94cc15408f8f695c13e1a0cbf610783942b58091037941df0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): headroom/providers/registry.py:384-408 | headroom/providers/registry.py:448-469 \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":"headroom/providers/registry.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d1fa5db2edff5c26ea6a85ab439ded7a20f055d08e92f272db4ae715e28e79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): headroom/integrations/agno/model.py:646-668 | headroom/integrations/agno/model.py:687-713 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"headroom/integrations/agno/model.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea29ec9ef71fbbee6b40b41efb500b085a3cf92166baa91529bae97a4bf2c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): headroom/proxy/auth_mode.py:40-75 | headroom/proxy/tenant_key.py:217-245 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"headroom/proxy/auth_mode.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef71b9a31db1c3f0e9e422395b4377812a16cffd516e92aa8096f78cd1be16e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): crates/headroom-core/src/signals/keyword_detector.rs:143-161 | crates/headroom-core/src/transforms/log_compressor.rs:335-375 \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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3993a14494e148e8e164d13a029285ad1866fb5b4f8ec2a00ddc4f4e53d3f58"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): crates/headroom-proxy/src/sse/openai_responses.rs:351-364 | crates/headroom-proxy/src/sse/openai_responses.rs:366-386 | crates/headroom-proxy/src/sse/openai_responses.rs:388-401 \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":"crates/headroom-proxy/src/sse/openai_responses.rs"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c547ef94b11599d56cc0ca7f76cc51918a45b78612c349ddb8b9b4744856ed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/cache/google.py:827-843 | headroom/image/compressor.py:245-269 \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":"headroom/cache/google.py"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a96aff40f84e563b5c6d9408d7a108096cb38837154f4ea639739d7c4bce83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): headroom/memory/adapters/hnsw.py:517-550 | headroom/memory/adapters/hnsw.py:553-588 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4688eebbb9f6fe3fb90ba4a58e13856477b65859bcee89c9087a53d89a2505b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:352-371 | crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:559-575 \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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efc61da74e362f764aa2bb0097fb382cffa147b3dbdf6036dea90074a3ff183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): crates/headroom-proxy/src/bedrock/invoke.rs:653-671 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:860-877 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"714b0e8826901a3610543674a6f2e0355d12b10602781b0dc0c2c1b43db203a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): headroom/proxy/tool_schema_compaction.py:210-236 | headroom/proxy/tool_schema_compaction.py:334-368 \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":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc4a42aabd18e948918f96f023f3bcbe592e226053c5ba7be4da77870338287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): headroom/cli/port_discovery.py:120-137 | headroom/cli/wrap.py:5792-5814 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"headroom/cli/port_discovery.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ad94208b0a331a589e3ee3a3eb4c17879d5297ad8b292363f7ec88e198942c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): headroom/cli/wrap.py:3089-3127 | headroom/cli/wrap.py:3161-3193 \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":"headroom/cli/wrap.py"},"region":{"startLine":3089}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd7eacbde2158c04dcab6fa74539639bf338f5fe288277a415c036e337df641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/headroom-proxy/src/sse/openai_responses.rs:205-216 | crates/headroom-proxy/src/sse/openai_responses.rs:426-442 \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":"crates/headroom-proxy/src/sse/openai_responses.rs"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f98c8a07372d0aee10affc8b1ad242fa6d6c685c969e22a9be36f98358c9640"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): crates/headroom-proxy/src/observability/capture.rs:183-195 | crates/headroom-proxy/src/observability/capture.rs:205-221 \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":"crates/headroom-proxy/src/observability/capture.rs"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1c0739b5e6c48193b163601ff399e10c5b62d387fab6a5b150b45c628ea206"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): docker/differential-network-capture/mitm_capture.py:45-52 | headroom/capture/network_diff.py:97-105 \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":"docker/differential-network-capture/mitm_capture.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7449f5384985502c710eac0964e8ac0779bf2576f0e0a1aba3baec487fe0bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): headroom/proxy/handlers/openai.py:1278-1289 | headroom/proxy/output_turn_policy.py:65-75 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"36681d5341fb6aa2be6908af6954fe05fb5fab2da99d71f499eb07c727c1ef07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): headroom/integrations/langchain/agents.py:129-154 | headroom/integrations/langchain/agents.py:185-197 \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":"headroom/integrations/langchain/agents.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e090ccc897dd3181214032f06c03ac44910ce3858a62c23803adb13120f3ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): headroom/evals/html_oss_benchmarks.py:46-71 | headroom/evals/metrics.py:53-79 \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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"21344fda4ab106426233a5c042386c11b4fcd2879193b68b0675aa97d0ecb7cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): headroom/models/ml_models.py:185-217 | headroom/models/ml_models.py:278-301 \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":"headroom/models/ml_models.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a41755f3de3c6b32c31684f0c7d5478e43fcaca43477dce6324019b29db3d076"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): headroom/proxy/compression_decision.py:80-147 | headroom/proxy/image_compression_policy.py:43-69 \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":"headroom/proxy/compression_decision.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f916bc91d10e528d7c6f9a2f3cf92427d04d41489e2e300a4b1a12c83e1a39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): crates/headroom-proxy/src/observability/cache_hit_rate.rs:80-95 | crates/headroom-proxy/src/observability/compression_ratio.rs:53-68 | crates/headroom-proxy/src/observability/prometheus.rs:157-174 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 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":"crates/headroom-proxy/src/observability/cache_hit_rate.rs"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c07581727084593a0702b75ea91199bbddfd7e5ed8331123c6b08f1f22d73c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): headroom/binaries.py:510-520 | headroom/binaries.py:524-531 \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":"headroom/binaries.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46daef51512ed86d2761076288ccc2db535a6e5a8b8b4ce29e10d83529f53ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): crates/headroom-py/src/lib.rs:1286-1304 | crates/headroom-py/src/lib.rs:1491-1502 \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":"crates/headroom-py/src/lib.rs"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d877b28297b035ba07fbd3ee103c4a28efd0b256adc948f8908225441602e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): headroom/cli/wrap.py:7880-7916 | headroom/cli/wrap.py:7948-7983 | headroom/cli/wrap.py:9517-9566 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 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":"headroom/cli/wrap.py"},"region":{"startLine":7880}}}],"partialFingerprints":{"codehealthFindingId/v1":"7359a522721ee4554a28b1a2a04d4d0e3e3a82c741d2483729caeb337eb39d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): headroom/memory/adapters/graph_models.py:69-80 | headroom/memory/adapters/graph_models.py:128-139 \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":"headroom/memory/adapters/graph_models.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e862aabe88d209a46a01796bbefd5c87a73039d380964c9a6d8d3b326eab38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): headroom/proxy/handlers/anthropic.py:359-382 | headroom/proxy/handlers/openai.py:425-438 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a0632fa0812dcfa65a99551a8ef0cb5430eb07963bc5fa103f9e1f0e1ebb66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/cli/evals.py:714-730 | headroom/cli/evals.py:740-759 \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":"headroom/cli/evals.py"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dfd30574afa8e0f5fb25958d63a6bf21d7c59546bc74ae1dae71885c2aeeed6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): headroom/integrations/autogen/agents.py:92-120 | headroom/integrations/crewai/agents.py:175-200 \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":"headroom/integrations/autogen/agents.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2f6b3dd040cdf4238bb6579ee8d8bfe4c644f533339af19d0d627f7b8eb21d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): headroom/memory/system.py:500-552 | headroom/memory/system.py:559-608 \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":"headroom/memory/system.py"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3827211da40196d492cd48d37e8a35947887eda346b8d10df8e3236f022d8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): crates/headroom-proxy/src/observability/capture.rs:225-238 | crates/headroom-proxy/src/observability/capture.rs:242-255 \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":"crates/headroom-proxy/src/observability/capture.rs"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc87bcae993a972b807324041b30b26fbf2bc607cdcfba90d4b77b2c538553e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): crates/headroom-proxy/src/observability/proxy_metrics.rs:71-85 | crates/headroom-proxy/src/observability/proxy_metrics.rs:87-101 | crates/headroom-proxy/src/observability/proxy_metrics.rs:103-117 | crates/headroom-proxy/src/observability/proxy_metrics.rs:119-133 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 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":"crates/headroom-proxy/src/observability/proxy_metrics.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dd6b34f410dd7aa2ff973f3eca4af7d81010a93b4fa8aa3e2a8db4766ec698"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): headroom/proxy/output_shaper.py:344-358 | headroom/proxy/output_shaper.py:366-385 | headroom/proxy/output_shaper.py:393-412 | headroom/proxy/output_shaper.py:526-544 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 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":"headroom/proxy/output_shaper.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69da7ca04d7fa9bc6a11e0d6b656095c9211d79a615dd4d6d6b1f7770f5aed7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): headroom/image/tile_optimizer.py:80-95 | headroom/image/tile_optimizer.py:149-162 \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":"headroom/image/tile_optimizer.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4902e7195802a79fc07e9f1fcd19e47d9c3576ac37b041b17edee62bfafa76a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): headroom/learn/plugins/claude.py:186-203 | headroom/learn/plugins/gemini.py:339-355 \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":"headroom/learn/plugins/claude.py"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"516677348ccc8c79292289716b37830feee9455d3f38c00045453615431f25d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 15\u002B corresponding lines): crates/headroom-proxy/src/observability/compression_ratio.rs:71-85 | crates/headroom-proxy/src/observability/prometheus.rs:138-153 | crates/headroom-proxy/src/observability/prometheus.rs:178-194 | crates/headroom-proxy/src/observability/proxy_metrics.rs:36-50 | crates/headroom-proxy/src/observability/proxy_metrics.rs:213-227 | crates/headroom-proxy/src/observability/proxy_metrics.rs:244-258 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 15 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/observability/compression_ratio.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead9ca7bce497c33a57a9800fbb5cd6e815af26d66d323c2892fc4354faf456"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): headroom/backends/litellm.py:322-351 | headroom/observability/metrics.py:120-133 | headroom/transforms/kompress_remote.py:83-100 \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":"headroom/backends/litellm.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cabdafe61e1d352ed592369bea54b2e2028a435aee61c509c731e523e66934"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): headroom/cache/openai.py:562-584 | headroom/evals/batch_compression_eval.py:967-977 \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":"headroom/cache/openai.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49b84b98a26e44e030624a1872645de49ff0d183cd660119db4bf0f66e6adc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/headroom-core/src/transforms/code_compressor.rs:1335-1345 | crates/headroom-core/src/transforms/code_compressor.rs:1354-1366 \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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"90802493e77f256183394de48378a3aa7931e9d059ea27cca4948ca81b402bc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): headroom/compression/masks.py:88-108 | headroom/compression/masks.py:111-131 \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":"headroom/compression/masks.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f9fc3d00d4ead7eb6d6277fc6fd7798e847cfdd2769a18fb2f7b88865dbebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): headroom/proxy/beta_header_policy.py:29-44 | headroom/proxy/tool_injection_policy.py:56-71 \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":"headroom/proxy/beta_header_policy.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4c9decaa99fb3d982991c59614036a98485218b0dd22af8992b9068c1810b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): crates/headroom-core/src/transforms/pipeline/offloads/diff_offload.rs:136-156 | crates/headroom-core/src/transforms/pipeline/offloads/log_offload.rs:149-169 | crates/headroom-core/src/transforms/pipeline/offloads/search_offload.rs:120-139 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 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":"crates/headroom-core/src/transforms/pipeline/offloads/diff_offload.rs"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7fb69d42d48fef061a6f7be517f823739720ab29dd937c87c3517fc29a2ad69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): crates/headroom-proxy/src/proxy.rs:461-472 | crates/headroom-proxy/src/proxy.rs:1427-1436 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ab1e3f3f92b777e1eee64953684211549da77eb7ed9f82fd61b03dfccfe07"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): headroom/memory/adapters/cache.py:105-132 | headroom/memory/adapters/cache.py:139-160 \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":"headroom/memory/adapters/cache.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1ba65e5d24c26b679f83ed089e355fd460442a75eb3bc78d8b4b8e5d50f0dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): headroom/memory/adapters/graph.py:169-184 | headroom/memory/adapters/graph.py:282-295 \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":"headroom/memory/adapters/graph.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d04941016df8843b5e492fa4926c0cb913a30342c7a04cb1c261a29c2f3b17b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 25\u002B corresponding lines): headroom/integrations/langchain/chat_model.py:506-530 | headroom/integrations/strands/model.py:384-422 | headroom/integrations/strands/model.py:447-476 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc21387ec5b248335816bfce7740b5436e03026b6cdd74c510e5564ba5c31675"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): crates/headroom-simulators/src/domain.rs:322-332 | crates/headroom-simulators/src/domain.rs:353-360 \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":"crates/headroom-simulators/src/domain.rs"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"33eaf9240858e8f98b4d28900e6c2cbe88b03be06787ab9f0a506201b9487d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): headroom/mcp_registry/claude.py:563-585 | headroom/mcp_registry/opencode.py:88-110 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"headroom/mcp_registry/claude.py"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84429b1106a9af3e85931bf0d220251e75797850ead577b00fc4b666b5ddf12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): headroom/memory/adapters/sqlite_vector.py:309-321 | headroom/memory/adapters/sqlite_vector.py:324-336 \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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f8f5c329d02e4f02b2e4e673f59b59f2b72a4b0cf14abbd5fc07c013737b965"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): headroom/cli/wrap.py:8210-8241 | headroom/cli/wrap.py:8265-8295 \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":"headroom/cli/wrap.py"},"region":{"startLine":8210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee821c040162a6940a01c63921c93b65ed20fb08ae8206b0d947a0e8089649ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): headroom/providers/cohere.py:258-269 | headroom/providers/google.py:293-304 \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":"headroom/providers/cohere.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eb8d20254d7e99dae815a98fb8745f216080c68b160c24f217952a1e021c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): headroom/integrations/langchain/chat_model.py:397-419 | headroom/integrations/langchain/chat_model.py:428-445 \u2014 These two members are one piece of code written twice and then edited apart: 18 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd64c21fd7ef1f41a2b07431f4fd846c7d24a319bf72219cd6d0688e720f3bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): headroom/proxy/persistent_metrics.py:166-187 | headroom/proxy/savings_tracker.py:123-147 \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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d50d9651ad7fd92b445fb06aed39d2781e50a61799779fe6ec376eddebf472cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/headroom-core/src/transforms/pipeline/orchestrator.rs:291-301 | crates/headroom-core/src/transforms/pipeline/orchestrator.rs:306-316 \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":"crates/headroom-core/src/transforms/pipeline/orchestrator.rs"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66a2e38f06a4afb77a0c05a339c9d5faef12ffb65f6c80a8c017e34e80cd45e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): headroom/cli/wrap.py:4377-4387 | headroom/install/health.py:12-19 | headroom/providers/copilot/wrap.py:34-45 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"headroom/cli/wrap.py"},"region":{"startLine":4377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e127d24d6452b29aaec96583ce6d4ab3f8d004ecd6c4267ed665bd705402690d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/headroom-core/src/tokenizer/hf_impl.rs:83-93 | crates/headroom-core/src/tokenizer/hf_impl.rs:99-109 \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":"crates/headroom-core/src/tokenizer/hf_impl.rs"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7a74ba1d4459c99e11bbad0ddbc1de807f4ace46313faf5cb27aee9bd0704a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 41\u002B corresponding lines): headroom/memory/adapters/sqlite.py:120-196 | headroom/memory/adapters/sqlite_graph.py:105-163 | headroom/memory/adapters/sqlite_vector.py:347-387 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 41 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":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf7370865f5a5472661525a16661fe9055dca0d233bbfd1d6fbac7ed6915d62"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): headroom/learn/analyzer.py:144-162 | headroom/transforms/kompress_compressor.py:443-454 \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":"headroom/learn/analyzer.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c01ae63f8751e5714df865dfd2ab31b22a534de9b821397146e940d27c7863"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): headroom/testing/harness.py:1012-1016 | headroom/testing/harness.py:1274-1283 | headroom/testing/harness.py:1319-1325 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"headroom/testing/harness.py"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"1841203881ada097f8afa8ec11b12e3c082cf8f7143e97eed56ed87e8a1fe196"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): headroom/cli/init.py:834-844 | headroom/cli/init.py:848-859 \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":"headroom/cli/init.py"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e534854a71ea69a77d7ff4b012365e18426113e3e7bba1ce3b51dfd8a9b78cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): headroom/cli/wrap.py:3497-3518 | headroom/cli/wrap.py:3522-3541 \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":"headroom/cli/wrap.py"},"region":{"startLine":3497}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a162dc342111a5893d785096f6615b95168b1cb4077f089b967a533fd13b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): headroom/models/ml_models.py:142-156 | headroom/models/ml_models.py:160-173 \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":"headroom/models/ml_models.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"935a76dc4b50531ce3ac511d0cae89612e069093c1774e8e6fe812cbac8c3cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): headroom/proxy/request_limit_policy.py:18-27 | headroom/proxy/request_limit_policy.py:31-40 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"headroom/proxy/request_limit_policy.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65528e7e7ddd9d98f7c673e4655a4ad5f769043cf0b8735e1ea895821d67d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): headroom/copilot_auth.py:292-298 | headroom/copilot_auth.py:1091-1095 \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":"headroom/copilot_auth.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2c15df3a05819ff8e5c934aeef2f8ce946b60c13afd75ffd4515d235f57458"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): headroom/providers/google.py:102-126 | headroom/providers/cohere.py:102-125 \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":"headroom/providers/google.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed677ee1cb66ca2274b26af76c590fbb4544611f6996a3f9b5f472741da5ae50"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/proxy/persistent_metrics.py:303-310 | headroom/proxy/persistent_metrics.py:316-322 \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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fc8c5e40e30be7fd05aa3c6f3f96a52b2f17906b5d5aa7263b2f7de6128af0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/headroom-core/src/signals/keyword_detector.rs:165-173 | crates/headroom-core/src/transforms/log_compressor.rs:377-385 \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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf98946fd2a5c0ec2b86888715a6e1716bde918dd550b7b337006326c1093d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): headroom/_subprocess.py:81-99 | headroom/proxy_client_liveness.py:49-63 \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":"headroom/_subprocess.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab414db6926e710a2da589e653f11e056f770043ec3190bd988be07d86cec9c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): headroom/copilot_auth.py:192-201 | headroom/copilot_auth.py:205-216 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"headroom/copilot_auth.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab150180cbe68dea0e426ca4beeb565de1f74c748842a0a0842a21f860dac9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): headroom/cache/backends/sqlite.py:300-312 | headroom/cache/backends/sqlite.py:357-368 | headroom/cache/backends/sqlite.py:371-381 \u2014 These 3 members are one piece of code written 3 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 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/backends/sqlite.py"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"9888244e4e9ccfcadbe631f1a4cc76c9948fdb4624ae56884e344afb6fd05572"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): headroom/cli/wrap.py:3620-3646 | headroom/providers/grok_build/config.py:43-55 | headroom/providers/opencode/config.py:96-113 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 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":"headroom/cli/wrap.py"},"region":{"startLine":3620}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a16a3d8bfcdf4404e78380e7c81c94e1a30ecd8948308fffca4fa643a2974af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/headroom-core/src/rollout.rs:324-332 | crates/headroom-core/src/transforms/smart_crusher/hashing.rs:25-36 \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":"crates/headroom-core/src/rollout.rs"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f1df73d0b8dd75aabf4aa5e1a39a02ca6c025581d0957fb4aa85518db27955"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): headroom/mcp_registry/antigravity.py:111-120 | headroom/mcp_registry/codex.py:150-157 | headroom/mcp_registry/opencode.py:159-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"headroom/mcp_registry/antigravity.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ed0e55d7df28824e83dc3812e1c67d67c0e395b8f48fbc12df4b86b2064d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): headroom/memory/storage_router.py:483-495 | headroom/memory/storage_router.py:499-518 \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":"headroom/memory/storage_router.py"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"128f5653a116683a065123f22aaa66fcd988a970263faa4e42ab02df4c7caced"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): headroom/cli/port_discovery.py:105-116 | headroom/cli/wrap.py:5779-5788 | headroom/proxy/orphan_watchdog.py:65-73 | headroom/proxy_client_liveness.py:67-77 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 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":"headroom/cli/port_discovery.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bbb4423e3cd07dc0bb6e6f09bbbe9396859bad194bc6a752629e80fc7881e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): crates/headroom-core/src/transforms/smart_crusher/compaction/compactor.rs:436-444 | crates/headroom-core/src/transforms/smart_crusher/crusher.rs:1312-1321 \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":"crates/headroom-core/src/transforms/smart_crusher/compaction/compactor.rs"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61ea0cd9e3401840d6ff88798e81674a8264b7c34b4644014325770eab6d7bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/proxy/handlers/anthropic.py:319-326 | headroom/proxy/handlers/openai.py:389-395 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49a08cdade9d18921a4a88b05e79a356d0814fa00afe11260d841b6029f061e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): headroom/proxy/helpers.py:2325-2335 | headroom/proxy/tool_injection_tracker.py:13-17 \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":"headroom/proxy/helpers.py"},"region":{"startLine":2325}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa875a6002d7716fc6d0c376d7e927a30384d457dc08f94700bd673b7cb2b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): headroom/evals/memory/runner.py:764-796 | headroom/evals/memory/runner_v2.py:997-1028 \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":"headroom/evals/memory/runner.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"052dc8c428b9482c7d37d85b88b630b53e7aeaf516b281ffa0ff14c4e5dcf127"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/install/providers.py:33-39 | headroom/memory/writers/base.py:192-198 \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":"headroom/install/providers.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d068fe8ccd3a3e13d9a0874cf4cfb842cfed2fbbdcf1caa380cb4fa8a4849689"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): headroom/memory/adapters/sqlite.py:340-358 | headroom/memory/adapters/sqlite_graph.py:295-314 \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":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbb988a3258812280ea5be5677cd20636e55ae02b58e25a1d423c5c38c617e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): headroom/proxy/beta_header_merge.py:7-16 | headroom/transforms/cache_aligner.py:207-221 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"headroom/proxy/beta_header_merge.py"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a119a3b9ad3be710cc648ca650479a1fbbfd20ce17f58e6b8704ac425869333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): headroom/providers/anthropic.py:912-920 | headroom/providers/openai.py:644-652 \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":"headroom/providers/anthropic.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eadab735a27eb849edb999853a8ede632457d7c710777ec6b100c4969edfe13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs:231-237 | crates/headroom-proxy/src/handlers/responses.rs:182-187 \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":"crates/headroom-proxy/src/bedrock/eventstream_to_sse.rs"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef182ef11f416e0c049c6af3a9647524e5acbd4c00c52202e7177a166b7691cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): crates/headroom-proxy/src/observability/proxy_metrics.rs:265-281 | crates/headroom-proxy/src/observability/compression_ratio.rs:128-138 \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":"crates/headroom-proxy/src/observability/proxy_metrics.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b5263a87d4c9378b31ad20912311eb4e11d26f7f0909c3e21664479ac20c13"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): headroom/providers/aider/runtime.py:18-32 | headroom/providers/kimi/runtime.py:17-40 \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":"headroom/providers/aider/runtime.py"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a832c3fc26cff58a51c9ace2f6aac2486b9253519a4aac5431e457d47080534"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): headroom/proxy/context_guard.py:98-106 | headroom/proxy/handlers/openai.py:970-979 \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":"headroom/proxy/context_guard.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59f8d4ee5f06842505192f8ad881b7f673db21f987173fd1d0a307822177428"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): headroom/audit/codex.py:157-160 | headroom/audit/maturation.py:170-173 \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":"headroom/audit/codex.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"150090a63033e338645b1f31873646212a5bcdca14202b53faf0e580578b3a7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): headroom/providers/cortex_code/runtime.py:39-48 | headroom/providers/grok/runtime.py:60-73 \u2014 These two members are one piece of code written twice and then edited apart: 10 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":"headroom/providers/cortex_code/runtime.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"221fb6fa00d5b986ddaeba1eb6ea73e65f6dca3ec092ee3a9fa6551cfcf0bcdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/proxy/forwarded_policy.py:50-57 | headroom/proxy/loopback_guard.py:288-294 \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":"headroom/proxy/forwarded_policy.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d6c8fa5180e7bdcbdeb2fdff840076394abced5c09d77cf96da281433b96fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): headroom/cache/prefix_tracker.py:567-579 | headroom/proxy/gateway_turn.py:1061-1064 \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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"af19bd5926749c83aaa0bc19f5e8cc450521678d7f3332175749820e696621c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): headroom/proxy/body_forwarding.py:181-190 | headroom/transforms/lossless_compaction.py:479-482 \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":"headroom/proxy/body_forwarding.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fb1a9fa17b3ff01cc001c510ecfe20f9a00fa4758352fc74f5e785d64a5462"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): crates/headroom-proxy/src/cache_stabilization/beta_sticky.rs:152-157 | crates/headroom-proxy/src/cache_stabilization/drift_detector.rs:323-328 \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":"crates/headroom-proxy/src/cache_stabilization/beta_sticky.rs"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de5332d6c9142121b70b9e00633043236025679642ee2c4e01771d44d92ae2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): headroom/cache/backends/sqlite.py:77-83 | headroom/copilot_auth.py:177-182 \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":"headroom/cache/backends/sqlite.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"d779dfd5739bc01730a5cef50a99ff8c96ce33eef21908f9b9a3093c421af84f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): headroom/memory/adapters/sqlite_graph.py:738-743 | headroom/memory/adapters/sqlite_vector.py:406-410 \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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d3cf29afbcbe39a01c3d8a9ad4bdb13fdb755b7413cd31197ee93ec6af74e6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/cli/update.py:71-78 | headroom/update_check.py:85-91 \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":"headroom/cli/update.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14adfcc715d768cd376046a663519fbaa03b9a845e3879af4063491d82fc409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): headroom/memory/adapters/fts5.py:74-85 | headroom/memory/adapters/sqlite.py:103-117 \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":"headroom/memory/adapters/fts5.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1051ab8b566cc5d3aa83af11e022d699f7a3d74aa5d606763324964828a50d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): headroom/cli/proxy.py:120-123 | headroom/proxy/server.py:7099-7103 \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":"headroom/cli/proxy.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc9166ed1f31647a1a3f8618a616a2e88e1e6eee821892cf939c1ed85db9a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 2\u002B corresponding lines): headroom/mcp_registry/claude.py:589-590 | headroom/mcp_registry/ledger.py:174-175 | headroom/mcp_registry/opencode.py:114-115 | headroom/providers/claude/vscode.py:110-111 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 2 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":"headroom/mcp_registry/claude.py"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"3117bb7c0c9c9429e2738f023545b3c7767ffe9764c689cb3792fb83bd836b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): headroom/memory/adapters/fts5.py:326-334 | headroom/memory/adapters/sqlite.py:884-902 \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":"headroom/memory/adapters/fts5.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e684832e053ec5fe5dc462774e0e6cb788d6db886234524b1a6373e5a2ee2433"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): headroom/providers/codex/images.py:40-46 | headroom/providers/codex/responses.py:42-52 \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":"headroom/providers/codex/images.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1e62299b3acc1f6d98e974956fd7f9108b70adc18fddd4e7c1a9a5ffaaa166"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/headroom-core/src/transforms/log_compressor.rs:218-221 | crates/headroom-core/src/transforms/search_compressor.rs:240-243 \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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"9242a5ed2b82cba040f31d703a26719078b5c25a02657f2c6f05d619ea7fadbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): crates/headroom-proxy/src/bedrock/invoke.rs:100-103 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:114-117 \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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"384c286788523a57c6c053c6f4c989e8b790c019c92bb67588d759a5bae82404"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): headroom/capture/network_diff.py:224-228 | headroom/providers/codex/project_context.py:148-152 \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":"headroom/capture/network_diff.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e911bf33c1515ddd1c464743dd143e51cee74026e395a47b8f722b29f5d263f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): headroom/memory/adapters/sqlite.py:273-303 | headroom/memory/adapters/sqlite_graph.py:364-387 \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":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4b0c8948c29faff7ea527846d2bee02699a093ddc22a167fd169f3ba645f4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): headroom/memory/tracker.py:199-211 | headroom/models/ml_models.py:93-98 \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":"headroom/memory/tracker.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2113d38774ebf6144ca48d2b0254765e94523f44b6bed0fb4022fc04e5e2febf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): headroom/cache/prefix_tracker.py:415-420 | headroom/proxy/gateway_extension.py:59-64 | headroom/transforms/content_router.py:646-656 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"22483d88a6c8beb05f1f11aee085e2d37383ba7022656d46826cd53a57b1f96c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): headroom/integrations/autogen/agents.py:236-278 | headroom/integrations/crewai/agents.py:218-256 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"headroom/integrations/autogen/agents.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"779d505627dcdf994e1789863adb478f6601a432103e5aee9b61d9ffaad40b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): headroom/cli/wrap.py:1185-1198 | headroom/proxy/cc_switch_reconciler.py:66-71 | headroom/proxy/helpers.py:128-135 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"headroom/cli/wrap.py"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"948750b83b6cb0df2391d4ec51511ba01b7ffb23167eeee05754dda066bc777a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (64\u201366 lines \u00D7 2): headroom/integrations/agno/model.py:480-545 | headroom/integrations/strands/model.py:308-371 \u2014 \u0060headroom/integrations/agno/model.py\u0060 and \u0060headroom/integrations/strands/model.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 113 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 \u0060headroom/integrations/agno/model.py:480\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":"headroom/integrations/agno/model.py"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ba10adbf1d1a470a9b90309113af9f8178cf5869b470bb7e2dac3819b590c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52\u201355 lines \u00D7 2): headroom/proxy/helpers.py:1000-1054 | headroom/proxy/helpers.py:1286-1337 \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":"headroom/proxy/helpers.py"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b246f935d1f82d13ab67b1cc2cd7a0c7f00a22eea891e040b4aa2a953bb6dd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45\u201347 lines \u00D7 2): headroom/backends/litellm.py:1273-1319 | headroom/backends/litellm.py:1402-1446 \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":"headroom/backends/litellm.py"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"142130b2f2f846952edb940e3e1330cd4e7d5beedeaa14c64c63ec9195a047c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201347 lines \u00D7 2): headroom/proxy/handlers/openai.py:3563-3605 | headroom/proxy/handlers/openai.py:6223-6269 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3563}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad8673a04c6b08b9f269331faf34cb9cf654129ae6948d91f04d994d5647812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201346 lines \u00D7 2): headroom/memory/writers/base.py:107-152 | headroom/memory/writers/cursor_writer.py:66-98 \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":"headroom/memory/writers/base.py"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"031e91793d343063a11f785a7f6f924bd2d915f55392aaff0b38e27afe7abcc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201345 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:4424-4456 | headroom/proxy/handlers/anthropic.py:5569-5613 \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 \u0060headroom/proxy/handlers/anthropic.py:4424\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4424}}}],"partialFingerprints":{"codehealthFindingId/v1":"234b4e861560e51843d54ec9c3b2719bba9e9a9204b567b0e98813f335dee346"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201344 lines \u00D7 2): headroom/providers/openai.py:406-449 | headroom/providers/openai_compatible.py:152-184 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/providers/openai.py:450\u0060 calls \u0060count_text\u0060, \u0060coerce_countable_text\u0060, \u0060get\u0060 and \u0060headroom/providers/openai_compatible.py:185\u0060 does not \u2014 after which the two agree again for 4 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":"headroom/providers/openai.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed6b3a7a9f1da73354d7d1c40bd2af35920f4c0638d98b44ceef07fd74d7ad8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201340 lines \u00D7 2): headroom/memory/backends/direct_mem0.py:281-315 | headroom/memory/backends/mem0.py:155-194 \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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d75cd9d3b66472c67507248cef71330ba64c1ebc88b3638e18f80568c56736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): headroom/providers/openai_compatible.py:390-427 | headroom/providers/openai_compatible.py:433-470 \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":"headroom/providers/openai_compatible.py"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef72223d30fce4ef8a0b2494cb94ff5f45d04a5d5eb50781bed73cec13757373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201338 lines \u00D7 2): headroom/proxy/handlers/openai.py:5392-5429 | headroom/proxy/handlers/openai.py:5937-5969 \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 \u0060headroom/proxy/handlers/openai.py:5392\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5392}}}],"partialFingerprints":{"codehealthFindingId/v1":"71230a4fc1f8fa65e60f57211f9709dc4ba687a66cdd0303175447c2bce39259"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201336 lines \u00D7 2): headroom/memory/adapters/hnsw.py:696-731 | headroom/memory/adapters/sqlite_vector.py:793-814 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"84dfcaa1629bee729de15e7ed98b0a0990081fc6110e5a2258f2d356d9efcded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): headroom/memory/backends/direct_mem0.py:807-840 | headroom/memory/backends/mem0_system_adapter.py:136-170 \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 \u0060headroom/memory/backends/direct_mem0.py:807\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/memory/backends/mem0_system_adapter.py:134\u0060 calls \u0060_utcnow\u0060, \u0060isinstance\u0060 and \u0060headroom/memory/backends/direct_mem0.py:807\u0060 does not \u2014 after which the two agree again for 4 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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c61240ca73c0e3a635af3cb1dcedb4af3dfc7258597b83275ea459211e8eb7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201335 lines \u00D7 2): headroom/memory/bridge_parsers.py:269-303 | headroom/memory/bridge_parsers.py:390-415 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/memory/bridge_parsers.py:416\u0060 calls \u0060startswith\u0060 and \u0060headroom/memory/bridge_parsers.py:305\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":"headroom/memory/bridge_parsers.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad88f6bf32018bbf7a813e07ddf559145ebad82cf792560ee4470fb81e7efb0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): headroom/proxy/handlers/gemini.py:743-777 | headroom/proxy/handlers/gemini.py:1359-1391 \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 \u0060headroom/proxy/handlers/gemini.py:743\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db7ad3008e40e6eb0a8b98eae9eab69c9aa56e58c04d3cc7694bb71f2fe2123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): headroom/proxy/prometheus_metrics.py:269-303 | headroom/proxy/prometheus_metrics.py:477-509 \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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb024454c74a1d410dd66ca211b98f1c549ea789f6b41cfc34293bf57a7be50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): headroom/memory/bridge_parsers.py:303-336 | headroom/memory/bridge_parsers.py:418-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/memory/bridge_parsers.py:416\u0060 calls \u0060startswith\u0060 and \u0060headroom/memory/bridge_parsers.py:302\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":"headroom/memory/bridge_parsers.py"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"889555c903b541f629c12a763dfba0509d72f0539d6eca9a2c2b3bef69c04675"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 3): headroom/proxy/handlers/gemini.py:438-464 | headroom/proxy/handlers/openai.py:3588-3616 | headroom/proxy/handlers/openai.py:6248-6280 \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. 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa36222a3ac0395a8dc72fcd17da0ded0ac758c391032531636c86bbd11c918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201333 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:1869-1901 | headroom/proxy/handlers/openai.py:3873-3898 \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 \u0060headroom/proxy/handlers/anthropic.py:1869\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb3f966a74801e42437e07502796fe2ccc6a5c53f6b720dae06bddda16daef9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201333 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:2022-2054 | headroom/proxy/handlers/openai.py:4022-4049 \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 \u0060headroom/proxy/handlers/anthropic.py:2022\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/anthropic.py:2055\u0060 calls \u0060_finalize_pre_upstream\u0060 and \u0060headroom/proxy/handlers/openai.py:4050\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2022}}}],"partialFingerprints":{"codehealthFindingId/v1":"009b0e175554d8aad309c612e756926f058bf32e509158c0a2e6984af3b083f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201332 lines \u00D7 2): headroom/backends/anyllm.py:81-92 | headroom/backends/litellm.py:1008-1039 \u2014 before extracting anything, compare \u0060headroom/backends/anyllm.py\u0060 and \u0060headroom/backends/litellm.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 90 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":"headroom/backends/anyllm.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa091d56e5403adafce030c7f098f10ee26014cda7a1ce090a575f7988e66dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201332 lines \u00D7 2): headroom/cli/memory.py:110-141 | headroom/cli/memory.py:177-202 \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 \u0060headroom/cli/memory.py:110\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":"headroom/cli/memory.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"556881614cab17ed5828cc975b782da900575338dc150db214ca30e1aebaa9ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201332 lines \u00D7 2): headroom/evals/runners/compression_only.py:131-162 | headroom/evals/runners/compression_only.py:212-242 \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 \u0060headroom/evals/runners/compression_only.py:131\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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d77bc61c2bb5d2927d0ab08588e32997c3412ef4dc5472dade6f956f4a2fc11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201332 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:4117-4148 | headroom/proxy/handlers/openai.py:5107-5133 \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 \u0060headroom/proxy/handlers/anthropic.py:4117\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4117}}}],"partialFingerprints":{"codehealthFindingId/v1":"615a0c25781d432ae92d51e726aa408a0ae8b672ab424908dbb839e999028fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201331 lines \u00D7 3): headroom/proxy/handlers/openai.py:2174-2188 | headroom/proxy/handlers/openai.py:2213-2236 | headroom/proxy/handlers/openai.py:2259-2289 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/openai.py:2213\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ccaa5f1679954867dfc2a153de042cadf9e9cda9caaf4b214a01e539c436ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201331 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:4949-4979 | headroom/proxy/handlers/openai.py:5686-5713 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4949}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b267298df913cdd17b869e2fdb3cd11db47cd5e2b01e696dfe000d3bc7b41d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201330 lines \u00D7 2): headroom/copilot_auth.py:662-691 | headroom/providers/codex/recovery.py:408-430 \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":"headroom/copilot_auth.py"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5861354fee5a041f21cad921672eb94ea8a61f0c8b2ab222b2c3e0f3e6c242e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201330 lines \u00D7 2): headroom/image/onnx_router.py:262-283 | headroom/image/trained_router.py:329-358 \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 \u0060headroom/image/onnx_router.py:262\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":"headroom/image/onnx_router.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8d221419269fddff386cd0d3f88254068b9fc1f3658c8bf9b8928ab998c22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): headroom/proxy/handlers/openai.py:8995-9024 | headroom/proxy/handlers/openai.py:9402-9431 \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 \u0060headroom/proxy/handlers/openai.py:8995\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. 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8995}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d7b1b2eabf7b9829218cb21ac8214a4deddf793e6413aadd09f426af09da77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6858-6886 | headroom/proxy/handlers/batch.py:771-799 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6858}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b73655e49b89e73a25a8cc2fc64d046720c5f31ad2c18e3416db81c752a404b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): headroom/audit/maturation.py:139-166 | headroom/audit/maturation.py:250-277 \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":"headroom/audit/maturation.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"81997aa3498bad6b916496e29b0b946cd713544af6fe8c8fe74cf4e48d7c6c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 2): headroom/backends/anyllm.py:455-478 | headroom/backends/litellm.py:1783-1810 \u2014 before extracting anything, compare \u0060headroom/backends/anyllm.py\u0060 and \u0060headroom/backends/litellm.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 90 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 after the matched lines, \u0060headroom/backends/litellm.py:1812\u0060 calls \u0060close\u0060 and \u0060headroom/backends/anyllm.py:480\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":"headroom/backends/anyllm.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"61544729e2e48985e299cc87c761c9eca7ec859476f7e0809a752c2c822b243f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 2): headroom/memory/adapters/hnsw.py:591-618 | headroom/memory/adapters/sqlite_vector.py:689-712 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"531ed79f73e91062bdd3899a1090ed47bb2e016aecdbd2d3f020ffa4073d3ea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): headroom/proxy/handlers/gemini.py:782-807 | headroom/proxy/handlers/gemini.py:1393-1420 \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39ff2ed37f563df9d460120f9ad8045f80148a8f706ee1fab5c71b82255004d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): headroom/proxy/handlers/openai.py:9442-9469 | headroom/proxy/handlers/openai.py:9499-9524 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9442}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fcc19932d8d3f50c93c7992e69b29a722bd0181eaf4e05b3253b47b5c31a96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): headroom/evals/memory/runner.py:171-196 | headroom/evals/memory/runner_v2.py:278-304 \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":"headroom/evals/memory/runner.py"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0da9ea4fc1704cb525c2ff240858e2887eaf952804d7452a898b59fb0a83045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): headroom/evals/memory/runner.py:611-637 | headroom/evals/memory/runner_v2.py:913-939 \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 \u0060headroom/evals/memory/runner.py:611\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060results\u0060 to \u0060list[MemoryEvalResult]\u0060 in one and \u0060list[MemoryEvalResultV2]\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":"headroom/evals/memory/runner.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fc680ba947afe3a7bf3207c3b926621da86c821be3f190fa1a3b027ef012b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6453-6479 | headroom/proxy/handlers/batch.py:206-232 \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 \u0060headroom/proxy/handlers/anthropic.py:6453\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6453}}}],"partialFingerprints":{"codehealthFindingId/v1":"95367168cf4fe86683bf427f8a05920ea9ba8b82a60ab1cec5e3cf4153349206"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201327 lines \u00D7 2): headroom/proxy/handlers/openai.py:11817-11843 | headroom/proxy/handlers/openai.py:11859-11881 \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 \u0060headroom/proxy/handlers/openai.py:11817\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":11817}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad8db85da4e2929d70d8c5c8533ee625c7f15a87e1195c8abb0673ee9765a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): headroom/proxy/server.py:6126-6152 | headroom/proxy/server.py:6459-6485 \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":"headroom/proxy/server.py"},"region":{"startLine":6126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5c1a49396556fb5245e52e1b1db540c0ab7e2d556e362b34ec6fb98d711530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): headroom/integrations/langchain/chat_model.py:280-305 | headroom/integrations/langchain/chat_model.py:1027-1052 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f4fa47bc86509abd302b84b4fd738f6934e6055cc0d34d983d163bf9ca0804"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): headroom/memory/adapters/embedders.py:837-862 | headroom/memory/adapters/embedders.py:1070-1096 \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 \u0060headroom/memory/adapters/embedders.py:837\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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e43d94ecb6608bffe6a14152978fe3af2771930c6265b0d569c8e5de89abd26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:5862-5887 | headroom/proxy/handlers/openai.py:7697-7722 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5862}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9b0afd66f5292aa0e89b38fdbb5e44e69820e2bdf2202639c21b1863d86300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): headroom/proxy/savings_tracker.py:2494-2519 | headroom/proxy/savings_tracker.py:2527-2552 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/savings_tracker.py:2526\u0060 calls \u0060_normalize_agent\u0060, \u0060get\u0060 and \u0060headroom/proxy/savings_tracker.py:2554\u0060 does not \u2014 after which the two agree again for 4 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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":2494}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc525d05106623cf789d5a38cf6edfb6a3ea1ea5153441fd011b841ed5c90d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): headroom/_subprocess.py:47-71 | headroom/proxy_client_liveness.py:21-45 \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":"headroom/_subprocess.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd3dfb8a3ab72d8b12db2363d3e3a0d4d758f8d52a29fec6967b2a27f87a365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): headroom/integrations/agno/model.py:431-451 | headroom/integrations/strands/model.py:275-299 \u2014 \u0060headroom/integrations/agno/model.py\u0060 and \u0060headroom/integrations/strands/model.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 113 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 \u0060headroom/integrations/agno/model.py:431\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":"headroom/integrations/agno/model.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d75e7fe937a21f0e51cca851c56429e26e4b4314e3f69df175541fe924167fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): headroom/proxy/handlers/batch.py:548-572 | headroom/proxy/handlers/batch.py:699-723 \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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0a120a0b1db6ad1d36f96cebaa7c343b2d6a1bb437f8e226162fe60ad19f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201324 lines \u00D7 2): headroom/cache/base.py:326-336 | headroom/cache/openai.py:468-491 \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":"headroom/cache/base.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f304bf2fe40dc4ece447bae8801694c939fa8bea0e0c0aac080de40abb91fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): headroom/integrations/strands/model.py:384-410 | headroom/integrations/strands/model.py:447-470 \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":"headroom/integrations/strands/model.py"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9a913b8477fa8c038604674f15b19bde2d184ce0d106ed0f1cedd79d60cc94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): headroom/memory/wrapper_tools.py:235-258 | headroom/memory/wrapper_tools.py:466-489 \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 \u0060headroom/memory/wrapper_tools.py:235\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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d75f109c9ccb7b32f15a4e602e0347ebf487fd05524a9c661edffe68bf2d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): headroom/providers/proxy_routes.py:549-570 | headroom/providers/proxy_routes.py:599-622 \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 \u0060headroom/providers/proxy_routes.py:549\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":"headroom/providers/proxy_routes.py"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"048a64c60711ab35a458a8e424cf7838d9275f9eb7232c7eca9feb358d5fb31d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): headroom/proxy/handlers/gemini.py:494-516 | headroom/proxy/handlers/openai.py:3692-3715 \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 \u0060headroom/proxy/handlers/gemini.py:494\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/proxy/handlers/openai.py:3690\u0060 calls \u0060_openai_outcome_provider\u0060 and \u0060headroom/proxy/handlers/gemini.py:493\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9016c9a4a1dfaf5ff1f5a79cd6b4c0da5f5eabde3cd64fec59fd0b5e6db45df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): headroom/transforms/kompress_compressor.py:2087-2110 | headroom/transforms/kompress_compressor.py:2517-2540 \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 \u0060headroom/transforms/kompress_compressor.py:2087\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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e56eefd6f2488afa362b5be05bc23ae594c53e6a8ee969bf3da40b7cc4c8356"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 3): headroom/memory/writers/claude_writer.py:35-57 | headroom/memory/writers/codex_writer.py:25-43 | headroom/memory/writers/generic_writer.py:33-52 \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 \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":"headroom/memory/writers/claude_writer.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"476a80baf9f5d170842d5c5ca0f7b21c3a84cc99cb3e228e41d3b86d03acdd28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): headroom/backends/litellm.py:1376-1395 | headroom/backends/litellm.py:2008-2030 \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":"headroom/backends/litellm.py"},"region":{"startLine":1376}}}],"partialFingerprints":{"codehealthFindingId/v1":"912784caec8bb2eca0c44a3915332babe6a0d8569e598c3d59117589875adede"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): headroom/providers/proxy_routes.py:457-476 | headroom/providers/proxy_routes.py:479-501 \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 \u0060headroom/providers/proxy_routes.py:479\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. 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":"headroom/providers/proxy_routes.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5617b5895dc602cb1f7d3cf785f28d2d58f76cdc76705cabd7c6152b3958ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53\u201359 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:4986-5044 | headroom/proxy/handlers/openai.py:5716-5768 \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. 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4986}}}],"partialFingerprints":{"codehealthFindingId/v1":"508d5a0cb3a5707abd105ecbc27adf04baa4be333e45c116118bc8b6294e99df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): headroom/proxy/handlers/openai.py:3642-3664 | headroom/proxy/handlers/openai.py:6340-6361 \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 \u0060headroom/proxy/handlers/openai.py:3642\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3642}}}],"partialFingerprints":{"codehealthFindingId/v1":"272f8191f8d298578257cb3ee0c34b3649ae50cd11daba45c0e4208fd04d4b41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): headroom/proxy/helpers.py:3457-3479 | headroom/proxy/helpers.py:3503-3521 \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":"headroom/proxy/helpers.py"},"region":{"startLine":3457}}}],"partialFingerprints":{"codehealthFindingId/v1":"c597a11539e803a597d05271e7cb542c265b7d7a1fcbd882a0a463defdf0c3dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): headroom/proxy/memory_handler.py:2011-2033 | headroom/proxy/memory_handler.py:2065-2087 \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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c1195b23d437d6ab5210ff1249f0c3f7119a8e4fdc26597d9f84b5e03551d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:6321-6342 | headroom/proxy/handlers/anthropic.py:6661-6682 | headroom/proxy/handlers/anthropic.py:6806-6827 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/anthropic.py:6321\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6321}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b208e74d73ee34aeb6858574b46f858fc02355e2a0b3371eaee5c7659672a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): headroom/memory/wrapper_tools.py:208-229 | headroom/memory/wrapper_tools.py:441-462 \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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ee61134d0779e0145316bd8e58985e36d97d3391841a6ee6ac88a7bd1010b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:1979-2000 | headroom/proxy/handlers/openai.py:3987-4004 \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 \u0060headroom/proxy/handlers/anthropic.py:1979\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f22a6325ecacb17aea12774e4e5a462b64e22b0f96e06f9868ced4f926e700"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): headroom/proxy/handlers/batch.py:587-608 | headroom/proxy/handlers/batch.py:810-830 \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 \u0060headroom/proxy/handlers/batch.py:587\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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"caedd2cbbc47a0148840f71e6afcb5f653ebb319635ca0f642c0145e00c06530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201322 lines \u00D7 2): headroom/transforms/content_router.py:8057-8067 | headroom/transforms/content_router.py:8151-8172 \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":"headroom/transforms/content_router.py"},"region":{"startLine":8057}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0c8bb479287f981acdf48b6bd9ecd8a9be2b8223a161f240ccc2524ddc57c25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): headroom/proxy/handlers/anthropic.py:6712-6732 | headroom/proxy/handlers/batch.py:508-527 | headroom/proxy/handlers/batch.py:599-618 | headroom/proxy/handlers/batch.py:1356-1375 \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 \u0060headroom/proxy/handlers/anthropic.py:6712\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6712}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f089ac3a05149bac69519e004228054531fdeaaf0f611a810e369159dd43e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): headroom/learn/plugins/opencode.py:398-418 | headroom/learn/plugins/opencode.py:482-502 \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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfb0f4d94f987e0e8d88b754a43154458ec06c7deadb22894d4a27e1a6fbd65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:2112-2132 | headroom/proxy/handlers/openai.py:4079-4099 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2112}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd89ed8b65ce872bdd8dcb5e51fc232e06a8ac3b78a8a45980d16db57525172e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): headroom/proxy/handlers/openai.py:6815-6835 | headroom/proxy/handlers/openai.py:8866-8886 \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 \u0060headroom/proxy/handlers/openai.py:6815\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6815}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5ca0361ba0668415851d4c5c9b09d3e1eca9328068a958fef539ee1ef81c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): headroom/cli/wrap.py:1613-1632 | headroom/proxy/output_savings.py:418-434 \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":"headroom/cli/wrap.py"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf98cb35a9a67b9f48f00020ca7487d00f359e7f3abc1e02bf09e3cdfb050d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201320 lines \u00D7 2): headroom/memory/adapters/hnsw.py:324-343 | headroom/memory/adapters/sqlite_vector.py:295-304 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9376253348dc5c1a19bc78fcfe6ccffcfc81687702ff89fe752575efdda325b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:1494-1513 | headroom/proxy/handlers/openai.py:3639-3654 \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 \u0060headroom/proxy/handlers/anthropic.py:1494\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2028a463087b9cf1e342014839798b0a176c04015de278ad7c245e400ad0c3b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:2981-2996 | headroom/proxy/handlers/anthropic.py:3000-3019 \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 \u0060headroom/proxy/handlers/anthropic.py:2981\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2981}}}],"partialFingerprints":{"codehealthFindingId/v1":"80356a9ea5eebe7839c533e0bb497377da194d097f2e2550b5b4eba40dd0be2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): headroom/proxy/handlers/openai.py:4645-4664 | headroom/proxy/handlers/openai.py:6670-6689 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4645}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0138c1000f4c6608af205f4cedac342e850807dfb71745adc6c5a2047936b69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): headroom/proxy/handlers/openai.py:9190-9206 | headroom/proxy/handlers/openai.py:9703-9722 \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 \u0060headroom/proxy/handlers/openai.py:9190\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9190}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c046e6ae96b6c23ad10bf13544ee0c31114059f3bf2119c60b9dbb41be8d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): headroom/proxy/handlers/openai.py:12474-12493 | headroom/proxy/handlers/openai.py:12687-12706 \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 \u0060headroom/proxy/handlers/openai.py:12474\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12474}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e788883f3073ede53cd0a2da463bec2431d1e9e080e7c050e0eb816421fe26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): headroom/proxy/memory_handler.py:1867-1886 | headroom/proxy/memory_handler.py:2059-2078 \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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1867}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e534dbf449443015b5b5740d26d043f59ce8726d5534b108d6665b6268c78e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:2515-2529 | headroom/proxy/handlers/anthropic.py:2615-2629 | headroom/proxy/handlers/anthropic.py:2796-2814 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3391a6444f7577a93efc771223f48d618791dd564ac2a54a73ce1e86169cf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/backends/litellm.py:1334-1352 | headroom/backends/litellm.py:1863-1881 \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":"headroom/backends/litellm.py"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3c1d4118dffdde55d4645554815344ce67a461e20c9d89ef9534b8fa44f863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): headroom/cli/wrap.py:8871-8889 | headroom/cli/wrap.py:9323-9340 \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":"headroom/cli/wrap.py"},"region":{"startLine":8871}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49ca3145385bae7b21a12df843187eec4b3c7ce023cb68fb1794b9fc1c0fb9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/copilot_linux_secret.py:88-106 | headroom/copilot_macos_keychain.py:106-124 \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":"headroom/copilot_linux_secret.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c7214bed0a2fcee48436ae0c707d094c5fa0ea0714ab87809c05ffb5e35434"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): headroom/image/tile_optimizer.py:61-75 | headroom/image/tile_optimizer.py:104-122 \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":"headroom/image/tile_optimizer.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69c86c147b7c72788bbe3e0e568866cf5698aa3e1c5f4f333c10d96977cf46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/memory/adapters/hnsw.py:411-429 | headroom/memory/adapters/hnsw.py:565-583 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c7eb727c013bf138d83d64f612b3602a7fa206d88c8d2a569e91bbda5a2dca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/providers/proxy_routes.py:527-545 | headroom/providers/proxy_routes.py:574-592 \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 \u0060headroom/providers/proxy_routes.py:527\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":"headroom/providers/proxy_routes.py"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"959bf3f5c079379b084519c52725d0aa59d961e64a2bfd80daeddf1d74e36961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6273-6292 | headroom/proxy/handlers/gemini.py:434-452 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6273}}}],"partialFingerprints":{"codehealthFindingId/v1":"c546f638998788b37abd0d7bf3215b280f13df3a20f9fffc0e36ed8b8cd6cbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): headroom/proxy/handlers/gemini.py:1266-1283 | headroom/proxy/handlers/gemini.py:1493-1511 \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a711ef4528261ab7612a599f108bb3ea795845137a30c1420acae405d9e9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): headroom/proxy/handlers/openai.py:1293-1311 | headroom/proxy/handlers/openai.py:1334-1352 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1293}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa1a860a7bf59ed7a71101999531c2e6dd3a99ed4cda213b9a473dc4031e0762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): headroom/proxy/handlers/openai.py:5915-5931 | headroom/proxy/handlers/openai.py:7376-7394 \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 \u0060headroom/proxy/handlers/openai.py:7376\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5915}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd91024062a437e9867cc54f0e2ef55083738dd4a197d0c1f1da6cfd697bd8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): headroom/proxy/helpers.py:2694-2712 | headroom/proxy/helpers.py:2728-2742 \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 \u0060headroom/proxy/helpers.py:2694\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":"headroom/proxy/helpers.py"},"region":{"startLine":2694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1718b0fad22b50421bb1acebf62d2fdc9b155c794e54c724cbe85bcd3213c2f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): headroom/subscription/copilot_quota.py:280-297 | headroom/subscription/tracker.py:371-389 \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":"headroom/subscription/copilot_quota.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"185f4aad4acaca7ed0b2c3ed61c2de6136dbf1efe27c67fb4de54c4b692a5817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): headroom/backends/litellm.py:1327-1344 | headroom/backends/litellm.py:1450-1467 | headroom/backends/litellm.py:1856-1873 | headroom/backends/litellm.py:2066-2083 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/backends/litellm.py:1346\u0060 calls \u0060debug\u0060 and \u0060headroom/backends/litellm.py:2087\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":"headroom/backends/litellm.py"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccf5f3e11cabd2fe41a12359a6c54ce000db220cb7f592aa16b336b7be70dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:1498-1515 | headroom/proxy/handlers/openai.py:3641-3656 | headroom/proxy/handlers/openai.py:6337-6354 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"07535549b8a66ed2be3d71dee7d55458895f2c3060aebe36403acd4e7519014d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:2561-2574 | headroom/proxy/handlers/anthropic.py:2614-2627 | headroom/proxy/handlers/anthropic.py:2795-2812 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/anthropic.py:2561\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d50e7d0ce6648398908cdaf39dc0490afea0eb2ce363c463c58b9a10a81299"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): headroom/backends/litellm.py:1357-1374 | headroom/backends/litellm.py:1991-2006 \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":"headroom/backends/litellm.py"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba5c34b21accac3cf32631084ce82648856ba52caa92cfe0d476744d0dc2218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): headroom/cli/wrap.py:7898-7915 | headroom/cli/wrap.py:8165-8182 \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 \u0060headroom/cli/wrap.py:7898\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":"headroom/cli/wrap.py"},"region":{"startLine":7898}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6a45c833793cf30ceedcda34a8c3f5d44c6aa2994994ee7af353253edb0b42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): headroom/cli/wrap.py:9379-9396 | headroom/cli/wrap.py:9436-9453 \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":"headroom/cli/wrap.py"},"region":{"startLine":9379}}}],"partialFingerprints":{"codehealthFindingId/v1":"a709eec1d8ec033f523ae089b2bee88e004bb76fb477484eb4f128a7b9eb6086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201318 lines \u00D7 2): headroom/integrations/langchain/chat_model.py:277-287 | headroom/integrations/langchain/memory.py:278-295 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6062b8ed629886bc539eba087ca7f24f49c9e8035f9372681bbe07df12e68f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): headroom/memory/adapters/hnsw.py:170-187 | headroom/memory/adapters/sqlite_vector.py:165-178 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f020a75c7f5d259f8c2985744e96edc5c9036472becd5d3adb9fef1c0ae4f6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): headroom/providers/anthropic.py:491-505 | headroom/providers/openai.py:247-264 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/anthropic.py"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a37d6928efa14b474e59e251930f3f79e02043af64b5e79c0bef0a2996b3ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): headroom/providers/opencode/config.py:130-147 | headroom/providers/opencode/config.py:167-184 \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":"headroom/providers/opencode/config.py"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b4d7de2977b9fa784ccc0ecadfe1e0c6bb4126bfabeab2efd245d2c6bc8e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): headroom/proxy/handlers/gemini.py:947-964 | headroom/proxy/handlers/gemini.py:1627-1642 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/gemini.py:966\u0060 calls \u0060replace\u0060 and \u0060headroom/proxy/handlers/gemini.py:1643\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"0979871b109626e5ef840796cc6a0ca832a430ee47a77dfe31973db996c90ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): headroom/proxy/handlers/openai.py:9235-9252 | headroom/proxy/handlers/openai.py:9760-9777 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9235}}}],"partialFingerprints":{"codehealthFindingId/v1":"05065e025d6c990fd30906cbdf88325ef3dc45d53ff321ab962a24eb4ceb2627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): headroom/release_version.py:316-333 | headroom/release_version.py:338-354 \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 \u0060headroom/release_version.py:316\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":"headroom/release_version.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a7d9cc3bd33926f7ad712d80f75c6fe317e85a746cb81026a5a1e9c346da8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201317 lines \u00D7 3): headroom/backends/anyllm.py:295-308 | headroom/backends/litellm.py:1282-1298 | headroom/backends/litellm.py:1415-1430 \u2014 before extracting anything, compare \u0060headroom/backends/anyllm.py\u0060 and \u0060headroom/backends/litellm.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 90 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 \u0060headroom/backends/litellm.py:1282\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":"headroom/backends/anyllm.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea058d02fe9b62ee244e0d934fe46cdcedb7d0e08afca9c3c6ac8603b4b40b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201317 lines \u00D7 3): headroom/context_tool_cleanup.py:542-550 | headroom/context_tool_cleanup.py:567-583 | headroom/context_tool_cleanup.py:686-699 \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":"headroom/context_tool_cleanup.py"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"903f1996098439af107195651346abd026a9bb0daabf621d524a2e61657c5548"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): headroom/learn/plugins/codex.py:103-118 | headroom/learn/plugins/gemini.py:120-136 | headroom/learn/plugins/grok.py:93-108 \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 \u0060headroom/learn/plugins/gemini.py:120\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":"headroom/learn/plugins/codex.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3796b93385bff1d38d08090b54cc93a39575d8098c51ce526a21211c37195a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): headroom/cli/wrap.py:5201-5213 | headroom/cli/wrap.py:5365-5381 \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":"headroom/cli/wrap.py"},"region":{"startLine":5201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5113f8a2b8dbe1b23c58309a56595f400e8bce35cb919b57af4ccfd199d060"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/copilot_linux_secret.py:38-54 | headroom/copilot_macos_keychain.py:61-77 \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":"headroom/copilot_linux_secret.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"282302827a75a6fc9dd4eac99a4a271fdeda214f99ef83fcd82405c9ca80f022"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): headroom/install/supervisors.py:712-726 | headroom/install/supervisors.py:783-799 \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 \u0060headroom/install/supervisors.py:712\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":"headroom/install/supervisors.py"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca93e2c373872887db75c4e2e1066028705fa4d265fa6c9f762fffb312444f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): headroom/install/supervisors.py:787-803 | headroom/install/supervisors.py:898-909 \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":"headroom/install/supervisors.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbaa4f0ecfa9ef7eecb61513ebbc0d697952d2e02dc8eb2a43765fb859bb4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/integrations/agno/model.py:258-274 | headroom/integrations/strands/model.py:130-146 \u2014 \u0060headroom/integrations/agno/model.py\u0060 and \u0060headroom/integrations/strands/model.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 113 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":"headroom/integrations/agno/model.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fb3ba6108c03655a15074b82fd8ea9328444428f5489f68030cc94fba1b5d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/integrations/agno/model.py:646-662 | headroom/integrations/agno/model.py:687-703 \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":"headroom/integrations/agno/model.py"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ca0661fc4e502b566c5f007df58013331b977992bc43d4ede1c46892f6a7d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/memory/__init__.py:174-190 | headroom/memory/backends/__init__.py:53-69 \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":"headroom/memory/__init__.py"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb627d8eaf51f93d4e2cb9fdcf8800df63a55892f0ca10436305adcc7b0c2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:4484-4501 | headroom/proxy/handlers/anthropic.py:5722-5738 \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 \u0060headroom/proxy/handlers/anthropic.py:4484\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f752a4d6d31bc6256433a3145300a2a8c3454015c9815d01427e5a78d6bac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/proxy/savings_tracker.py:1320-1336 | headroom/proxy/savings_tracker.py:1372-1388 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a0706d21ae8036ef33921a580f664e3f33bfdc65530e9e290b6dd4c63d4ab9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): headroom/storage/sqlite.py:242-258 | headroom/storage/sqlite.py:279-295 \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":"headroom/storage/sqlite.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9947b891d4df0e7b3ceda1f32127e1649c4e9e50fdf3fb2400f2b4630e93e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): headroom/cache/semantic.py:566-577 | headroom/client.py:727-742 \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":"headroom/cache/semantic.py"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"79fec065a56199a974c9940910dfaecfe3cea3b6e186cd5e9a85b0e19ecf7452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/cli/wrap.py:7899-7916 | headroom/cli/wrap.py:8624-8639 \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 \u0060headroom/cli/wrap.py:7899\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":"headroom/cli/wrap.py"},"region":{"startLine":7899}}}],"partialFingerprints":{"codehealthFindingId/v1":"c54b7e8816646f98e3de78cff126e8b8145ca7bb62e13beb893f5a0d52f03fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/copilot_auth.py:728-743 | headroom/copilot_auth.py:768-782 \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 \u0060headroom/copilot_auth.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/copilot_auth.py"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a9ad8d2bb3d645902e68120bc7379f190688a9be9b5bf98955fd2b90717133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/evals/core.py:342-357 | headroom/evals/runners/before_after.py:359-373 \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 \u0060headroom/evals/core.py:342\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":"headroom/evals/core.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"741655fb1d2925a1cccb5e3163ca6f23b2daf96622e1dc209e9af129f6dda831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/learn/plugins/opencode.py:374-389 | headroom/learn/plugins/opencode.py:463-477 \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":"headroom/learn/plugins/opencode.py"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc41965f206b501005410761c902e8685de033d0eecfefc0b187d825b3b1a94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/memory/__init__.py:162-177 | headroom/memory/backends/__init__.py:34-49 \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":"headroom/memory/__init__.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8a369a5774c008dc449f60c338b4d49348f6f72aacb10923a53656b1652874"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/memory/adapters/graph.py:343-358 | headroom/memory/adapters/graph.py:433-447 \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":"headroom/memory/adapters/graph.py"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ee68425802f57a556dc4f0029dbca7b122b32da1766b07db1efe14223b9f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/memory/adapters/hnsw.py:136-151 | headroom/memory/adapters/sqlite_vector.py:131-146 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05a81592bf320b281a7b7116481ad6ec086bb5c25bbbf2b72cda676c245d61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/memory/bridge.py:463-478 | headroom/memory/bridge.py:498-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. 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":"headroom/memory/bridge.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f417fba4869edfbe272cf1997fbb3a8cf65410b58d838816e1fc021b327ee18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/providers/anthropic.py:425-440 | headroom/providers/openai.py:206-220 \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":"headroom/providers/anthropic.py"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38fe1ff70b294925ccb38105d87308bc19b06d102effea60c776774a44748bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6604-6619 | headroom/proxy/handlers/batch.py:381-396 \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 \u0060headroom/proxy/handlers/anthropic.py:6604\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/proxy/handlers/anthropic.py:6603\u0060 calls \u0060get\u0060 and \u0060headroom/proxy/handlers/batch.py:380\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6604}}}],"partialFingerprints":{"codehealthFindingId/v1":"bead9da94bcb9fc8f17f04c517af296030da1381a0d0cd8bf5e525d6a0f1a305"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): headroom/proxy/handlers/openai.py:9066-9081 | headroom/proxy/handlers/openai.py:9576-9589 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9066}}}],"partialFingerprints":{"codehealthFindingId/v1":"37f4777b5d749e1d89b6c9fe496c70555aa10f4b5985533b2ca3d8cbaf5c969a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): headroom/relevance/bm25.py:196-209 | headroom/relevance/bm25.py:272-287 \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 \u0060headroom/relevance/bm25.py:272\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":"headroom/relevance/bm25.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4dcb856c32eca46fbd05988dd0f4e710a587d6f1ff451e7a59ae03f1fc76ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): headroom/telemetry/toin.py:803-818 | headroom/telemetry/toin.py:1092-1106 \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":"headroom/telemetry/toin.py"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"899ebeb25f0cc52a1dd72460b93b8ce0360863bba6474ab695a7f80ec54be99e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): headroom/cli/evals.py:170-184 | headroom/cli/evals.py:347-361 | headroom/cli/install.py:1008-1022 | headroom/cli/wrap.py:7826-7840 | headroom/proxy/handlers/streaming.py:1216-1230 | headroom/proxy/prometheus_metrics.py:1243-1257 | headroom/testing/harness.py:1043-1057 \u2014 there are 7 copies across 6 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 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/cli/evals.py:170\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":"headroom/cli/evals.py"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8567e4cb17efa1f66cb5a5907b2507e96b379e1a3bc1f8ec9f1f965416af526"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): headroom/proxy/handlers/gemini.py:740-754 | headroom/proxy/handlers/gemini.py:1356-1369 | headroom/proxy/handlers/gemini.py:1584-1597 | headroom/proxy/handlers/openai.py:4213-4226 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/gemini.py:757\u0060 calls \u0060_gemini_contents_to_messages\u0060 and \u0060headroom/proxy/handlers/gemini.py:1598\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"db2b8dc46b83c667c0bc33e40c6084b34c646b628fe322e310cbaac8b865e005"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): headroom/proxy/handlers/batch.py:125-139 | headroom/proxy/handlers/batch.py:910-924 | headroom/proxy/handlers/gemini.py:1515-1529 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/batch.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4efeee47c6a49b173c0e3d4f88d00e58b640e5a4884b01885eb0b4f31b3196f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): headroom/proxy/handlers/openai.py:9233-9247 | headroom/proxy/handlers/openai.py:9758-9772 | headroom/proxy/handlers/openai.py:10058-10071 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/openai.py:9233\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. 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9233}}}],"partialFingerprints":{"codehealthFindingId/v1":"70636423db24d174cdbcef0547ef565be8bff8d327857fbe55a09f40cde47681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/cache/dynamic_detector.py:365-379 | headroom/cache/dynamic_detector.py:428-442 \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 \u0060headroom/cache/dynamic_detector.py:365\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":"headroom/cache/dynamic_detector.py"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb19d33188df7e6c9b81580f5e4d7b528ffe6d55701d31bc49f0f370db90598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/evals/suite_runner.py:570-584 | headroom/evals/suite_runner.py:588-602 \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":"headroom/evals/suite_runner.py"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"86df467f3305b3590a1d6f0d733f97c95c6831275248e7069a064e39f12729a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): headroom/integrations/strands/model.py:188-202 | headroom/integrations/strands/model.py:258-268 \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":"headroom/integrations/strands/model.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8da2c9dfffbc6e877d5cb58d7d240c27d871b7462668b4353ad83e16b713c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): headroom/learn/plugins/claude.py:363-375 | headroom/learn/plugins/gemini.py:287-301 \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 \u0060headroom/learn/plugins/gemini.py:287\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":"headroom/learn/plugins/claude.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"68efcbc5db8443c7f3af964ceb8c13226764d946961aabe6ca5ec41704d521d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): headroom/memory/adapters/graph.py:419-433 | headroom/memory/adapters/sqlite_graph.py:615-628 \u2014 before extracting anything, compare \u0060headroom/memory/adapters/graph.py\u0060 and \u0060headroom/memory/adapters/sqlite_graph.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25d00c75772cc765ec963cf6c2499c3a7d75c94c9e4814cf7e0b5f59bf5f04c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/providers/anthropic.py:468-482 | headroom/providers/openai.py:225-239 \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":"headroom/providers/anthropic.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebdb3b20818a9da11b9b9c69caec2693054f15fb5c107355b861fe70443f1ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6057-6071 | headroom/proxy/handlers/openai.py:7753-7767 \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 \u0060headroom/proxy/handlers/anthropic.py:6057\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6057}}}],"partialFingerprints":{"codehealthFindingId/v1":"717a9b9bfeacf4834144e6a246d4cd10def8e74ed30045a5a9eaa857fa42a87f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): headroom/proxy/handlers/openai.py:5630-5644 | headroom/proxy/handlers/openai.py:7292-7305 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5630}}}],"partialFingerprints":{"codehealthFindingId/v1":"031aaaa08d223b9726f2401c8cdd1dce46cfe04cf914b22f94ab08090002d9d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/proxy/handlers/openai.py:9255-9269 | headroom/proxy/handlers/openai.py:10475-10489 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9255}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0468dcd219ed365e04fd2fd8a700bbbeb5ee19a21729d7926e40239b516e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/transforms/compression_batches.py:345-359 | headroom/transforms/compression_batches.py:361-375 \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":"headroom/transforms/compression_batches.py"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"2854c6d8d8beb0a4db962635ecdd39834851ff4d279e39ca437008ef6d54686c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): headroom/learn/plugins/codex.py:187-200 | headroom/learn/plugins/codex.py:254-267 | headroom/learn/plugins/grok.py:159-172 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/learn/plugins/codex.py"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5431029310300896a39396ad60a38aeaeac280422135f65860f326e72adcd8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:4439-4451 | headroom/proxy/handlers/anthropic.py:5595-5608 | headroom/proxy/handlers/streaming.py:2418-2428 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/anthropic.py:4439\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4439}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a2e33a12510749fb469e3a6f8d03b6253e45b87da9a52f8c207a5f678a5ae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): headroom/proxy/handlers/gemini.py:502-515 | headroom/proxy/handlers/openai.py:3700-3714 | headroom/proxy/handlers/openai.py:6411-6424 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/openai.py:3700\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3f7eb5927dcb3f58a69c93df12ac72a83da24782708370500d3f60a6448eab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/cli/init.py:241-254 | headroom/cli/init.py:645-658 \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 \u0060headroom/cli/init.py:241\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":"headroom/cli/init.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1d826763c25aae36d5e01faae99eaaa405ff1eb3af6da87da5c69b137bb763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/cli/wrap.py:4220-4234 | headroom/cli/wrap.py:5915-5928 \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 \u0060headroom/cli/wrap.py:4220\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":"headroom/cli/wrap.py"},"region":{"startLine":4220}}}],"partialFingerprints":{"codehealthFindingId/v1":"41426ea9258c15bdd8e90b09af732b1e84a081b2ac404bf546b6b6dd8b2cfdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): headroom/evals/batch_compression_eval.py:210-223 | headroom/evals/core.py:180-192 \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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"457bcdb2482e075a1d08773480893f9807303fd0460daec569dae642a3631f5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/evals/core.py:364-377 | headroom/evals/runners/before_after.py:380-393 \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 \u0060headroom/evals/core.py:364\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":"headroom/evals/core.py"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a4e4314f156804d196a0100f0900de62415fcbb970f58aa96624ab60a8f529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201314 lines \u00D7 3): headroom/evals/batch_compression_eval.py:1262-1265 | headroom/evals/core.py:420-433 | headroom/evals/runners/before_after.py:494-507 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/evals/core.py:420\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e555f4b7bd296abc7df81d3c22292c0a70d647a9b687af148c0bb0562351d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): headroom/image/tile_optimizer.py:80-93 | headroom/image/tile_optimizer.py:149-160 \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":"headroom/image/tile_optimizer.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbb80ebcd9ef5e090684241a1a974b0246bd50dab3c66f524aa8b4ba153ab9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/learn/writer.py:693-706 | headroom/learn/writer.py:723-736 \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":"headroom/learn/writer.py"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6a8c6bd17af0f19b18521f904986d9327b5785bdb971cfbdf9081d6ab49e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/memory/adapters/graph.py:368-381 | headroom/memory/adapters/sqlite_graph.py:545-558 \u2014 before extracting anything, compare \u0060headroom/memory/adapters/graph.py\u0060 and \u0060headroom/memory/adapters/sqlite_graph.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"370327b59c6c8a7487a1f3daaaea44e0c98f300197092959d6473ffa1527dc83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/models/ml_models.py:257-270 | headroom/models/ml_models.py:353-366 \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 \u0060headroom/models/ml_models.py:257\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":"headroom/models/ml_models.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc456db3df13b88d42b10db80d457bfa36be0009921f7d2d5f9da4577cec9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:3081-3094 | headroom/proxy/handlers/openai.py:4466-4479 \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 \u0060headroom/proxy/handlers/anthropic.py:3081\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3081}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a91dbbb60d2a855cf8cbbc69281c91d5c6d2ef004915a78a18224960c86ace3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/proxy/handlers/openai.py:6715-6728 | headroom/proxy/handlers/openai.py:8802-8815 \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 \u0060headroom/proxy/handlers/openai.py:6715\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6715}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd196a1e7216227b3e1b481877cea509fae2aec722aa53a12cdf51e31d2cc09b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/proxy/handlers/streaming.py:1680-1693 | headroom/proxy/handlers/streaming.py:2138-2151 \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 \u0060headroom/proxy/handlers/streaming.py:1680\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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1680}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f2036e88addbc74258598f8fc64adc8c814b549aae6a0378b7229db0225b82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): headroom/proxy/savings_tracker.py:431-444 | headroom/proxy/savings_tracker.py:695-706 \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, \u0060headroom/proxy/savings_tracker.py:691\u0060 calls \u0060_get_litellm_module\u0060 and \u0060headroom/proxy/savings_tracker.py:430\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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffea1b17a292a3031e333c20bbd2348fa9aec6611c1073f38f1a82468787631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/transforms/content_router.py:6147-6160 | headroom/transforms/content_router.py:6168-6181 \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":"headroom/transforms/content_router.py"},"region":{"startLine":6147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f37aa2b8a1b3e021804689bea372a49adff49c9b13e27051ea44980bb191cd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/transforms/recursive_json.py:51-64 | headroom/transforms/recursive_json.py:96-109 \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":"headroom/transforms/recursive_json.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"4621e549f483670a3cb7698a0c30fe47b9d5440ce1d73318f014a537f6ef4673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 4): headroom/backends/anyllm.py:249-257 | headroom/backends/anyllm.py:301-309 | headroom/backends/litellm.py:1423-1431 | headroom/proxy/handlers/streaming.py:1884-1896 \u2014 before extracting anything, compare \u0060headroom/backends/anyllm.py\u0060 and \u0060headroom/backends/litellm.py\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 90 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":"headroom/backends/anyllm.py"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e70134cf7ce0074a4b0363b9e2217a2cc1a5b33b10d0ee01b167eddcd62bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): headroom/proxy/handlers/anthropic.py:2560-2572 | headroom/proxy/handlers/anthropic.py:2613-2625 | headroom/proxy/handlers/anthropic.py:2658-2670 | headroom/proxy/handlers/anthropic.py:2721-2733 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/anthropic.py:2560\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2560}}}],"partialFingerprints":{"codehealthFindingId/v1":"41689ab43ad9ff6ac352460a14d534c715090487b859f384d99b1a401027487e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:1358-1374 | headroom/proxy/handlers/openai.py:3573-3585 | headroom/proxy/handlers/openai.py:6233-6245 \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, \u0060headroom/proxy/handlers/anthropic.py:1352\u0060 calls \u0060uuid4\u0060 and \u0060headroom/proxy/handlers/openai.py:3567\u0060 does not \u2014 after which the two agree again for 4 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f66a6c54275507cf85838036b11feeeae5220915a50b251e0ca749c87cdbaa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/evals/core.py:325-337 | headroom/evals/runners/before_after.py:342-354 \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":"headroom/evals/core.py"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d06716b0c82cc94852bdccf1e462549ab60229dca2428e973f6b91fcf221a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): headroom/evals/html_oss_benchmarks.py:165-176 | headroom/evals/html_oss_benchmarks.py:303-315 \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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fa7deb72b0cdc39d0c42d09a7802ca0ba6557a9770494f6b9c4336e6f86146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): headroom/integrations/langchain/agents.py:142-154 | headroom/integrations/langchain/agents.py:188-197 \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":"headroom/integrations/langchain/agents.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8eb8cc9e47f4bd24209dc3c07153071024e5143e846f0e72bd2b8348f52aad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): headroom/integrations/langchain/chat_model.py:924-933 | headroom/integrations/langchain/chat_model.py:1022-1034 \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 \u0060headroom/integrations/langchain/chat_model.py:1022\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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9902d0589ded265b0335f8d0e5837434262242242e608a75a571440e3c1bd59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/memory/adapters/hnsw.py:155-167 | headroom/memory/adapters/sqlite_vector.py:150-162 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5310d7130b0050cb1f1e7ecd3c94a4d09c10529e053d5b264476b7dbbc3cbded"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): headroom/memory/backends/direct_mem0.py:1025-1036 | headroom/memory/backends/mem0_system_adapter.py:379-391 \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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2666a1a8729d0f84fb1f7004aadc6b653ba4d4b3bda44e5d9cad655051221ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/pipeline.py:247-259 | headroom/transforms/compressor_registry.py:224-236 \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":"headroom/pipeline.py"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7b3880f1e040e29d242418e53adb09fa3d09af662e18537e429d114642cbd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/providers/cohere.py:355-367 | headroom/providers/google.py:369-381 \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":"headroom/providers/cohere.py"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be309f8b1c5d5fceea6b0ca973d88f23820c41ae0b2fb8eb6c27877b50a8e3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): headroom/proxy/gateway_turn.py:328-339 | headroom/proxy/gateway_turn.py:346-358 \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 \u0060headroom/proxy/gateway_turn.py:328\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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5448f5ac68fcdd5d81d515a127788dad05e378bec534963b27db458ed1f9e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:6508-6520 | headroom/proxy/handlers/batch.py:304-314 \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 \u0060headroom/proxy/handlers/anthropic.py:6508\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6508}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f01ae4fc9598fb8cd2b552ad2235d5c571f566bb17f08e1412c298439682dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/proxy/handlers/gemini.py:719-731 | headroom/proxy/handlers/openai.py:4041-4053 \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 \u0060headroom/proxy/handlers/gemini.py:719\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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"17490ceec128a99e7a4ee75d9427c7ffae656ee4582cc22cee963166cd9a9d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): headroom/proxy/handlers/openai.py:5248-5260 | headroom/proxy/handlers/openai.py:5803-5812 \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 \u0060headroom/proxy/handlers/openai.py:5248\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/openai.py:5815\u0060 calls \u0060pop\u0060 and \u0060headroom/proxy/handlers/openai.py:5262\u0060 does not \u2014 after which the two agree again for 4 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5248}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d080ab0c6c2da50c93551cdec2f4e822fea4221c1e786d319748018ccb77228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/proxy/handlers/openai.py:6128-6140 | headroom/proxy/handlers/openai.py:7727-7739 \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 \u0060headroom/proxy/handlers/openai.py:6128\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6128}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2cb41856d29596a5c5c0049388467e12e7469c36f65905b35169439f8b4c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201313 lines \u00D7 3): headroom/proxy/prometheus_metrics.py:1538-1550 | headroom/proxy/prometheus_metrics.py:1552-1564 | headroom/proxy/prometheus_metrics.py:1565-1570 \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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/proxy/prometheus_metrics.py:1538\u0060 calls \u0060_format_labels\u0060 and \u0060headroom/proxy/prometheus_metrics.py:1565\u0060 does not \u2014 after which the two agree again for 5 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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc95871a6800c7e50c95f75efc25e5f748cec8f48c5797ec146cc65d3c3158e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 4): headroom/memory/writers/claude_writer.py:40-51 | headroom/memory/writers/codex_writer.py:29-38 | headroom/memory/writers/cursor_writer.py:41-48 | headroom/memory/writers/generic_writer.py:38-47 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/memory/writers/claude_writer.py:40\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":"headroom/memory/writers/claude_writer.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f759bd68818e1fa5ac72ec322b213c90f51f0cbf00ce610ca04f4ef7883a384"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): headroom/cache/__init__.py:134-145 | headroom/models/__init__.py:48-59 | headroom/providers/__init__.py:112-123 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. 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":"headroom/cache/__init__.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc56bc8c9cf76568338458784af85dcac25d6a1b58fe15a08df92c57a2ae393"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): headroom/evals/runners/compression_only.py:155-166 | headroom/evals/runners/compression_only.py:235-246 | headroom/evals/runners/compression_only.py:320-331 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/evals/runners/compression_only.py:155\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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3e433835d804df9fc8cd54f23653b0df7e0da94c1ecde70d7689c97f0c6543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): headroom/memory/adapters/graph.py:368-379 | headroom/memory/adapters/graph.py:450-461 | headroom/memory/adapters/sqlite_graph.py:545-556 \u2014 before extracting anything, compare \u0060headroom/memory/adapters/graph.py\u0060 and \u0060headroom/memory/adapters/sqlite_graph.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 41 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":"headroom/memory/adapters/graph.py"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5e52b1c55d7d4edd03411fac191cf3f6b0bae978c89c04cca13fe671e52b4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): headroom/proxy/handlers/anthropic.py:6480-6490 | headroom/proxy/handlers/batch.py:241-252 | headroom/proxy/handlers/batch.py:1224-1235 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/anthropic.py:6480\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. 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. Note first that the copies are not typed on the same thing: \u0060CCRToolInjector\u0060 names \u0060headroom.ccr\u0060 in one and \u0060headroom.ccr.tool_injection\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/anthropic.py:6490\u0060 calls \u0060debug\u0060 and \u0060headroom/proxy/handlers/batch.py:252\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6480}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a78ef413774cddef483bdbaa97008f9bd4f85515f24ef5ec44c0555df97724"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): headroom/storage/sqlite.py:241-252 | headroom/storage/sqlite.py:278-289 | headroom/storage/sqlite.py:316-327 \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":"headroom/storage/sqlite.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"6114d8298391ef207972e982c4f70ef78fccf50825e608cbefb39f8e4950f633"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/audit/maturation.py:78-89 | headroom/audit/maturation.py:194-205 \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":"headroom/audit/maturation.py"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"19aa40ffafed589332bb9c68ea1768b3d41174208e2c023ff35a833264aa45f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): headroom/cache/google.py:830-840 | headroom/image/compressor.py:254-265 \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":"headroom/cache/google.py"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce515b2d6a0fc98b116f78f97dd7620cac021695ca6047df1106731767c00d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): headroom/cli/memory.py:142-151 | headroom/cli/memory.py:1262-1273 \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 \u0060headroom/cli/memory.py:1262\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/cli/memory.py:1259\u0060 calls \u0060execute\u0060, \u0060fetchall\u0060 and \u0060headroom/cli/memory.py:141\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":"headroom/cli/memory.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"48943cc0763793f8ba44dc346f2667ab36a9a2dac26839d96728231be1203268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): headroom/cli/wrap.py:8813-8823 | headroom/cli/wrap.py:8833-8844 \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":"headroom/cli/wrap.py"},"region":{"startLine":8813}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe64b2fa02ad45da6ef513fd6067d50384ae21f5aa237a2ac7e837f2ef25fcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/evals/html_extraction.py:274-285 | headroom/evals/html_extraction.py:329-340 \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 \u0060headroom/evals/html_extraction.py:274\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":"headroom/evals/html_extraction.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cdf6731c3f423560a43a10ebb711835c99119c14f0a605c4a0f39b4657c5c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201312 lines \u00D7 2): headroom/integrations/strands/model.py:195-206 | headroom/integrations/strands/model.py:574-579 \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 \u0060headroom/integrations/strands/model.py:195\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. 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":"headroom/integrations/strands/model.py"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84d580dbf37801b7c8bb4665fcc30b5f996beb05be7a978ff8c2794275e5c62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): headroom/learn/plugins/claude.py:313-323 | headroom/learn/plugins/claude.py:337-348 \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":"headroom/learn/plugins/claude.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"8657737bf4497469526eff95482e4a17b19b0255148b5c7c91e6c914bf50142d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/proxy/ccr_session_tracker.py:28-39 | headroom/proxy/tool_injection_tracker.py:28-39 \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":"headroom/proxy/ccr_session_tracker.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c9f956e67a9be4ba6aacc33a83a0f2124f1c2c2811aac0f2a15d0dab8ab479"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/proxy/ccr_session_tracker.py:43-54 | headroom/proxy/tool_injection_tracker.py:45-56 \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":"headroom/proxy/ccr_session_tracker.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d587ca80eedef59fce21b12ee099e2352a4095ab1e171ebc5dcceea2a0768c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/proxy/handlers/batch.py:194-211 | headroom/proxy/handlers/batch.py:1193-1204 \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 \u0060headroom/proxy/handlers/batch.py:194\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/handlers/batch.py:212\u0060 calls \u0060items\u0060, \u0060get\u0060 and \u0060headroom/proxy/handlers/batch.py:1206\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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cae17f7d5a594ba5861a4c0383fbdfc04bc6b6e4fd3055355b6efb21a6df318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): headroom/proxy/handlers/gemini.py:627-636 | headroom/proxy/handlers/gemini.py:963-974 \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"38490e400062577c6983b536dbdf7a5888cd7e61e0bb437b145876c0ab673f65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/proxy/handlers/openai.py:6287-6300 | headroom/proxy/handlers/openai.py:6475-6486 \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 \u0060headroom/proxy/handlers/openai.py:6287\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e48e9e047b08c917919081d8a5d3ba768478607210c2cf98ca2cf13375b119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): headroom/proxy/helpers.py:594-605 | headroom/proxy/helpers.py:606-617 \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":"headroom/proxy/helpers.py"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9a00969240605df622c038d2e0effc124782647927cc052074e0d6b29bd674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): headroom/proxy/savings_tracker.py:189-200 | headroom/subscription/models.py:34-43 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4b164982ff7bc59b0ee16dbf234a598af4d25f7d86681ff3eb1686c0463b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): headroom/proxy/handlers/batch.py:127-137 | headroom/proxy/handlers/batch.py:552-562 | headroom/proxy/handlers/batch.py:703-713 | headroom/proxy/handlers/batch.py:912-922 | headroom/proxy/handlers/gemini.py:1517-1527 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/proxy/handlers/batch.py:127\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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"53330eb3f26c6b0d8cef2ab5457232a6130fbe4976804a710db5448d909f5fd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 3): headroom/memory/adapters/embedders.py:654-662 | headroom/memory/adapters/embedders.py:857-867 | headroom/memory/adapters/embedders.py:1091-1101 \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 \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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb9437e5a16b9baab6e1f680a3778ecb0f42c5c06efea2eeb4e304c3757b482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): headroom/backends/anyllm.py:230-240 | headroom/backends/anyllm.py:284-293 \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":"headroom/backends/anyllm.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c3c3541320aa2fdccfcdac9bbc5038bf55ce2894c0db42ca954a29f54cadb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): headroom/learn/plugins/codex.py:207-217 | headroom/learn/plugins/grok.py:112-122 \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":"headroom/learn/plugins/codex.py"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"942eec375db4a4ff637a3fcfba52926c5f4653f5489619d72737c2f5f7eef7c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): headroom/memory/adapters/hnsw.py:737-754 | headroom/memory/adapters/sqlite_vector.py:816-826 \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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e900fa2995346fa5382a59f8175c673c6e59a470cba963c9785da1b0ae36d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): headroom/memory/writers/base.py:163-171 | headroom/memory/writers/cursor_writer.py:123-133 \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 \u0060headroom/memory/writers/cursor_writer.py:123\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":"headroom/memory/writers/base.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2dc0b13d0276f74ca44dbfabcb4bcc79c799359adadffe649c62c2f5b003092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): headroom/proxy/handlers/gemini.py:1544-1552 | headroom/proxy/handlers/gemini.py:1641-1651 \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"3266a5cf4512de1444c55d2f980612e40fdd305f8811915e41bf69985ac0df90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): headroom/proxy/helpers.py:849-859 | headroom/proxy/helpers.py:883-893 \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":"headroom/proxy/helpers.py"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"74178e7b7ac888ae4d23d38aac530a2c52d8a9e550ae0dc1a1898f7f0bc2a14e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): headroom/proxy/tool_schema_compaction.py:267-277 | headroom/proxy/tool_schema_compaction.py:430-440 \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":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"00df063d7ad0a1628a07558e6d26e151fd25d5a0e2388dca09d950df6ddc0113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): headroom/transforms/content_router.py:4552-4562 | headroom/transforms/content_router.py:4971-4981 \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":"headroom/transforms/content_router.py"},"region":{"startLine":4552}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a82496488e7aeaf1654f0aebcbeff279174d9d15501f0a1034bf3026c800c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): headroom/cli/init.py:1228-1237 | headroom/cli/init.py:1243-1252 | headroom/cli/init.py:1258-1267 | headroom/cli/init.py:1273-1282 \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":"headroom/cli/init.py"},"region":{"startLine":1228}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d8d47f20c6bd88bc913377b655e68aa5a37ece55e61c62ac96d8fe23947933"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): headroom/evals/batch_compression_eval.py:1144-1153 | headroom/evals/core.py:325-334 | headroom/evals/runners/before_after.py:342-351 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/evals/batch_compression_eval.py:1155\u0060 calls \u0060compute_rouge_l\u0060 and \u0060headroom/evals/core.py:337\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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f206d0c00794493a8c66987c67f8ce95c32f4bd0f9c255b239371c16569082e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): headroom/evals/runners/compression_only.py:150-159 | headroom/evals/runners/compression_only.py:230-239 | headroom/evals/runners/compression_only.py:653-662 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060headroom/evals/runners/compression_only.py:150\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":"headroom/evals/runners/compression_only.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2125887fb7d63dc4c67806133767aaf16b4bb3fe15f9e55c8ff3da834fd17a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/cli/memory.py:602-611 | headroom/cli/memory.py:755-764 \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":"headroom/cli/memory.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ceb037483fc6f3dadf9c9d0eb1f116bbffd3d9e381bbfe21108633e12417986"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/cli/wrap.py:5228-5237 | headroom/cli/wrap.py:5275-5284 \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 \u0060headroom/cli/wrap.py:5228\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/cli/wrap.py:5238\u0060 calls \u0060echo\u0060, \u0060_proxy_status_line\u0060 and \u0060headroom/cli/wrap.py:5285\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":"headroom/cli/wrap.py"},"region":{"startLine":5228}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c435aa724c56eb5a91f4188e3c4d03e801703e60f634773380f504b424ec14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/integrations/langchain/chat_model.py:339-348 | headroom/integrations/langchain/chat_model.py:909-918 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e321da1c33c7c8d319f09237afb7851ae260832a90993c9b10a175b3e0e0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/memory/adapters/cache.py:120-132 | headroom/memory/adapters/cache.py:151-160 \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":"headroom/memory/adapters/cache.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"609f33123cbb76dcdbf5aa80be6e0c3b861209da714dffd7fea75d014681e1a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/providers/cohere.py:183-192 | headroom/providers/google.py:191-200 \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":"headroom/providers/cohere.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fff33dcf9f8eb485459e62aefd6f59874f1b50e4242d4d2e61c4516461cecb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/cost.py:1657-1666 | headroom/proxy/cost.py:1726-1735 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/proxy/cost.py:1723\u0060 calls \u0060startswith\u0060 and \u0060headroom/proxy/cost.py:1656\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":"headroom/proxy/cost.py"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1537d0724977109162c7528375f4c1339db6b5b4a6217254eba75e5239888e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:5759-5768 | headroom/proxy/handlers/gemini.py:1219-1228 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5759}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e341ed2ab5a51aae99a3dc2aaad9d0c06bc16bf14c5b258b6301a62c55beadf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:5759-5768 | headroom/proxy/handlers/streaming.py:1743-1752 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5759}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae0d278d104b92c62a63a2ddda1f2edcb8646c2542a7258056123d1f66fdbfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/handlers/openai.py:2195-2204 | headroom/proxy/handlers/openai.py:2239-2248 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2195}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b85b95ae520c764902d3a6fe20025ea5b8a838928231a7a60f0e13845f38a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/handlers/openai.py:5458-5467 | headroom/proxy/handlers/openai.py:6094-6103 \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 \u0060headroom/proxy/handlers/openai.py:5458\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ed328cff85208dadc739b0137f87dcb6673858a0a6e81eece139f83709cf95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): headroom/proxy/handlers/streaming.py:1061-1070 | headroom/proxy/handlers/streaming.py:2414-2423 \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 \u0060headroom/proxy/handlers/streaming.py:1061\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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94e25e3ec14b23aea208ec5e217e0ed2c59a3ae4513923ee22f9b6bec7a27f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): headroom/proxy/savings_tracker.py:865-873 | headroom/proxy/savings_tracker.py:899-908 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"a029018dfc93d306966e145c164b9fa6820d52d4901432b890e111e9826c77e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): headroom/memory/adapters/embedders.py:422-430 | headroom/memory/adapters/embedders.py:653-660 | headroom/memory/adapters/embedders.py:856-864 | headroom/memory/adapters/embedders.py:1090-1098 \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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f82dbc6684551bce02c690e50ae54c026d8fefbf9991cfd8ce1a5889f7139ad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): headroom/memory/bridge.py:467-475 | headroom/memory/bridge.py:502-509 | headroom/memory/bridge.py:631-639 \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":"headroom/memory/bridge.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"36da1fc22020eb8f54a9b1197e156b0ce25265984d75806f9acd5a0e3e0e4eac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/evals/batch_compression_eval.py:1134-1142 | headroom/evals/core.py:315-323 \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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b54fa72974e9a3d5d00985a232690869e3f0f916c02af92c602e1d4a589e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/evals/core.py:315-323 | headroom/evals/runners/before_after.py:326-337 \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":"headroom/evals/core.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32ce6c0d99fe5cf54769bf5e2a716fc5f5db24d02a75c952cb2829aa324fb87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/learn/analyzer.py:1154-1162 | headroom/learn/analyzer.py:1172-1180 \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 \u0060headroom/learn/analyzer.py:1154\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":"headroom/learn/analyzer.py"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6038c11df70c40c47c36349ea0f080ba739b51cd0c99bd8e941f008c0c2f92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/memory/adapters/sqlite_vector.py:312-320 | headroom/memory/adapters/sqlite_vector.py:326-334 \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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"631b95248d47400fa302e6867b215aa2f52f88166019baa995e00a1f85352cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/proxy/handlers/openai.py:4137-4147 | headroom/proxy/handlers/openai.py:6569-6577 \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 \u0060headroom/proxy/handlers/openai.py:4137\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4137}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02d3befb068b3e8741bfb80845bd4a5daaf3f36c83f8a6f98473a480bd77e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/proxy/handlers/openai.py:7519-7527 | headroom/proxy/handlers/openai.py:10222-10230 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7519}}}],"partialFingerprints":{"codehealthFindingId/v1":"91730c744da1d2b4977e6db9b09c45737e4bd3eac683421eee2ef36b915b8e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): headroom/proxy/savings_tracker.py:754-762 | headroom/proxy/savings_tracker.py:1930-1935 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bc16517630b641a8a7e8c808686861883fd734821537a3e1d48996d5ce8739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/proxy/savings_tracker.py:1593-1601 | headroom/proxy/savings_tracker.py:1633-1641 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"5320c0e5ab5e6a59821b34d554d9489ffa2bf42bd0522a1fb0103025a53e3ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/proxy/tool_schema_compaction.py:256-264 | headroom/proxy/tool_schema_compaction.py:419-427 \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":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eebabebc036608881697dd68b2a4a5e7832c36ba8e95d64370e0b6c32365729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): headroom/tokenizers/base.py:817-825 | headroom/tokenizers/tiktoken_counter.py:346-352 \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":"headroom/tokenizers/base.py"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"7472bc98b6f6b87888383982b1a858487f792c9b5e7935384bd82c12632e351d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/transforms/code_compressor.py:1117-1125 | headroom/transforms/code_compressor.py:1129-1137 \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":"headroom/transforms/code_compressor.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10570c5011a6583f0ea22cebf922a2e579d4fea973ec9372576e90a454ad20a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): headroom/transforms/read_lifecycle.py:221-229 | headroom/transforms/read_lifecycle.py:246-253 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/transforms/read_lifecycle.py:219\u0060 calls \u0060loads\u0060, \u0060get\u0060, \u0060except\u0060 and \u0060headroom/transforms/read_lifecycle.py:245\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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b990a85ec5ab769f59d98194f61f891cbbe752044b33885b33783b9abdb92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/transforms/read_maturation.py:298-306 | headroom/transforms/read_maturation.py:317-325 \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":"headroom/transforms/read_maturation.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"63142ce7119aadddc3fbb56ada99f3d159acfa0a1566a74034e374eab75af8d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): headroom/cache/base.py:330-337 | headroom/cache/openai.py:486-492 | headroom/cache/prefix_tracker.py:2146-2152 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/base.py"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d7480fd701ec780263f6d5e2bc7c46deeacdc353d7f9e24560105308695de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): headroom/integrations/langchain/chat_model.py:280-287 | headroom/integrations/langchain/chat_model.py:1027-1034 | headroom/integrations/langchain/memory.py:288-295 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"49568b6aaa017442130240974dfc9b76545cdf55096aba7008412a711a870654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): headroom/parser.py:637-644 | headroom/providers/cohere.py:188-195 | headroom/providers/google.py:196-203 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 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":"headroom/parser.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a244bd709e21521fe7b673bc76d0d3ad3d4e29dde79f458e35fd67ec30427cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/integrations/agno/providers.py:89-96 | headroom/integrations/strands/providers.py:62-69 \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":"headroom/integrations/agno/providers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e56d80e683b6b406487dc87eab5b13a3ee761f48aa00d62f4ca7d1d9904055"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/integrations/agno/providers.py:112-119 | headroom/integrations/strands/providers.py:85-92 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/integrations/agno/providers.py:121\u0060 calls \u0060debug\u0060, \u0060CohereProvider\u0060 and \u0060headroom/integrations/strands/providers.py:95\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":"headroom/integrations/agno/providers.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"b076dd46deb65705e62d22e4d3b7a3b585cb8fb816214aded34b672e9fd46106"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/memory/adapters/sqlite_vector.py:706-713 | headroom/memory/adapters/sqlite_vector.py:865-872 \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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fbd67cf1e2cf4477d1d40b124506ba778ce2eb6355403c43a84c9e6830e87b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/proxy/handlers/openai.py:12345-12352 | headroom/proxy/handlers/openai.py:12628-12635 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12345}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed69b059c06d8f227f31a0c7bdfa24c7e492717cf7383ff3d6334c478964aee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): headroom/integrations/langchain/chat_model.py:237-243 | headroom/integrations/langchain/chat_model.py:871-877 | headroom/integrations/langchain/chat_model.py:984-990 \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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd74eee14270c29a5a3361a0acb3c2728d53baea9c77351c522acaa0c4c8b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): headroom/memory/adapters/graph.py:235-241 | headroom/memory/adapters/graph.py:346-352 | headroom/memory/adapters/graph.py:436-442 \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":"headroom/memory/adapters/graph.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c0559f8d34f6927ace1de23174bebf93baea8d7adfb0ef6d28bc870e20ddab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): docker/differential-network-capture/mitm_capture.py:45-51 | headroom/capture/network_diff.py:97-103 \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":"docker/differential-network-capture/mitm_capture.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cc44f8cffe2bebc32542349ba0e2e8f28f95fc3f22f7475a47bdc973a63891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/audit/maturation.py:91-98 | headroom/audit/reads.py:193-200 \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":"headroom/audit/maturation.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3733cef91d306bb109babb2fd0bcd36c71fedf4552870b36873d7a1c9a66094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/evals/reports/report_card.py:223-229 | headroom/evals/reports/report_card.py:236-242 \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 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":"headroom/evals/reports/report_card.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d31f421049b23e40921917c742c55b0cc06ec5bda899793711d4d78df1469b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/memory/traffic_learner.py:1718-1725 | headroom/transforms/read_lifecycle.py:232-238 \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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1718}}}],"partialFingerprints":{"codehealthFindingId/v1":"0585ff58bd826f2a61dd5236c3c0fe0221d0838e09d2d185f80fbc56b0c5787d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/proxy/context_guard.py:452-458 | headroom/proxy/context_guard.py:493-499 \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":"headroom/proxy/context_guard.py"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a9dda0a8f3276d6d99b8353c253f59465d59d48c3525d7890c358d1da72086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/proxy/handlers/openai.py:1283-1289 | headroom/proxy/output_turn_policy.py:69-75 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1570c2629612113131570899ee2a0b3408c6b66afdaecb2cf557f1ae597389"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/proxy/handlers/openai.py:8771-8777 | headroom/proxy/handlers/openai.py:8787-8793 \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8771}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b0e4343b85f769f17eac149aa15a908549829320b5345d840fdf20d7ea35b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): headroom/proxy/savings_tracker.py:1932-1937 | headroom/proxy/savings_tracker.py:2379-2385 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"a828a9e9221b266ddef128d232b7effb0ed043c7c8abfe9cbcdbd5f524b04426"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/transforms/content_router.py:971-977 | headroom/transforms/content_router.py:1113-1119 \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":"headroom/transforms/content_router.py"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2b5be6a8fba10b0f48622663992cc1d7fe7aabab249e0032088ca36a76f48c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/transforms/kompress_compressor.py:2140-2146 | headroom/transforms/kompress_compressor.py:2570-2576 \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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bffc6071e51fe3cf5c876f34cbd7af97948f7fd2ccc93d8cc158d9a2432eb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/transforms/read_lifecycle.py:457-463 | headroom/transforms/read_lifecycle.py:511-517 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060headroom/transforms/read_lifecycle.py:509\u0060 calls \u0060get\u0060 and \u0060headroom/transforms/read_lifecycle.py:456\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":"headroom/transforms/read_lifecycle.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"332f76e2fd1eecd1fcb86bdab1510aa287bb5a7bd5b4ed8897db4f8866b9c252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): headroom/parser.py:637-642 | headroom/providers/cohere.py:188-193 | headroom/providers/google.py:196-201 | headroom/tokenizers/mistral.py:189-194 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/parser.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc86d980bc33b10248ccbcf4f7ccd96c183dd4a98529b6588a218ccfa3d075b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): headroom/learn/writer.py:661-666 | headroom/learn/writer.py:699-704 | headroom/learn/writer.py:729-734 \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":"headroom/learn/writer.py"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"a755fe4071f89649ebb4cabe53248cfd2e5f49272036ede38f666fb10d398473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): headroom/fsutil.py:99-104 | headroom/install/state.py:53-58 \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":"headroom/fsutil.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a6b2edd4d84d8cfff02a266007a59daa7ba6c59250d054c6196933c2b04f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): headroom/providers/codex/recovery.py:282-287 | headroom/providers/codex/recovery.py:292-297 \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":"headroom/providers/codex/recovery.py"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a56c0c62672b1c2368b84fa15c7f373d23da3b68753e2781159b55e0972028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): headroom/proxy/savings_tracker.py:759-763 | headroom/proxy/savings_tracker.py:1932-1936 | headroom/proxy/savings_tracker.py:2381-2385 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/proxy/savings_tracker.py:764\u0060 calls \u0060_coerce_int\u0060, \u0060get\u0060, \u0060_coerce_float\u0060 and \u0060headroom/proxy/savings_tracker.py:2386\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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"89bf2dd87f026528891cd772d57424b7f5891cdc2f22ce9cf192aec6a6225d13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/cli/evals.py:726-730 | headroom/cli/evals.py:755-759 \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":"headroom/cli/evals.py"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ee7dc3a52c5cc251cd3fe74b4a8d9a1dd0748c60e3973d22e73607333224f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/cli/init.py:313-320 | headroom/providers/codex/install.py:362-369 \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":"headroom/cli/init.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f7232b813944af351ee016416eb25922fb7dbd7bf12df07745cb8a820b295d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): headroom/cli/wrap.py:4381-4386 | headroom/providers/copilot/wrap.py:35-40 \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":"headroom/cli/wrap.py"},"region":{"startLine":4381}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a85b176dcbfa3ab69e5fd14301af8a56297fe5cef95b4375c9ad4173b8645b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/integrations/agno/model.py:771-775 | headroom/integrations/strands/model.py:581-585 \u2014 \u0060headroom/integrations/agno/model.py\u0060 and \u0060headroom/integrations/strands/model.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 113 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/integrations/agno/model.py:776\u0060 calls \u0060isinstance\u0060 and \u0060headroom/integrations/strands/model.py:586\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":"headroom/integrations/agno/model.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8a2d99976e99b3b08ffd2aef5bb251c318d3f905726249a59f89413c5503d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/integrations/agno/providers.py:95-99 | headroom/integrations/strands/providers.py:71-75 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060headroom/integrations/agno/providers.py:100\u0060 calls \u0060lower\u0060, \u0060debug\u0060, \u0060CohereProvider\u0060 and \u0060headroom/integrations/strands/providers.py:76\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":"headroom/integrations/agno/providers.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45fb3cfcaaef4d85caf7d19a7d81f98baa4bb9d45e7dbf23636524088e51d52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/learn/plugins/claude.py:602-606 | headroom/learn/plugins/claude.py:612-616 \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":"headroom/learn/plugins/claude.py"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8700e248f1c27cf663c8e53c3fd51c283057f2546fc9142939a48277892661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/proxy/handlers/openai.py:2904-2908 | headroom/proxy/handlers/openai.py:2946-2950 \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 \u0060headroom/proxy/handlers/openai.py:2904\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":2904}}}],"partialFingerprints":{"codehealthFindingId/v1":"0375ca1ed682db5d17eb199450a73d427917bca4c997ce4f1a1c4de074c6cb0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/proxy/savings_tracker.py:764-768 | headroom/proxy/savings_tracker.py:2383-2387 \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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf9fb910cb1c4cd2066e6c4977eb31bb225173a2df8c558c2f1d40fa9581ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/audit/maturation.py:60-66 | headroom/audit/reads.py:131-137 \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":"headroom/audit/maturation.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e33339296d1c33ecb5e7ed6d66ccb8a69c6bd4069b65c98fe3894dbe1ed189b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/cache/backends/redis.py:40-48 | headroom/cache/shared_sessions.py:89-97 \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":"headroom/cache/backends/redis.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbe3ab68f54892568f24da6a7a1bb830c3db517b0cb2719bbddde54cce8b5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/cli/wrap.py:723-730 | headroom/evals/suite_runner.py:264-271 \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":"headroom/cli/wrap.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d78c72da28f38e969d6a2d4550ce410d45d45d789c9ada4cc27cf9f8bc525a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): headroom/copilot_auth.py:993-998 | headroom/providers/grok/runtime.py:27-32 | headroom/proxy/handlers/openai.py:303-308 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060headers\u0060 to \u0060Mapping[str, str]\u0060 in one and \u0060dict[str, str]\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":"headroom/copilot_auth.py"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed06764d32a5d0838de6b5a62224705f560487b022e343e03d90d3bb5934473c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): headroom/evals/core.py:173-177 | headroom/evals/memory/runner.py:164-168 | headroom/evals/memory/runner_v2.py:271-275 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/core.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2b0bc67306ad901b829ec039a56079fe02ee5431d5297a6c3038b728095d24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/install/paths.py:202-213 | headroom/providers/grok_build/config.py:28-32 \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":"headroom/install/paths.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef0191debd3bd0cf5f42152f30709cc3672edfdd0c6922cb763e1ba01961a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): headroom/memory/adapters/fts5.py:281-295 | headroom/memory/adapters/sqlite.py:408-422 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/adapters/fts5.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff6b229318318ec34f38df151ffa38adbafb3e6b5d577bf5f7c764ea5c4328b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/pricing/counterfactual.py:137-143 | headroom/savings_ledger.py:176-182 \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":"headroom/pricing/counterfactual.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5283f53830c9dfc92a9563ee3d167d80f22895fc9c38d9f8d9143bd768482c6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): headroom/providers/anthropic.py:588-601 | headroom/providers/openai.py:385-393 | headroom/tokenizers/estimator.py:93-109 | headroom/tokenizers/tiktoken_counter.py:255-270 \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":"headroom/providers/anthropic.py"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce5db1a750617beadcde5d61f52f4e0b657e41b352aa86cbdf6d0e8663d981e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/proxy/cost.py:46-61 | headroom/proxy/savings_tracker.py:151-166 \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":"headroom/proxy/cost.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"45781279f8833d100eb8adbf139bb0b3dd0fdc76910d93d1d8b408a5ef31dfa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): headroom/release_version.py:148-156 | scripts/changelog-gen.py:72-81 \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":"headroom/release_version.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea58c474f60a84208bab6685a61b21285c316859d83e99b6c9864c3b1e053e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): headroom/cache/base.py:313-317 | headroom/integrations/_metrics.py:67-75 \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":"headroom/cache/base.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe17bfc3b0cdc091ae6ea9de8b142bfac1baa7478e1bef75019a36a09acff51d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): headroom/cache/prefix_tracker.py:166-178 | headroom/proxy/helpers.py:3558-3572 \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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d7df08e700abaa26d0920924df9bf7f43d59598c7c645332df51b7a48feb92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): headroom/observability/metrics.py:783-798 | headroom/observability/tracing.py:232-247 \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":"headroom/observability/metrics.py"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab9065e235f2eeffe109e7107cadf64e9cf3c6c2108265bf7b7bfa3d40d7f2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): headroom/providers/openai.py:396-403 | headroom/tokenizers/tiktoken_counter.py:273-281 \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":"headroom/providers/openai.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6afe3c7e24b5a6cc22da117b51af245e023352a6663b85264aa4133396ca0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): headroom/proxy/beta_header_policy.py:16-25 | headroom/proxy/internal_header_policy.py:73-82 | headroom/proxy/tool_injection_policy.py:25-34 | headroom/proxy/tool_injection_policy.py:38-52 \u2014 there are 4 copies across 3 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/beta_header_policy.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a821b59c1816285a9f27e3fc602f0b84c61b853d352406f5efe33c9b08d6b97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:400-413 | headroom/utils.py:430-445 \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 \u0060headroom/proxy/handlers/anthropic.py:400\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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"7acc74d9c980c5f13814493233eb3a831c97ed2a81799a5afc61353d6d116c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): headroom/proxy/handlers/anthropic.py:417-423 | headroom/utils.py:449-455 \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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"9797ebc3c8fb88ad085af1ea7472d5fb1bdd53508176eb23b9aab0f0e5cdb95a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201344 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:608-651 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:994-1030 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb0d3aabcbdf59d54e1958ff526f10c18f8ed6e7921f2a9230a34ca2af16603"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201343 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:154-196 | crates/headroom-proxy/src/compression/live_zone_responses.rs:165-204 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:154\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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"469b90ab6403f9010d7d010096c0107685e024011be28a5213ce4913683db3f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201341 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:333-373 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:299-335 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:333\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"61567040df0b924718838b33f3d0dce57866c7395155b0a1c6f84ec626f64663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201338 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:440-477 | crates/headroom-proxy/src/compression/live_zone_openai.rs:183-215 | crates/headroom-proxy/src/compression/live_zone_responses.rs:191-223 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:440\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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c483a0ee38ca3a781da15da148cf245a847573351e13b323a3731ce6d3f320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201335 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:297-331 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:264-297 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:297\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a7d519cf675f704874374b42a2b32601fada0af5eb014c721cccde8f74d787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201332 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/crusher.rs:158-181 | crates/headroom-core/src/transforms/smart_crusher/crusher.rs:398-429 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/crusher.rs:158\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef806072cabc470acd60de4767f03bc5ead8fd73657ec3d30167d42b74337bee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201329 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:1351-1379 | crates/headroom-core/src/transforms/live_zone.rs:2425-2447 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:1351\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ede039a5477c3985a60d17d308af0cb947fbf17c4de491049b900cbae95282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201329 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:529-557 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:918-941 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:529\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62fb7231178aad6feae3194c9e978366d9fb86a6c5184af014d90e6ed4d990c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:375-402 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:337-364 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:375\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade0f3de0d9939aceb784cd746265bcefcb7f8c5fea1fd7c0ef6a8ee3a0e2dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201327 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:147-173 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:132-148 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:147\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a0475480847b8f678ea30914a53667cfb3fcc8ec6a79db3b3976d80bc66ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201325 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:2323-2347 | crates/headroom-core/src/transforms/live_zone.rs:2834-2857 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:2323\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"057d365f04887f415f7d69959094d0254760a3e9c1ce9ccad1ea3b22d56943c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201324 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:416-439 | crates/headroom-proxy/src/compression/live_zone_openai.rs:167-181 | crates/headroom-proxy/src/compression/live_zone_responses.rs:178-189 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:416\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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8394235e44f9520bd31d87978a9ee75fe30e94eb61e47e1552cfc96b4594cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): crates/headroom-core/src/transforms/code_compressor.rs:1266-1288 | crates/headroom-core/src/transforms/code_compressor.rs:1294-1316 \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 \u0060crates/headroom-core/src/transforms/code_compressor.rs:1266\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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57dccba1d65a13142eb10c697f009619456b490a7d6810b3774e920ac159cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:505-527 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:898-916 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:505\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c42ada054dcef1ea728f93108231bb37d2546e374a7066c127ac0abff08c2ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:401-422 | crates/headroom-proxy/src/compression/live_zone_responses.rs:409-430 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:401\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0bee2907f1f3a1d733d57057459b53e483bc37857df6748bd8917d02b0c095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:182-201 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:157-173 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:182\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00a074f62acd14842df76f216602341779f70c06ff94346c11aa143cd699d2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201320 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:430-449 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:426-438 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:430\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5258405841c6db429f3d901d626bb03dd009f89a588446c78da6a94563e1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:379-398 | crates/headroom-proxy/src/compression/live_zone_responses.rs:387-406 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:379\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76b0708fce6ceacc4e877e71568855d768dcc9ac708cdae92797112d1e41f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201319 lines \u00D7 3): crates/headroom-core/src/transforms/live_zone.rs:1078-1096 | crates/headroom-core/src/transforms/live_zone.rs:2326-2335 | crates/headroom-core/src/transforms/live_zone.rs:2836-2845 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/headroom-core/src/transforms/live_zone.rs:1078\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f609010ca6ab3215b9565ba3cba87613602f2cfe03865dbb4f3ae810d12b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:359-377 | crates/headroom-proxy/src/compression/live_zone_responses.rs:367-385 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:359\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d52716838ca377be62c18703a6a060a7a2812c9bdbe685d619562ef33d9d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): crates/headroom-core/src/transforms/smart_crusher/planning.rs:220-237 | crates/headroom-core/src/transforms/smart_crusher/planning.rs:417-434 | crates/headroom-core/src/transforms/smart_crusher/planning.rs:477-494 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/headroom-core/src/transforms/smart_crusher/planning.rs:220\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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, \u0060crates/headroom-core/src/transforms/smart_crusher/planning.rs:474\u0060 calls \u0060apply_constraints\u0060 and \u0060crates/headroom-core/src/transforms/smart_crusher/planning.rs:217\u0060 does not \u2014 after which the two agree again for 4 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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a895f3e02d92ceeff9a3241aae9bf9b057b0ba244b8b1a20a33149c5aa40b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:260-277 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:227-244 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:260\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f382638677b055022688ee6badd288912dc42c01f348bc66c72072dc2f7c27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/headroom-core/src/transforms/diff_compressor.rs:883-899 | crates/headroom-core/src/transforms/search_compressor.rs:85-101 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33d912961e72f7c06d4bb224bf9f8fc519950ddca9527d75eda6fa42ca70a80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:2483-2499 | crates/headroom-core/src/transforms/live_zone.rs:3009-3023 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:2483\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9fe4596e0b0a14638126ab9dd0cf5e39d17239bc6a9bdfb179ebdb69098bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:279-295 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:246-262 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:279\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2562ffc90c08967d3d46d28c773ae1ff38f568012465c680e77097c4714494ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:404-420 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:366-382 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:404\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f08a94112b9fd479d869bdbefad919b9e34f0e03edd469a621a59c96faec48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:181-197 | crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:214-230 \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 \u0060crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:181\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, \u0060crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:231\u0060 calls \u0060Some\u0060, \u0060get\u0060 and \u0060crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:198\u0060 does not \u2014 after which the two agree again for 4 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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"adee972e3297ad50b12dc42b66a91d7789e98cab33ea49b08cee654f5e7f4d20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): crates/headroom-proxy/src/handlers/chat_completions.rs:84-100 | crates/headroom-proxy/src/handlers/responses.rs:155-171 \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 \u0060crates/headroom-proxy/src/handlers/chat_completions.rs:84\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-proxy/src/handlers/chat_completions.rs"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4abe2e76e84b0b8b86650a8af9b13b17b444a859c506513a428a5552c6e88dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): crates/headroom-proxy/src/main.rs:221-237 | crates/headroom-simulators/src/main.rs:53-68 \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":"crates/headroom-proxy/src/main.rs"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"5111efdace833b101a3d4e4a3a569daff7fff7e669ceabd9363ae7b136bfb49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:690-705 | crates/headroom-proxy/src/compression/live_zone_openai.rs:412-425 | crates/headroom-proxy/src/compression/live_zone_responses.rs:420-433 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:690\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c585de914c6f1245dd890d7e768a8873bc1d5c1652980b3583ec8e4012efb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/headroom-proxy/src/bedrock/eventstream.rs:396-411 | crates/headroom-proxy/src/bedrock/eventstream.rs:422-437 \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":"crates/headroom-proxy/src/bedrock/eventstream.rs"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60bcf5ba66fb4b0539bb6e710575809849081674877b057f790fe040f5f003c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:586-601 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:966-981 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b070d3bddfc6f26982e1d94a13ced9e2a8dfb6250265603f1821a707dea55e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:230-245 | crates/headroom-proxy/src/compression/live_zone_responses.rs:238-253 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:230\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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad92b419c493b0438b8acd38131522995d300000a66da36ef9b0e86669b1dd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:1140-1155 | crates/headroom-proxy/src/proxy.rs:1161-1175 \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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd96b8ae57437097a47f2db621d65d3f54de2e62322e12ac022495d4a1a12ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:224-238 | crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:462-476 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:224\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fmt\u0060 to \u0060\u0026CsvSchemaFormatter\u0060 in one and \u0060\u0026MarkdownKvFormatter\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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c09304471ba267b50054a73e8a4dc64819751e6cc1128d1c1d5cd2fdc4f5971"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:427-441 | crates/headroom-proxy/src/compression/live_zone_responses.rs:435-449 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:427\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a3376cb2af1877968f1a47ef147f726ec6ee79d5fe50c1399880ce0d816e37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:1433-1446 | crates/headroom-core/src/transforms/live_zone.rs:1456-1469 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:1433\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f4286008da1da28ebefaef557caccdc719fb2c05b9c5168b9119070e84ed18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/crusher.rs:564-577 | crates/headroom-core/src/transforms/smart_crusher/crusher.rs:664-677 \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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1982c8262c1d0e676e2dc197dcbf25c366016cb1897bdf24be4555d7a4bd49a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/crushers.rs:160-173 | crates/headroom-core/src/transforms/smart_crusher/crushers.rs:316-329 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/crushers.rs:160\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":"crates/headroom-core/src/transforms/smart_crusher/crushers.rs"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cf02a0f8b3e7f909319b84d1d7125be0d0fa98316a1f351e5f88c5ff67c71c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:251-264 | crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:275-288 \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 \u0060crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs:251\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":"crates/headroom-proxy/src/cache_stabilization/volatile_detector.rs"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"838aee4b9c06c28884366753441250f881a2910f01035892b6420a39c9712204"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:265-278 | crates/headroom-proxy/src/compression/live_zone_responses.rs:273-286 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:265\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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5e0d727236869c64bc927ea91931f09126b769ee4ccc05b579aaed321a3e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:664-676 | crates/headroom-proxy/src/compression/live_zone_openai.rs:387-399 | crates/headroom-proxy/src/compression/live_zone_responses.rs:395-407 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:664\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, \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:386\u0060 calls \u0060clone\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:662\u0060 does not \u2014 after which the two agree again for 4 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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e58bb97dcfeab5f88bbcd8d307e02954bfb652a32281ae29c654aa34ce79ba6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/headroom-core/src/transforms/code_compressor.rs:1530-1542 | crates/headroom-core/src/transforms/code_compressor.rs:1736-1748 \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":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd197da3f0ce7f5e4a9cca0699536b3adcbf0afde8da2eae1031662146f8bd0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:960-972 | crates/headroom-core/src/transforms/live_zone.rs:2241-2253 \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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"86675e4436fdf3da44beb5b5a095d4dc8cad918c335fe0a6d379ff0461724cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): crates/headroom-core/src/transforms/pipeline/offloads/log_offload.rs:159-169 | crates/headroom-core/src/transforms/pipeline/offloads/search_offload.rs:127-139 \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 \u0060crates/headroom-core/src/transforms/pipeline/offloads/log_offload.rs:159\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/transforms/pipeline/offloads/log_offload.rs"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f00fa08dd6b5489941200e7eb5cc8f5d66d573755d16afb0d9a2bb89dc6ab56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:1176-1188 | crates/headroom-proxy/src/vertex/raw_predict.rs:363-372 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/proxy.rs\u0060 and \u0060crates/headroom-proxy/src/vertex/raw_predict.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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 \u0060crates/headroom-proxy/src/proxy.rs:1176\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/headroom-proxy/src/vertex/raw_predict.rs:373\u0060 calls \u0060filter_response_headers\u0060, \u0060headers\u0060 and \u0060crates/headroom-proxy/src/proxy.rs:1197\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1176}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ecfe41d74b52ac7b3d5e6376fa52cca1f9845a40a879136e0d60f177680ce1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:486-497 | crates/headroom-core/src/transforms/smart_crusher/orchestration.rs:262-273 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:486\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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9e4e6444c0a4d9e99f3e78f44196127134fe32f74c140288f941dadf4ba759"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:243-254 | crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:481-492 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:243\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec574c0b3c2803387af56b758dade61bef3de37e4dcc05928bfe38d8c12638e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/planning.rs:314-325 | crates/headroom-core/src/transforms/smart_crusher/planning.rs:529-540 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/headroom-core/src/transforms/smart_crusher/planning.rs:313\u0060 calls \u0060is_empty\u0060 and \u0060crates/headroom-core/src/transforms/smart_crusher/planning.rs:526\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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a76ccec6fe5582ed4356e849e4a74bc1c38e33b03d6c10510aca6004d2ade6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): crates/headroom-proxy/src/handlers/chat_completions.rs:71-82 | crates/headroom-proxy/src/handlers/responses.rs:145-153 \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 \u0060crates/headroom-proxy/src/handlers/chat_completions.rs:71\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":"crates/headroom-proxy/src/handlers/chat_completions.rs"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"981da09971deb560287ead2a957c45c4278fe24c5fbf5d75541af97e0fd2bf2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/headroom-core/src/hf_cache.rs:340-350 | crates/headroom-core/src/hf_cache.rs:358-368 \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 \u0060crates/headroom-core/src/hf_cache.rs:340\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/hf_cache.rs"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"4944bc47c0b9cb8c744c74526408aa827fc00299184fac3070d2e125d82713fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/headroom-core/src/transforms/content_detector.rs:579-589 | crates/headroom-core/src/transforms/content_detector.rs:622-632 \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":"crates/headroom-core/src/transforms/content_detector.rs"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"21048b7ece9e6f941a9801bc79d4d4097903ac1dab29ef26ffea753333faa2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:2294-2304 | crates/headroom-core/src/transforms/live_zone.rs:2789-2798 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:2294\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53c8c85e3b165d4ef169f05fce9a5efac88b8e98265c191c8bbaa8fb781486f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:798-808 | crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:824-834 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:798\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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a767f73854f9516a7020e271e6a9873b8fa4d30ba83cf5de9d06053ceecb61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/headroom-core/src/transforms/diff_compressor.rs:1449-1458 | crates/headroom-core/src/transforms/log_compressor.rs:1685-1694 | crates/headroom-core/src/transforms/search_compressor.rs:990-999 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1449}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bb79bbb509ecf44273efd2f8261252d4629d156e6e54113ffd1a3a51600850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/headroom-proxy/src/sse/openai_responses.rs:319-328 | crates/headroom-proxy/src/sse/openai_responses.rs:352-361 | crates/headroom-proxy/src/sse/openai_responses.rs:389-398 \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":"crates/headroom-proxy/src/sse/openai_responses.rs"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ad3c92865670c7907baad783b938c32add0ec91a12e99b0cafbea0d2b2b7da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:1389-1398 | crates/headroom-core/src/transforms/live_zone.rs:2456-2464 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:1389\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060crates/headroom-core/src/transforms/live_zone.rs:1400\u0060 calls \u0060bytes_offset_of\u0060, \u0060get\u0060, \u0060ok_or\u0060 and \u0060crates/headroom-core/src/transforms/live_zone.rs:2465\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"938512334f320ed7f0d5d90447a286c79e70397ed73ee72faafcdf14a636f8d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-core/src/transforms/pipeline/offloads/diff_noise.rs:327-336 | crates/headroom-core/src/transforms/pipeline/offloads/json_offload.rs:217-226 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/pipeline/offloads/diff_noise.rs"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"375eaba47d2fb5bc91384acb649906ecdbff92725a97dbad007b21254c7c37d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/planning.rs:207-216 | crates/headroom-core/src/transforms/smart_crusher/planning.rs:462-471 \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":"crates/headroom-core/src/transforms/smart_crusher/planning.rs"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"794a273abcf801fbbbcc55a97fd3a204dd1f685c4d3ad7322654a14c3031edae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:662-671 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:868-877 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:662\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"154c7925e0569b5ad58b71e0885e59a6331c628716edb8fddfb9bbf8e47e985c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-proxy/src/main.rs:181-190 | crates/headroom-simulators/src/main.rs:41-50 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/main.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98bb6a2d22e169a8bf2ad7dedef27bb6a367c5a70e386af55c9d4cfcb51f654"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): crates/headroom-proxy/src/proxy.rs:1572-1580 | crates/headroom-proxy/src/proxy.rs:1649-1657 | crates/headroom-proxy/src/proxy.rs:1765-1773 | crates/headroom-proxy/src/vertex/raw_predict.rs:493-501 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/proxy.rs\u0060 and \u0060crates/headroom-proxy/src/vertex/raw_predict.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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 \u0060crates/headroom-proxy/src/proxy.rs:1572\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6077867af8296e924e4d6c923311eb40959b0ae0f713a432c8e760a619d735e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/headroom-core/src/signals/keyword_detector.rs:144-152 | crates/headroom-core/src/transforms/log_compressor.rs:358-366 \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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27982ea3ee3f1bfa0999604104e1ab6013c7a4ddbd03792c60910652fed6eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/headroom-core/src/transforms/live_zone.rs:2470-2479 | crates/headroom-core/src/transforms/live_zone.rs:2997-3005 \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 \u0060crates/headroom-core/src/transforms/live_zone.rs:2470\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f776b7024e7824691bb541491742b83be187214f4863d167e28f06ab99efb1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:602-612 | crates/headroom-proxy/src/websocket.rs:49-57 \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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a45ce0545936cec33294ff0ef26912f40d406feba0e07052df6eb23a78bbee4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:1334-1342 | crates/headroom-proxy/src/vertex/raw_predict.rs:415-421 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/proxy.rs\u0060 and \u0060crates/headroom-proxy/src/vertex/raw_predict.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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 \u0060crates/headroom-proxy/src/proxy.rs:1334\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae456425fb4ab310fa65fd22ae0f4e1b40ff1980fff10ea3c4777cffad4dfbd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/headroom-core/src/transforms/live_zone.rs:1349-1357 | crates/headroom-core/src/transforms/live_zone.rs:2373-2381 | crates/headroom-core/src/transforms/live_zone.rs:2423-2431 \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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4e4f5bb268a6144b8a14824a80043c27cf102ae942e683cc6702fb94d4dfdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/headroom-core/src/transforms/live_zone.rs:1371-1379 | crates/headroom-core/src/transforms/live_zone.rs:2440-2447 | crates/headroom-core/src/transforms/live_zone.rs:2954-2961 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060crates/headroom-core/src/transforms/live_zone.rs:1371\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0de66452026ec220407038fc4ff8afa1c97fbc97594717447726b9767323e115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:802-809 | crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:811-818 | crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:828-835 \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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e5a07017bb5d4d3b3ac677d86d903dbab5036f59c846aea39a1cf40f3d96559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/headroom-core/src/transforms/code_compressor.rs:1828-1836 | crates/headroom-core/src/transforms/code_compressor.rs:1841-1848 \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 \u0060crates/headroom-core/src/transforms/code_compressor.rs: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/code_compressor.rs"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"6246d2359eac039ba7c4f4a24ec2218e95e380ea874f56e9c4e6304e9a73d66a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:276-283 | crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:519-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 \u0060crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs:276\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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060fmt\u0060 to \u0060\u0026CsvSchemaFormatter\u0060 in one and \u0060\u0026MarkdownKvFormatter\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":"crates/headroom-core/src/transforms/smart_crusher/compaction/formatter.rs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"744f7a44a72ea3e7acfe9050b1493d5863ae09c2f3096743f21427cb34374e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/headroom-core/src/transforms/live_zone.rs:1367-1373 | crates/headroom-core/src/transforms/live_zone.rs:2384-2390 | crates/headroom-core/src/transforms/live_zone.rs:2436-2442 \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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1367}}}],"partialFingerprints":{"codehealthFindingId/v1":"475f9e25b154dbe63a0e3f7e4bd26d333242b7c8fcfdcfcf7afc7fb0b1a6b40d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/headroom-core/src/transforms/live_zone.rs:1448-1454 | crates/headroom-core/src/transforms/live_zone.rs:2474-2480 | crates/headroom-core/src/transforms/live_zone.rs:3000-3006 \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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3a3e23b003b9ed7e3b6b0922e59288e6f16e09a9ccd50315f9646975ffe3da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/headroom-proxy/src/websocket.rs:181-187 | crates/headroom-proxy/src/websocket.rs:200-206 \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 \u0060crates/headroom-proxy/src/websocket.rs:181\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":"crates/headroom-proxy/src/websocket.rs"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"7170db1098e89409ade0e8c811d4ada60b10a770337dfc701e103ef7b301d860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/crusher.rs:641-646 | crates/headroom-core/src/transforms/smart_crusher/crusher.rs:650-656 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/crusher.rs:641\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"8effd04d97f278a677eeca702c756399a2b257e638a156a6e596a47d56aff9f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:448-453 | crates/headroom-proxy/src/vertex/raw_predict.rs:436-441 \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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:448\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8678fec4c03f7888764a942363c22c7f9d8f022b607609d5077274ef68754dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:462-468 | crates/headroom-proxy/src/proxy.rs:1428-1432 \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 \u0060crates/headroom-proxy/src/proxy.rs:462\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060headers\u0060 to \u0060\u0026HeaderMap\u0060 in one and \u0060\u0026http::HeaderMap\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95404a2cc6c8b033b60fb240aea5add8be444b2419e173467275b86e8f907e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/headroom-core/src/signals/keyword_detector.rs:306-310 | crates/headroom-core/src/transforms/log_compressor.rs:388-392 \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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e0f983183f5b8342a4f924be777ea93d778d54d5fd98adbf5d5e29754055f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/headroom-core/src/tokenizer/estimator.rs:19-31 | crates/headroom-core/src/transforms/text_crusher/crusher.rs:36-48 \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":"crates/headroom-core/src/tokenizer/estimator.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"846ca5839dd3e956b6c36be8875a285b396f7fbf3bb601e477b2343ef7d4cbb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:581-590 | crates/headroom-proxy/src/compression/live_zone_openai.rs:319-328 | crates/headroom-proxy/src/compression/live_zone_responses.rs:327-336 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab2e8682d84215899f39d346bd6c27b87ddd11a871c12f3b0223c6babee5824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): crates/headroom-proxy/src/sse/anthropic.rs:407-415 | crates/headroom-proxy/src/sse/openai_chat.rs:223-231 | crates/headroom-proxy/src/sse/openai_responses.rs:450-458 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/sse/anthropic.rs"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e3eb942ae158fc4235441ae1b09a0169e8142e79d8e6def47a60dcfa04a08d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:79-93 | crates/headroom-proxy/src/compression/live_zone_responses.rs:79-94 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_responses.rs\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 278 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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:79\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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffad7557cbc40246a3fac8cecfbba29080ad15e6edc8bc8fd4f2829cfd64297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:1344-1354 | crates/headroom-proxy/src/vertex/raw_predict.rs:423-437 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/proxy.rs\u0060 and \u0060crates/headroom-proxy/src/vertex/raw_predict.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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 \u0060crates/headroom-proxy/src/proxy.rs:1344\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"059a5ace5e6f34b4eb6eefce7658332efb95e55bf18de02dfd4e1c5f5da1e4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): crates/headroom-proxy/src/proxy.rs:1687-1700 | crates/headroom-proxy/src/proxy.rs:1808-1822 \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 \u0060crates/headroom-proxy/src/proxy.rs:1687\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":"crates/headroom-proxy/src/proxy.rs"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce391f8e261b8077160b20af736f17f38ff91ec0838b7e08c66ea853ddf182b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:239-252 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:207-219 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d420f29311d3c9e8be81686c9a79a4262fd5b00b72acea98ccf3fbb95c09cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): crates/headroom-proxy/src/compression/live_zone_anthropic.rs:615-626 | crates/headroom-proxy/src/compression/live_zone_openai.rs:346-357 | crates/headroom-proxy/src/compression/live_zone_responses.rs:354-365 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs\u0060 and \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060crates/headroom-proxy/src/compression/live_zone_anthropic.rs:615\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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbfee419b1f8ca0fe1f0619c49acfb67de702a426a36cebcbd14d8615c56943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-proxy/src/compression/live_zone_openai.rs:66-77 | crates/headroom-proxy/src/compression/live_zone_openai.rs:107-118 \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 \u0060crates/headroom-proxy/src/compression/live_zone_openai.rs:66\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":"crates/headroom-proxy/src/compression/live_zone_openai.rs"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f02b7cec7a43d905d6b50d0dfb9bea241ea4e41e38b873aeb087e7755726cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke.rs:459-470 | crates/headroom-proxy/src/bedrock/invoke_streaming.rs:847-858 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/bedrock/invoke.rs\u0060 and \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 371 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 \u0060crates/headroom-proxy/src/bedrock/invoke.rs:459\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb5c15c936dce0b7bc250f8dfe00b455baba594091dbbf2ee0cf72b3b97abd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): crates/headroom-core/src/transforms/pipeline/orchestrator.rs:174-185 | crates/headroom-core/src/transforms/pipeline/orchestrator.rs:234-245 \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 \u0060crates/headroom-core/src/transforms/pipeline/orchestrator.rs:174\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060crates/headroom-core/src/transforms/pipeline/orchestrator.rs:171\u0060 calls \u0060push\u0060 and \u0060crates/headroom-core/src/transforms/pipeline/orchestrator.rs:231\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":"crates/headroom-core/src/transforms/pipeline/orchestrator.rs"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"636bfaed13d1a12846ba7234c08c269400b661f61e4a8fd4ae95d13d9060b00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-core/src/transforms/safety.rs:60-69 | crates/headroom-core/src/transforms/safety.rs:79-88 \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 \u0060crates/headroom-core/src/transforms/safety.rs:60\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":"crates/headroom-core/src/transforms/safety.rs"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1334082fa29238d4dda4624d66fc2ae17d629e22dcbca65e783cdf464070dbfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-core/src/ccr/backends/redis.rs:95-104 | crates/headroom-core/src/ccr/backends/redis.rs:137-146 \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 \u0060crates/headroom-core/src/ccr/backends/redis.rs:95\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":"crates/headroom-core/src/ccr/backends/redis.rs"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"de97cdba20cce9e66733fc76c255d2cb0b706f564a3f86edea87dd82cef0bee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): crates/headroom-proxy/src/observability/capture.rs:229-238 | crates/headroom-proxy/src/observability/capture.rs:246-255 \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 \u0060crates/headroom-proxy/src/observability/capture.rs:229\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":"crates/headroom-proxy/src/observability/capture.rs"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6f5a76034ff35239185ad5d67d59fa6a4c2dce94c334db1498a014122a9d65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): crates/headroom-proxy/src/bedrock/invoke_streaming.rs:797-805 | crates/headroom-proxy/src/vertex/raw_predict.rs:525-533 \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 \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs:797\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9fa0f8c1be3ebdb760a4a14e1412260dbdd657d29fa49c19ad0ad01e1b319b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:525-531 | crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:536-542 \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 \u0060crates/headroom-core/src/transforms/smart_crusher/analyzer.rs:525\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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86e939f226303fd295705aaf7e91062ec0202ceddb660f809e85583769510e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): crates/headroom-proxy/src/bedrock/invoke_streaming.rs:793-799 | crates/headroom-proxy/src/proxy.rs:1625-1631 | crates/headroom-proxy/src/vertex/raw_predict.rs:521-527 \u2014 before extracting anything, compare \u0060crates/headroom-proxy/src/proxy.rs\u0060 and \u0060crates/headroom-proxy/src/vertex/raw_predict.rs\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 53 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 \u0060crates/headroom-proxy/src/bedrock/invoke_streaming.rs:793\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, 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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd238d9e7a3f8e61ccbdbef1ca4892fda264be24269ddcb4a126185a91386c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): crates/headroom-proxy/src/sse/anthropic.rs:232-236 | crates/headroom-proxy/src/sse/anthropic.rs:266-272 \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 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":"crates/headroom-proxy/src/sse/anthropic.rs"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe74cf82c37d996075b1a1a360f637f6d075d99ede582ac1fec3f1ddd1da40a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/version-sync.py:41-47 | scripts/version-sync.py:51-57 | scripts/version-sync.py:122-133 | scripts/version-sync.py:137-148 \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":"scripts/version-sync.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e062873c447b4e78c13a162dd3293872b19bffcfcaaeadae44c37b53c8a8ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (161 corresponding lines): examples/strands_bedrock_demo.py:515-689 | examples/strands_bedrock_demo.py:698-858 \u2014 These two members are one piece of code written twice and then edited apart: 161 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":"examples/strands_bedrock_demo.py"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"8123ae36ab006094d6810efafc1f8e6bc5972664821dc29ea35bbbfa4ec2734e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (84 corresponding lines): examples/langchain_demo/run_comparison.py:155-238 | examples/langchain_demo/run_comparison.py:242-339 \u2014 These two members are one piece of code written twice and then edited apart: 84 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":"examples/langchain_demo/run_comparison.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf323a3cb57abf39cca82ac34e66d59df3616b62b89cb536cd997b4e5e14f46f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): examples/strands_via_proxy_demo.py:91-119 | examples/vertex_genai_sdk_demo.py:74-89 \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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d857e969f435a740474d59cc079a7ec7296aeb6732337888887dab327fe4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): examples/strands_via_proxy_demo.py:123-137 | examples/vertex_gemini_benchmark/benchmark.py:137-151 | examples/vertex_genai_sdk_demo.py:93-107 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"921c40b5eca8eb3e4ce12e9d3c3598c2af5a67e2f833ceb104310769dcafd68a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): scripts/version-sync.py:61-74 | scripts/version-sync.py:78-96 \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":"scripts/version-sync.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08e684e1b4bf8afddd4838b83c5a4c47cda18850a466132ff055f2357e0af76"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): examples/strands_via_proxy_demo.py:581-586 | examples/vertex_genai_sdk_demo.py:204-209 \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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1840040dc63263ca46ec7e4cd34d321d7d9e3389d20c936227d4abeefa5e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): examples/langchain_demo/mock_tools.py:53-80 | examples/strands_bedrock_demo.py:215-264 \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":"examples/strands_bedrock_demo.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbfa327407d7a440c693ce8ee07376536ca3c431be11acf817ab611b996d3a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): scripts/build_python_release_smoke.py:52-53 | scripts/release_smoke_all.py:43-44 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"scripts/build_python_release_smoke.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"385d9218a0f2f4e822055d675ecac59474c12a267537ef57918bb0049dbf1b9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): scripts/build_python_release_smoke.py:40-43 | scripts/release_smoke_all.py:36-39 \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":"scripts/build_python_release_smoke.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e21e2f99f577291591b22ff5262bd05dddadc7b137472a10f74cde25cca44bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): scripts/build_python_release_smoke.py:57-59 | scripts/release_smoke_all.py:48-50 \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":"scripts/build_python_release_smoke.py"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5861dc856d63c615eeef1ba9873d713b4992a8931cbd7ceaa0fb378446b2ae19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (60\u201363 lines \u00D7 2): examples/langchain_demo/run_comparison.py:164-226 | examples/langchain_demo/run_comparison.py:265-324 \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 \u0060examples/langchain_demo/run_comparison.py:164\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":"examples/langchain_demo/run_comparison.py"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0bd58807afbb05c639044dc5488404b9bfdd92fc3539635a03fa4e18b36d74e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/strands_bedrock_demo.py:666-689 | examples/strands_bedrock_demo.py:835-858 \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":"examples/strands_bedrock_demo.py"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd16f1b1898573a9a0e202d386daded96067394bc96d128decf6fa730094324e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201323 lines \u00D7 2): examples/anthropic_create_stream_local.py:92-110 | examples/cache_optimizer_config_local.py:45-67 \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":"examples/anthropic_create_stream_local.py"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"170392a5bb65c2ba7003587bd1dfe6b4e934aecd4ddb8694cfab8f05616824ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): examples/strands_via_proxy_demo.py:123-135 | examples/vertex_gemini_benchmark/benchmark.py:137-149 | examples/vertex_genai_sdk_demo.py:93-105 \u2014 before extracting anything, compare \u0060examples/strands_via_proxy_demo.py\u0060 and \u0060examples/vertex_genai_sdk_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060examples/strands_via_proxy_demo.py:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060timeout_s\u0060 to \u0060float = 30.0\u0060 in one and \u0060float = 35.0\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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45fd33f444e56fcbe78426253f87cbf7910d03401451739d1d536b231f95a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 4): scripts/version-sync.py:41-47 | scripts/version-sync.py:51-57 | scripts/version-sync.py:122-133 | scripts/version-sync.py:137-148 \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":"scripts/version-sync.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f346c81be52a133809c6a7b1937f5b70ea2efa273a94097101f94238c0a4f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): examples/strands_via_proxy_demo.py:108-119 | examples/vertex_genai_sdk_demo.py:79-89 \u2014 before extracting anything, compare \u0060examples/strands_via_proxy_demo.py\u0060 and \u0060examples/vertex_genai_sdk_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060examples/strands_via_proxy_demo.py:108\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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3fe5c1b63697b6de076990ff41d74a8fbd11926c1754bf79d83f6a1844c200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/langchain_demo/show_compression.py:48-58 | examples/langchain_demo/show_compression.py:111-121 \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":"examples/langchain_demo/show_compression.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"145c26a0d697bc3d75a7e9afb3ea0da1da4cbcf4234b3f3f7cecde16c387172b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): scripts/build_python_release_smoke.py:194-204 | scripts/release_smoke_all.py:54-60 \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 \u0060scripts/build_python_release_smoke.py:194\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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060scripts/release_smoke_all.py:60\u0060 calls \u0060add_argument\u0060, \u0060which\u0060 and \u0060scripts/build_python_release_smoke.py:204\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":"scripts/build_python_release_smoke.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13c2ba551b95b380887ceb8d05bdeaa3779514532ddd5fbed0e321aa46c5ef2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/version-sync.py:66-74 | scripts/version-sync.py:88-96 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060scripts/version-sync.py:64\u0060 calls \u0060get\u0060, \u0060isinstance\u0060 and \u0060scripts/version-sync.py:87\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":"scripts/version-sync.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d49d8f8196dc2692efe4e0d7b1cb455d4268a2f9595260c3dadbe0b5ac45eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): examples/langchain_demo/verify_errors_kept.py:25-30 | examples/langchain_demo/verify_errors_kept.py:76-81 \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":"examples/langchain_demo/verify_errors_kept.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a93918a2bb368f19e97165488a4735c49c532e0e619b891fc32c9ecf810e3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): scripts/changelog-gen.py:140-145 | scripts/changelog-gen.py:157-162 \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":"scripts/changelog-gen.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffee44aee3f33e07915395e04db2006792adafa22de4abc1351af998b3244f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): examples/strands_via_proxy_demo.py:141-148 | examples/vertex_gemini_benchmark/benchmark.py:155-162 | examples/vertex_genai_sdk_demo.py:111-118 \u2014 before extracting anything, compare \u0060examples/strands_via_proxy_demo.py\u0060 and \u0060examples/vertex_genai_sdk_demo.py\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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":"examples/strands_via_proxy_demo.py"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"2986069571f9d9d2ac77804cbf164e2ab182692ccbc8cdf850c138883c6269b4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: headroom-core: headroom-core: abstractness 0.06, instability 0.00, distance 0.94 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"61e8011fe1190d36ffae72e8ac1441ec16be5819c8d5f03d0f2e9add7ab60820"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HeadroomOtelMetrics (LCOM4 6): HeadroomOtelMetrics\u0027s methods fall into 6 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 6 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":"headroom/observability/metrics.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a140c6fbe74f3d4b2baabde84ed3a28986d580acced4717458a8b221db32b19"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HeadroomProxy (LCOM4 5): HeadroomProxy\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":"headroom/proxy/server.py"},"region":{"startLine":1048}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5da5f21b9a50a284cd9970d29182c19b59ae7b012bbc8447c1afe1c90544ee"}},{"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 node:test suite in e2e/wrap/tools/ ran and not one test passed (throw new ERR_INVALID_ARG_VALUE(), 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":"D10","level":"warning","message":{"text":"No assertions: execFile(file, null, callback) and execFile(file, callback) still call the callback: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/transport.test.ts"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa35b62e5fa80f6c5b38ef9902635035ff1fc493649f4d0918850fa1d3d3a2b1"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: falls back when proxy is down: This test sets up 3 test doubles (for example \u0060vi.fn\u0060) against 1 real object(s) of its own, and its only verification is 1 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/test/adapters/vercel-ai.test.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac35d520675a6fc0945867611d56ab3fdc082d34054762accfb88b44d241a5da"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: keeps loopback spellings and a trailing-dot excluded host off the proxy for Node http/https.request (#4747): This test sets up 5 test doubles (for example \u0060vi.fn\u0060) against 0 real object(s) of its own, and its only verification is 4 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/transport.test.ts"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"853f135a10b90eb34756bcb365ea2413698b441a7ae5b31a6e85e6510d7a0cda"}},{"ruleId":"D13","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":"e3b3646c5b80cb01b0ef351b5bdafc1d38fc104bd0aa1ae286ae5d81dba7677a"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/handlers/anthropic.py: headroom/proxy/handlers/anthropic.py changed 93 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 373 in AnthropicHandlerMixin.handle_anthropic_messages at line 1309. 80 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/anthropic.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee3b4a935a09676688672dbce2a6fed6080b28a6a2272497f5553d80e707b4b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/handlers/openai.py: headroom/proxy/handlers/openai.py changed 108 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 205 in OpenAIHandlerMixin.handle_openai_chat at line 3542. 85 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3542}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d283c87c118475d42419bddaca37932afc4cad3875bdbf1beac988c6314525"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/content_router.py: headroom/transforms/content_router.py changed 62 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 192 in ContentRouter.apply at line 6337. 53 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/content_router.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":"headroom/transforms/content_router.py"},"region":{"startLine":6337}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2c916aed7cf5ed09a78ab3a6beba614cc703be8b49706568ad14f571b67c6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/wrap.py: headroom/cli/wrap.py changed 60 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 121 in wrap._ensure_proxy_unlocked at line 5091. 42 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/wrap.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":"headroom/cli/wrap.py"},"region":{"startLine":5091}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af105f9373c15379b66bab3c01d8dc6d175c49334bbef14c4ddb7a7a809bd65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/server.py: headroom/proxy/server.py changed 94 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 56 in HeadroomProxy.startup at line 2204. 70 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/server.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":"headroom/proxy/server.py"},"region":{"startLine":2204}}}],"partialFingerprints":{"codehealthFindingId/v1":"37876b311f53af83a2ceecf306415b73cdf7a364eacd6935dd842463b1f4abe3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/proxy.py: headroom/cli/proxy.py changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 120 in proxy.proxy at line 1218. 22 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/proxy.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":"headroom/cli/proxy.py"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5f46863a5bcbec2fa57a57f552a57f8719dac7acb0409e268d78c925dc2ff7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/dashboard/templates/dashboard.html: headroom/dashboard/templates/dashboard.html changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in dashboard.html.dashboard at line 2056. 13 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/dashboard/templates/dashboard.html\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":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2056}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb916338c41f6a393c9daf677eab083bb58efea4fcd8484b554c2b4f3008d67"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/helpers.py: headroom/proxy/helpers.py changed 49 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in helpers.relocate_system_messages_to_top_level at line 1110. 41 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/helpers.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":"headroom/proxy/helpers.py"},"region":{"startLine":1110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4841749b8520d10c07b7e55cc816cac940121ae7087159c7014758966196eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/handlers/gemini.py: headroom/proxy/handlers/gemini.py changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 95 in GeminiHandlerMixin.handle_gemini_generate_content at line 399. 15 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/gemini.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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5a9df10c26f603d1b1fd19013a4d2a8a2cdd07b2f6403a0c4847e1ebb7db32"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/handlers/streaming.py: headroom/proxy/handlers/streaming.py changed 37 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in StreamingMixin._continue_memory_tool_stream at line 522. 34 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/streaming.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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e52249a823004fbc4634bd164034620c0c670bf8d4fdac96e1da3c4a60648c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/kompress_compressor.py: headroom/transforms/kompress_compressor.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in KompressCompressor.compress_batch at line 2285. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/kompress_compressor.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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f275eba8a146cd413de2810af67fc203e3a646d47a7b000c1d1db376b9d955e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/backends/litellm.py: headroom/backends/litellm.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in LiteLLMBackend.stream_message at line 1397. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/backends/litellm.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":"headroom/backends/litellm.py"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7e69171a6d63c6cad2c954de59e7444b887c864f3b2251acd438aceeae2c1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/cost.py: headroom/proxy/cost.py changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in cost.build_prefix_cache_stats at line 243. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/cost.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":"headroom/proxy/cost.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6229c62e81d2a163661a7a398243f6c7c9d457775e72eca9973ae8bfd921e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/perf/analyzer.py: headroom/perf/analyzer.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in analyzer.format_report at line 523. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/perf/analyzer.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":"headroom/perf/analyzer.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb066850a7cc54b432e4072d4db164eb9adc2fa96359b0ad5a8048c1f9d04bf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/prometheus_metrics.py: headroom/proxy/prometheus_metrics.py changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in PrometheusMetrics.export at line 1427. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/prometheus_metrics.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":"headroom/proxy/prometheus_metrics.py"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ffcb8569ade771563513cfd288b3da2e012a62a26017fff30b9b050e590f63"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/gateway_turn.py: headroom/proxy/gateway_turn.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in gateway_turn.handle_compress_response at line 1607. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/gateway_turn.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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b62d46e40eb30b7039195439dd4ed5ca911a0ec3e4530070cdc63aa4373c421"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/outcome.py: headroom/proxy/outcome.py changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in outcome.emit_request_outcome at line 478. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/outcome.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":"headroom/proxy/outcome.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a4ee2d09f2d7faa08d99c936c5af4f5fe780332c4828f901af10bf9bb12606"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cache/prefix_tracker.py: headroom/cache/prefix_tracker.py changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in SessionTrackerStore.resolve_tracker at line 1876. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/prefix_tracker.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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"078da78c85ba4db3c2c498bac49d353ca771b34f5b46705301b6d524f8ddcec4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/learn.py: headroom/cli/learn.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 52 in learn.learn at line 143. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/learn.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":"headroom/cli/learn.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9ef6884cabb66bc18a06649e1f1b0170b9436c2c1ed2d1599ea978129ca9e3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: sdk/typescript/src/utils/format.ts: sdk/typescript/src/utils/format.ts changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in format.vercelToOpenAI at line 534. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- sdk/typescript/src/utils/format.ts\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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a3fb2007744684963172d52a74a90011a1be7f26e3fe88db646ca70df42daa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/savings_tracker.py: headroom/proxy/savings_tracker.py changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in SavingsTracker._sanitize_state at line 1896. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/savings_tracker.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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c2a661be2d27a0f7a1b17666e4742e7629a06e9d7fb9c77b390cb951bb1aac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/memory_handler.py: headroom/proxy/memory_handler.py changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in MemoryHandler.search_and_format_context at line 724. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/memory_handler.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":"headroom/proxy/memory_handler.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0cb513f8eae7a8e134ea83856667649b4e1f89ff470460555a946ad4aa4cb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/install.py: headroom/cli/install.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in install._apply_manifest at line 659. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/install.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":"headroom/cli/install.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4036ae283509723b95dc5492bcf93b1730622e85d164f8f0b72d3c4c61f0bd21"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/code_compressor.py: headroom/transforms/code_compressor.py changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in CodeAwareCompressor._compress_class_ast at line 2186. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/code_compressor.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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2186}}}],"partialFingerprints":{"codehealthFindingId/v1":"745f40a7e9683628035cdb55533864c408a60fcff5a89957e1858b4922c9d5f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/learn/analyzer.py: headroom/learn/analyzer.py changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in analyzer._call_claude_cli_streaming at line 869. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/learn/analyzer.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":"headroom/learn/analyzer.py"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9497d38aa6d9276f5b0a710d550c4f5e36901a6bfb6c35c4624640b522a36d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/memory/adapters/sqlite.py: headroom/memory/adapters/sqlite.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in SQLiteMemoryStore._build_query_conditions at line 446. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/memory/adapters/sqlite.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":"headroom/memory/adapters/sqlite.py"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a21946d4492b6fa22e85e94c882f34a314833603d0a43dca6bef2764eda947d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/doctor.py: headroom/cli/doctor.py changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in doctor.doctor at line 1279. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/doctor.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":"headroom/cli/doctor.py"},"region":{"startLine":1279}}}],"partialFingerprints":{"codehealthFindingId/v1":"185dc64668cd752ceea517641ea620b8ed77b4143bc55eae974bd5f6435e7697"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-core/src/transforms/smart_crusher/crusher.rs: crates/headroom-core/src/transforms/smart_crusher/crusher.rs changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in SmartCrusher::process_value_with_hook at line 497. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/smart_crusher/crusher.rs\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":"crates/headroom-core/src/transforms/smart_crusher/crusher.rs"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"256e141bebf53a1e9196cb5d8d082c1e4d496dec8a85cfb03eb57e0c5421cb14"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/tokenizers/base.py: headroom/tokenizers/base.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in BaseTokenizer._count_content_parts at line 576. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/tokenizers/base.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":"headroom/tokenizers/base.py"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"022184afcd4c8c56e66714f234d4b09f6785b3649e83802ee2218ebcadb9e87d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/providers/anthropic.py: headroom/providers/anthropic.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in anthropic._load_custom_model_config at line 406. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/anthropic.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":"headroom/providers/anthropic.py"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"e666479d7135c4248bafecbbf9ce68360b23ed5e6efc2cc693321a32ecc56fd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/install/planner.py: headroom/install/planner.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in planner.build_manifest at line 139. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/install/planner.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":"headroom/install/planner.py"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c7b93a546f406bd4143dcd1b9c9c37607fb237a08621a183b0354b4341e373"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/install/supervisors.py: headroom/install/supervisors.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in supervisors.install_supervisor at line 538. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/install/supervisors.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":"headroom/install/supervisors.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"21054fede6fed25311fd13783dd3f1b7ca55f81336abe96a16f325c0b5bea042"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cache/compression_store.py: headroom/cache/compression_store.py changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in compression_store._create_default_ccr_backend at line 1230. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/compression_store.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":"headroom/cache/compression_store.py"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1a5a471ee9af1019ca6ee9c00053f3351f837be2c7ec9889ae92f4e178ea5d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/ccr/mcp_server.py: headroom/ccr/mcp_server.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in HeadroomMCPServer._handle_read at line 1119. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/ccr/mcp_server.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":"headroom/ccr/mcp_server.py"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8588f580e51d9a74ba7c941826c0b6b6d7a92a3c8ce73ffdeb67248ebc19a7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/content_detector.py: headroom/transforms/content_detector.py changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in content_detector.detect_content_type at line 182. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/content_detector.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":"headroom/transforms/content_detector.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"14861af0e803dc8302da648d229b9c1bbc66cbf1745350a5dccebe6823bb53b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/backends/anyllm.py: headroom/backends/anyllm.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in AnyLLMBackend.stream_message at line 279. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/backends/anyllm.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":"headroom/backends/anyllm.py"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c455d9b989552d92504d8c3083e04239f0f86ef806809fd681a9d317b796e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/telemetry/toin.py: headroom/telemetry/toin.py changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ToolIntelligenceNetwork.record_compression at line 631. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/telemetry/toin.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":"headroom/telemetry/toin.py"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5631c6b4cc28a4af67d00bd9628c995b5be15469a0fe5844a9ac76881d14c3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/handlers/batch.py: headroom/proxy/handlers/batch.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in BatchHandlerMixin.handle_google_batch_create at line 33. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/batch.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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"321b6a419fb879b4c00c6f92d2261e4c269ae6ef97d3c55d5360f60983af42e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/pipeline.py: headroom/transforms/pipeline.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in TransformPipeline.apply at line 263. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/pipeline.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":"headroom/transforms/pipeline.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df40f2e554389fe39b91500d69341bf13a11719ad83acc2255e1f1db53d4335"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/pricing/counterfactual.py: headroom/pricing/counterfactual.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in counterfactual.resolve_rates at line 437. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/pricing/counterfactual.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":"headroom/pricing/counterfactual.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a988c58ad93e472d8237c0102df411b19b9819561845dee70b3ecc060811fae4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/ccr/response_handler.py: headroom/ccr/response_handler.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in StreamingCCRHandler.process_stream at line 707. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/ccr/response_handler.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":"headroom/ccr/response_handler.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed95146bdc3f3fc1f910055c42ca6c91c30348e03a007c548176e49df5be671"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/savings_ledger.py: headroom/savings_ledger.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in savings_ledger.record_savings_event at line 285. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/savings_ledger.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":"headroom/savings_ledger.py"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bd34bf22d0f7a912def9be865bf71e00b3440d911c9e6e0b0c7cbc9bf641e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/memory/adapters/sqlite_graph.py: headroom/memory/adapters/sqlite_graph.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in SQLiteGraphStore.query_subgraph at line 456. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/memory/adapters/sqlite_graph.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":"headroom/memory/adapters/sqlite_graph.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"77af3b737a7a39336f0126fcc07975b45f282bb5c1236d32cc2f90099016bf26"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/turn_hooks.py: headroom/proxy/turn_hooks.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in turn_hooks.run_request_hooks at line 256. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/turn_hooks.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":"headroom/proxy/turn_hooks.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"178cf190097131302b516d8ac77271d3bd3dd8d74af26570fe3cf0baa7a018a3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/agent_savings.py: headroom/agent_savings.py changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in agent_savings.proxy_pipeline_kwargs at line 288. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/agent_savings.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":"headroom/agent_savings.py"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6015d18a0b2fe1ebdd6f4bd998cc713146612d8cbd76c8aa1d837e6355f8029"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/mixed_content.py: headroom/transforms/mixed_content.py changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in mixed_content.split_into_sections at line 126. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/mixed_content.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":"headroom/transforms/mixed_content.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceb8163919b361c7491fac1d6568b0b0f51a6bb268d95663084f09017873c45"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/compress.py: headroom/compress.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in compress.compress at line 215. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/compress.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":"headroom/compress.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3d267e6c8ac8ed3a5b62e868631b496304626692838e4ee22a7028d357f1c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-core/src/transforms/search_compressor.rs: crates/headroom-core/src/transforms/search_compressor.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in headroom_core::transforms::search_compressor::scan_marker at line 857. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/search_compressor.rs\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":"crates/headroom-core/src/transforms/search_compressor.rs"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"329fca00c898a85bc0ae2dd50ea95c9299cf8ca15fc5b42ee4ab731bde99ae6e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-proxy/src/bedrock/invoke.rs: crates/headroom-proxy/src/bedrock/invoke.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in headroom_proxy::bedrock::invoke::handle_invoke at line 137. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-proxy/src/bedrock/invoke.rs\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":"crates/headroom-proxy/src/bedrock/invoke.rs"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f8390984e12f3b0e72afc88dd15ebe328e13409b131922b841296f725b8d06"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-proxy/src/bedrock/invoke_streaming.rs: crates/headroom-proxy/src/bedrock/invoke_streaming.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in headroom_proxy::bedrock::invoke_streaming::handle_invoke_streaming at line 122. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-proxy/src/bedrock/invoke_streaming.rs\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":"crates/headroom-proxy/src/bedrock/invoke_streaming.rs"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ed509e3f0128a161bdf6da5476cce1fbedc6c6dddb7a31e42626b02b2b01d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/lossless_compaction.py: headroom/transforms/lossless_compaction.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in lossless_compaction.compact_lossless at line 485. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/lossless_compaction.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":"headroom/transforms/lossless_compaction.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e489415bed29449218d8c8729348fb379c9d25964892ae52109104c7c178b5e2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-core/src/transforms/diff_compressor.rs: crates/headroom-core/src/transforms/diff_compressor.rs changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in headroom_core::transforms::diff_compressor::reduce_context at line 1055. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/diff_compressor.rs\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":"crates/headroom-core/src/transforms/diff_compressor.rs"},"region":{"startLine":1055}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8205fb88dbe86653999681f54cca8cfe4b429e96339db0d4cec9b53f41fd5d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/mcp_registry/ledger.py: headroom/mcp_registry/ledger.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ledger._read_ledger at line 123. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/mcp_registry/ledger.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":"headroom/mcp_registry/ledger.py"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9295bd18ec59b149517a656e7fdfe7bcf2e094772ab9e12d220e6a2975c9f75a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/evals.py: headroom/cli/evals.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in evals._run_memory_eval at line 417. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/evals.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":"headroom/cli/evals.py"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a47b4aa31c4c2abad0a4e396bd54f054e70f9f0070a5fe16ac95decbc32fab0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/providers/codex/live.py: headroom/providers/codex/live.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in live.handle_codex_live_websocket at line 162. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/codex/live.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":"headroom/providers/codex/live.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8b1d55184608b1de6a1ff316a9f3b2f8f8edf45a42bad9741897423db5cd5b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/proxy/extensions.py: headroom/proxy/extensions.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in extensions.install_all at line 200. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/extensions.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":"headroom/proxy/extensions.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5be0b74e52bba739a1bb16e3ce6bdcb47b252b2d352e79a3342fb3e008cefe9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: crates/headroom-core/src/transforms/live_zone.rs: crates/headroom-core/src/transforms/live_zone.rs changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in headroom_core::transforms::live_zone::dispatch_compressor at line 1648. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/live_zone.rs\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":"crates/headroom-core/src/transforms/live_zone.rs"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff6072ea27cac004ac68e2b9af6f01b77567cccc56894016cfa9298c8622742"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/compression_units.py: headroom/transforms/compression_units.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in compression_units.compress_unit_with_router at line 236. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/compression_units.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":"headroom/transforms/compression_units.py"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f190ffef42688e57513bbe6611549c36e9def6a73a63a7cb6a00abdd8ed4919"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/compression_batches.py: headroom/transforms/compression_batches.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in compression_batches.compress_batch_with_router at line 240. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/compression_batches.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":"headroom/transforms/compression_batches.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c0c53fc2de4830208946e98b7ba5a4e75d9aa0832ca0b03354d7cf614271f9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cli/savings.py: headroom/cli/savings.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in savings.savings at line 160. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/savings.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":"headroom/cli/savings.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a748845bdfa42870dc001bdddd1bcb466bb5b991b1b35653b63e439b3babc0c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/transforms/compaction_codec.py: headroom/transforms/compaction_codec.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in compaction_codec.expand_compacted at line 361. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/compaction_codec.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":"headroom/transforms/compaction_codec.py"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b3d62f224637eaeeec78f0a3d29f383af7e559e70a861eef36c36d374c20e6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: headroom/cache/ttl_estimator.py: headroom/cache/ttl_estimator.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in ttl_estimator.estimate_ttls at line 71. 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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/ttl_estimator.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":"headroom/cache/ttl_estimator.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"17503ba0ee197cbff7dd1781bbebfe87791ade73682efcf6fdcf0bc651ed2d27"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/config.py: headroom/config.py changed 18 times in last 90 days and 15 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is config.unwrap_tool_call at line 546), 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(compress): stop adding markers the caller did not ask for (#4678)\u201D; \u201Cfix(dashboard): lifetime metrics and refresh (#2374)\u201D; \u201Cfix(config): use the longest matching model_context_limits prefix (#4288)\u201D; \u201Cfix(proxy): preserve Cline headroom__headroom_retrieve results from recompression (#4586)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/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":"headroom/config.py"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"993722fd50743d16aec8069bfe77d57e3d476da241cbf97bab997eb4a8fd0da1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/copilot_auth.py: headroom/copilot_auth.py changed 13 times in last 90 days and 12 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is copilot_auth._read_windows_copilot_cli_oauth_token at line 508), 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(proxy): keep tool deferral on Copilot Business/Enterprise/Individual hosts (#4608)\u201D; \u201Cfix(copilot): preserve native inline OAuth identity (#4144)\u201D; \u201Cfix(copilot): send VS Code next-edit requests to the completions host (#4188)\u201D; \u201Cfix(copilot): honour GitHub\u0027s advertised Business/Enterprise host by default (#4155)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/copilot_auth.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":"headroom/copilot_auth.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b2a9c38045b07eea0673506a048662656bd56286c1c62a34ef523bfb2f433a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/models.py: headroom/proxy/models.py changed 16 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 8 (its worst body is ProxyConfig.__post_init__ at line 603), 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(read-maturation): keep the client\u0027s tail cache breakpoint on held Reads (#3977)\u201D; \u201Cfix(proxy): let an explicit compress-user-messages off beat the profile (#3936)\u201D; \u201Cfix(proxy)!: read HEADROOM_LICENSE and make usage reporting opt-in (#3857)\u201D; \u201Cfix(settings): report live proxy configuration (#3177)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/models.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":"headroom/proxy/models.py"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40660e01758ac846a672d6ad3ed4ed1574f54db6cd9d80d62d94fed03c706ce"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/proxy_routes.py: headroom/providers/proxy_routes.py changed 14 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 4 (its worst body is proxy_routes._register_openai_responses_routes at line 243), 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(vertex): explain Vertex failures in-band, correct the model/region matrix (#2640)\u201D; \u201Cfix(proxy): use HTTP/1.1 client for ChatGPT streaming and model metadata (#4006)\u201D; \u201Cfix(proxy): let model discovery honor the custom base URL (#4330)\u201D; \u201Cfix(proxy): answer /api/hello probes behind the token gate, log rejection context (#4150)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/proxy_routes.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":"headroom/providers/proxy_routes.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba18e5430b4456ff7e9ba5a9f5bb627b4d955c1e1cb90b0a0f1a3d0f4fff71f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/opencode/hook-shim/handler.js: headroom/providers/opencode/hook-shim/handler.js changed 12 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is handler.splitNodeArgs at line 355), 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(opencode): keep child process options when the args slot is null or undefined (#4748)\u201D; \u201Cfix(opencode): default options-form https.request calls to https (#4749)\u201D; \u201Cfix(opencode): stop routing non-LLM hosts and paths to the proxy (#4747) (#4758)\u201D; \u201Cfix(opencode): do not break every request when the proxy URL is empty or invalid (#4750)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/opencode/hook-shim/handler.js\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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3c9a0dafab59d753cd63d47ebdcdaf13c91bf2478199158b0caabe67044e49"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: plugins/opencode/src/transport.ts: plugins/opencode/src/transport.ts changed 12 times in last 90 days and 10 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is transport.splitNodeArgs at line 606), 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(opencode): keep child process options when the args slot is null or undefined (#4748)\u201D; \u201Cfix(opencode): default options-form https.request calls to https (#4749)\u201D; \u201Cfix(opencode): stop routing non-LLM hosts and paths to the proxy (#4747) (#4758)\u201D; \u201Cfix(opencode): do not break every request when the proxy URL is empty or invalid (#4750)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- plugins/opencode/src/transport.ts\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":"plugins/opencode/src/transport.ts"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"96741aa58a30ce7e506742b03ef0b1e15011a5ef0735e6239005b52e7cdc975c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/cli/init.py: headroom/cli/init.py changed 11 times in last 90 days and 10 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 init._ensure_claude_hooks at line 218), 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(init): handle non-UTF-8 directory names when deriving the init profile (#4673)\u201D; \u201Cfix(codex): accept multi-line inline tables in Codex config.toml (#4436)\u201D; \u201Cfix(cli): name the broken Codex config, write init configs atomically, keep the identity check (#4129)\u201D; \u201Cfix(codex): preserve auth.json API keys through Headroom (#3355)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cli/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":"headroom/cli/init.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac658b22152b6b843f63d98b265903c1a55ea48f11c2c83050e3a4efdc0c4b75"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: plugins/openclaw/src/engine.ts: plugins/openclaw/src/engine.ts changed 7 times in last 90 days and 7 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 HeadroomContextEngine.assemble at line 122), 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(openclaw): let the circuit breaker open on proxy failures (#4755)\u201D; \u201Cfix(openclaw): record turn advancements as one marker file per key (#4212)\u201D; \u201Cfix(openclaw/release): ship responsive npm integrations (#1458)\u201D; \u201Cfix(plugins/openclaw): keep compression system-prompt notice cache-stable (#3811)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- plugins/openclaw/src/engine.ts\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":"plugins/openclaw/src/engine.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef49b6089118accc38fe7927acbf4964730c7944fa700f45a2577bc513253aa1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/output_savings.py: headroom/proxy/output_savings.py changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is SavingsLedger.from_dict at line 670), 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(output-savings): rewrite a pre-rule ledger once instead of warning on every /stats poll (#4196)\u201D; \u201Cfix(savings): don\u0027t let a thin holdout arm decide the headline number (#3127)\u201D; \u201Cfix(savings): stop scoring unobserved strata against the global mean (#3128)\u201D; \u201Cfix(stats): gate the output-shaping claim on the shaper being active (#3386)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/output_savings.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":"headroom/proxy/output_savings.py"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"0577e8ea173f14705197fba4db3da0fab3c99fb86e418bff5426eac7564b18cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/learn/writer.py: headroom/learn/writer.py changed 7 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is writer._ensure_git_ignored at line 437), 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(learn): anchor the managed block on its last start marker, append when no end marker (#4342)\u201D; \u201Cfix(learn): decode sanitized pattern-id markers and keep visible-text dedup keys (#3956)\u201D; \u201Cfix(learn): recognize escaped persisted pattern IDs (#3951)\u201D; \u201Cfix(learn): preserve stable traffic pattern items (#2293)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/learn/writer.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":"headroom/learn/writer.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b9b8220e1d7d7543955b6c2ff4e40721b3cc71c1a4f7033547da64e241d087"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: plugins/opencode/src/plugin.ts: plugins/opencode/src/plugin.ts changed 8 times in last 90 days and 6 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 plugin.modelWireSuffix at line 158), 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(opencode): stop routing non-LLM hosts and paths to the proxy (#4747) (#4758)\u201D; \u201Cfix(opencode): do not break every request when the proxy URL is empty or invalid (#4750)\u201D; \u201Cfix(opencode): route Copilot Claude models through the proxy (#4594)\u201D; \u201Cfix(proxy): astgrep disk verify truncation (#3192)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- plugins/opencode/src/plugin.ts\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":"plugins/opencode/src/plugin.ts"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd2e22df0228e06820c40e7c8f37f9a1e0b71db3372f3c6a0dd77a1dcef508b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/cache/semantic.py: headroom/cache/semantic.py changed 6 times in last 90 days and 6 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 SemanticCache.get at line 140), 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(cache): refresh semantic cache recency on updates (#4767)\u201D; \u201Cfix(cache): restore query-only semantic cache lookups (#4709)\u201D; \u201Cfix(cache): reject nonpositive semantic cache capacities (#4301)\u201D; \u201Cfix(cache): build semantic entry before evicting so a failed embedding keeps live entries (#4581)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/semantic.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":"headroom/cache/semantic.py"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89555e9a9d54ad6b2ec9ffbbc4e8258683a4e8481126943b638c493ed85154f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/memory/storage_router.py: headroom/memory/storage_router.py changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is ProjectResolver._extract_cwd_from_system_prompt at line 210), 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(memory): resolve pi cwd before injecting project tools (#4618)\u201D; \u201Cfix(memory): fail close unresolved project operations (#2637)\u201D; \u201Cfix(memory): treat a cwd with no UTF-8 form as unresolved instead of raising (#4167)\u201D; \u201Cfix(memory): ignore incidental cwd prose (#4166)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/memory/storage_router.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":"headroom/memory/storage_router.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e390e5276fd152436d8716e401f392ae459542b219a5709ca15358777fcb9310"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/persistent_metrics.py: headroom/proxy/persistent_metrics.py changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is PersistentMetricsState._normalize at line 203), 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(dashboard): lifetime metrics and refresh (#2374)\u201D; \u201Cfix(proxy): keep negative compression savings across restart (#4406)\u201D; \u201Cfix(proxy): bound per-model state keyed by the client model string (#4407)\u201D; \u201Cfix(metrics): split rate-limited by source and label failures by provider (#3707)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/persistent_metrics.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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"268a755a536dc245fbb71c868c8088e86f03da9d54c5f8a27c9560bbd1a8f062"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/pricing/litellm_pricing.py: headroom/pricing/litellm_pricing.py changed 6 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is litellm_pricing._reduce_to_priced_key at line 95), 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(proxy): bound the model-keyed tokenizer, beacon and litellm caches (#4497)\u201D; \u201Cfix(offline): keep litellm\u0027s pricing table local under HEADROOM_OFFLINE (#4242)\u201D; \u201Cfix(pricing): suppress litellm\u0027s Provider List banner that corrupts perf JSON (#4197)\u201D; \u201Cfix(pricing): DeepSeek V4.1-Flash peak/off-peak rate card (#3575)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/pricing/litellm_pricing.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":"headroom/pricing/litellm_pricing.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d31f51bcf810aba7dfd6e28f0bbaaaeaddbe10a2c75004e9c06e17d314e460"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/relevance/embedding.py: headroom/relevance/embedding.py changed 6 times in last 90 days and 6 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 EmbeddingScorer._get_model at line 315), 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(relevance): load the Rust default embedder from Python\u0027s pinned snapshot (#4190)\u201D; \u201Cfix(relevance): hand the embedding arena back after each run on macOS (#4567)\u201D; \u201Cfix(relevance): cap embedding batch size so ORT\u0027s arena stays small (#4507)\u201D; \u201Cfix(relevance): load the default embedder from one pinned snapshot (#4152)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/relevance/embedding.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":"headroom/relevance/embedding.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"12481301a650becc8a0d588cf0cb0f180a35fa51b09c0110a900dea083743472"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/utils.py: headroom/utils.py changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is utils.extract_user_query at line 142), 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(proxy): don\u0027t take Claude Code\u0027s \u0022Tool loaded.\u0022 note as the user query (#4714)\u201D; \u201Cfix(proxy): bound the model-keyed tokenizer, beacon and litellm caches (#4497)\u201D; \u201Cfix: use all user text blocks for relevance scoring (#4628)\u201D; \u201Cfix(utils): normalize timezone-aware datetimes in format_timestamp (#3116)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/utils.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":"headroom/utils.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c5d912536439e1e20c417331c78220d2e579034be93b19380f6bfde016d4d5"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/cache/backends/sqlite.py: headroom/cache/backends/sqlite.py changed 7 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is SQLiteBackend._handle_db_error at line 196), 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(cache): fail closed on SQLite corruption instead of deleting the store online (#4361)\u201D; \u201Cfix(memory): log storage and SQLite failures that currently make retrieval miss silently (#4111)\u201D; \u201Cfix(security): create memory stores and other state files owner-only (#3848)\u201D; \u201Cfix(cache/ccr): tolerate a malformed CCR entry row instead of crashing the store (#3156)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/backends/sqlite.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":"headroom/cache/backends/sqlite.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"256e1897f0686f62aa9277b99ac3b00801b5aa9831d09d3fe42c603b70876714"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/mcp_registry/codex.py: headroom/mcp_registry/codex.py changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is _TomlMarkerRegistrar.unregister_server at line 211), 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(codex): accept multi-line inline tables in Codex config.toml (#4436)\u201D; \u201Cfix(mcp_registry): atomic config writes, no traceback on non-UTF-8 configs, log failed removals (#4130)\u201D; \u201Cfix(mcp): escape control characters when rendering TOML server blocks (#3964)\u201D; \u201Cfix(mcp): keep other apps\u0027 tables when replacing the Codex/Grok MCP span (#3877)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/mcp_registry/codex.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":"headroom/mcp_registry/codex.py"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"950a275f33c23eb9b06c48691e48df20977f185b5f24e05b2c546f98bb780151"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/proxy_targets.py: headroom/providers/proxy_targets.py changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is proxy_targets.select_passthrough_base_url at line 97), 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(anthropic): route /api/hello connectivity probes to Anthropic (#3336) (#4059)\u201D; \u201Cfix(grok): route CLI traffic to api.x.ai on shared proxies (#2693)\u201D; \u201Cfix(security): validate caller-supplied upstreams on every resolution path (#3195)\u201D; \u201Cfix(copilot): send VS Code inline completions to the host that serves them (#3112)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/proxy_targets.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":"headroom/providers/proxy_targets.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c609014ec033201996b1d0b047f5a7551ea8e1a9a050b01bf02040f866163b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/tokenizers/huggingface.py: headroom/tokenizers/huggingface.py changed 5 times in last 90 days and 5 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 huggingface._load_tokenizer at line 193), 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(tokenizers): unwrap BatchEncoding in HuggingFaceTokenizer.count_messages (#2447)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix: prevent HF tokenizer downloads in offline mode (#3783)\u201D; \u201Cfix(pricing): DeepSeek V4.1-Flash peak/off-peak rate card (#3575)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/tokenizers/huggingface.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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af7a6e788d43c0fa852a5dca62b65fbac458dd99d7c6827421777ca6d3c3bb9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/registry.py: headroom/providers/registry.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 13 (its worst body is registry.create_proxy_backend at line 254), 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(vertex): explain Vertex failures in-band, correct the model/region matrix (#2640)\u201D; \u201Cfix(client): preserve Anthropic create stream flags (#4500)\u201D; \u201Cfix(anthropic): route /api/hello connectivity probes to Anthropic (#3336) (#4059)\u201D; \u201Cfix(providers): route Claude requests to Copilot when the OpenAI target is a Copilot host (#3258)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/registry.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":"headroom/providers/registry.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2c37569840914cc0bcc41947766eb23e39d7417015cafd1916401f02757371"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/binaries.py: headroom/binaries.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is binaries._download at line 304), 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(binaries): fail closed on HEADROOM_BINARIES_ALLOW_UNVERIFIED=0/false (#3218)\u201D; \u201Cfix(cli): pass configured SSL context to stdlib urlopen calls (#4011)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(binaries): fail closed when a download carries no sha256 pin (#3724)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/binaries.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":"headroom/binaries.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"cec57be3cfd67d4f70951bd74cff9ea24ad6f8bb7f7532dcc678bde36018e0d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/handlers/bedrock.py: headroom/proxy/handlers/bedrock.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is BedrockHandlerMixin.handle_bedrock_invoke at line 58), 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(proxy): bypass compression for large admitted histories (#4142)\u201D; \u201Cfix(proxy): import Response at runtime in the Bedrock handler (#4397)\u201D; \u201Cfix(proxy/bedrock): record the real upstream status on InvokeModel outcomes (#4025)\u201D; \u201Cfix(proxy): keep exception text and the proxy token out of client output (#3851)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/handlers/bedrock.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":"headroom/proxy/handlers/bedrock.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b5a0ddaccfd454a22d158912a57165c292576bff9fc285551941838dbb99c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/runtime_env.py: headroom/proxy/runtime_env.py changed 5 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 5 (its worst body is runtime_env.explicit_env at line 160), 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(proxy): keep deferred tool loads out of the prefix-tracker lineage key (#4204)\u201D; \u201Cfix(proxy): drop web_search_call history from a Responses request with no web_search tool (#4202)\u201D; \u201Cfix(ccr): stream the buffered CCR upstream request so idle-killing networks cannot cut it (#4206)\u201D; \u201Cfix(proxy): astgrep disk verify truncation (#3192)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/runtime_env.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":"headroom/proxy/runtime_env.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d75623e0445cf505ffb9bdec96a07dfe3daa4164be9c5036fb0adecb4a427cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/transforms/kompress_remote.py: headroom/transforms/kompress_remote.py changed 5 times in last 90 days and 5 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 RemoteKompressCompressor.compress at line 219), 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(router): bound ML compression per request, not just per block (#3721)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(kompress): append the CCR marker whenever the saving pays for it (#3484)\u201D; \u201Cfix(transforms): stop compression garbling mixed subagent output (#3286)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/kompress_remote.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":"headroom/transforms/kompress_remote.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"15056eece8115f51114ea530e19503fd64d32db5894f9620056d472b11747fba"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: sdk/typescript/src/client.ts: sdk/typescript/src/client.ts changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is HeadroomClient.rawFetch at line 527), 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(sdk): throw typed proxy 4xx errors from compress instead of retrying (#4751)\u201D; \u201Cfix(sdk): encode the signature hash in client.telemetry.getTool (#4772)\u201D; \u201Cfix(security): resolve high-severity CodeQL alerts (#4005)\u201D; \u201Cfix(sdk): preserve proxy authentication alongside provider credentials (#3450)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- sdk/typescript/src/client.ts\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":"sdk/typescript/src/client.ts"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"745e0950fa8c1954550201937f3cc434e47b914b12ccf64c5ee0e5084d06bccb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/mcp_registry/claude.py: headroom/mcp_registry/claude.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is ClaudeRegistrar.get_plugin_servers at line 153), 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(mcp_registry): atomic config writes, no traceback on non-UTF-8 configs, log failed removals (#4130)\u201D; \u201Cfix(wrap): scope Serena\u0027s MCP registration to the wrapped project (#2787) (#2992)\u201D; \u201Cfix(mcp): report a plugin-provided Serena that reconcile cannot see (#3578)\u201D; \u201Cfix(mcp): add explicit Serena reconciliation (#3222)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/mcp_registry/claude.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":"headroom/mcp_registry/claude.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"267180edca1352ba18724e65b0d401f762f615c78bb4f470ae562490719c0934"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/subscription/tracker.py: headroom/subscription/tracker.py changed 5 times in last 90 days and 4 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 SubscriptionTracker._maybe_poll at line 391), 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(subscription): log a failed OTEL window update instead of passing silently (#4131)\u201D; \u201Cfix(subscription): poll with the refreshed credentials-file OAuth token (#3916)\u201D; \u201Cfix(security): poll usage only with the operator\u0027s own credential (#3863)\u201D; \u201Cfix(proxy): make --stateless write nothing to the workspace (#3846)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/subscription/tracker.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":"headroom/subscription/tracker.py"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"d951b5468137c84c24e6cd7c62260eb126a7d998db06b667054d83030b92d8b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/graph/installer.py: headroom/graph/installer.py changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is installer.get_cbm_path at line 25), 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(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(graph): fetch and extract the zip codebase-memory-mcp asset on Windows (#3730)\u201D; \u201Cfix(binaries): fail closed when a download carries no sha256 pin (#3724)\u201D; \u201Cfix(security): address u9up assessment findings (WEB-01\u201307) (#2207)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/graph/installer.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":"headroom/graph/installer.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31f92dca0107feaecd2011502d7801533b599fd5ec4af6eb5b98488e07b9ae3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/storage/jsonl.py: headroom/storage/jsonl.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is JSONLStorage.count at line 181), 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(storage): return the latest snapshot from JSONLStorage.get (#4675)\u201D; \u201Cfix: [BUG] Saved request metrics lose their cache optimization fields (#4584)\u201D; \u201Cfix(storage): normalize timezone-aware JSONL time filters (#4063)\u201D; \u201Cfix(storage): page JSONL queries after sorting (#3872)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/storage/jsonl.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":"headroom/storage/jsonl.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed0680c6a41569fe58f0f0b649f5903068107b0e20ed5188ad89d4719e10847"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/headroom-core/src/transforms/kompress.rs: crates/headroom-core/src/transforms/kompress.rs changed 4 times in last 90 days and 4 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 Kompress::compress_inner at line 417), 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(kompress): load ONNX Runtime through the dynamic loader guard before building a session (#4644)\u201D; \u201Cfix(kompress): run the CPU and ONNX Runtime loader guards before building a session (#4559)\u201D; \u201Cfix(kompress): read the pinned snapshot from Python\u0027s one HF cache in the native proxy (#4438)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/kompress.rs\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":"crates/headroom-core/src/transforms/kompress.rs"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba6d5f082660d0e2fdbe8328d384b2405c282e895fe35609321afac272ce448"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/auth_policy.py: headroom/proxy/auth_policy.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is auth_policy.classify_auth_signals at line 74), 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(core): case-insensitive Bearer scheme, clamp SQLite CCR TTLs, redact the Redis URL in logs (#4561)\u201D; \u201Cfix(grok): attribute api.x.ai chat outcomes as provider xai, recognize grok-shell UA (#2626)\u201D; \u201Cfix(proxy): classify Pi Codex Responses alias (#2583)\u201D; \u201Cfix(auth): match the Bearer auth scheme case-insensitively (RFC 7235) (#3219)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/auth_policy.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":"headroom/proxy/auth_policy.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eab85ad419494d797d787f9af3e704a42ec9b928a4552f827b556e9ff2db084"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/headroom-core/src/relevance/embedding.rs: crates/headroom-core/src/relevance/embedding.rs changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is EmbeddingScorer::score at line 344), 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(kompress): read the pinned snapshot from Python\u0027s one HF cache in the native proxy (#4438)\u201D; \u201Cfix(relevance): load the Rust default embedder from Python\u0027s pinned snapshot (#4190)\u201D; \u201Cfix(relevance): cap embedding batch size so ORT\u0027s arena stays small (#4507)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/relevance/embedding.rs\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":"crates/headroom-core/src/relevance/embedding.rs"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"78357d2f17f5797462636489bf83f540155211959dcee72182ae317278178b75"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/onnx_runtime.py: headroom/onnx_runtime.py changed 4 times in last 90 days and 4 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 onnx_runtime.create_cpu_session_options at line 253), 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(relevance): load the Rust default embedder from Python\u0027s pinned snapshot (#4190)\u201D; \u201Cfix(relevance): load the default embedder from one pinned snapshot (#4152)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(kompress): pin ModernBERT tokenizer and encoder revisions (#3808)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/onnx_runtime.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":"headroom/onnx_runtime.py"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7a7147e9dc03f058cbe67af80295f3ef9799114d4a83097a7d3961a36686cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/install/paths.py: headroom/install/paths.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is paths.chmod_owner_only at line 51), 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(packaging): rename the sandbox extra to lean and correct SECURITY.md claims (#3727)\u201D; \u201Cfix(install): replace the launchd wrapper with the proxy listener (#3224)\u201D; \u201Cfix(mcp): resolve opencode.jsonc for MCP registration (#2496)\u201D; \u201Cfix(cli): honor CODEX_HOME and align wrap/init/doctor with the live proxy port (#3855)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/install/paths.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":"headroom/install/paths.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"48aff360e516e3d84c3f4c98bb6064b2d1b5c38c5656b22375b57a3212c9ad0c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/tool_schema_savings_policy.py: headroom/proxy/tool_schema_savings_policy.py changed 4 times in last 90 days and 4 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 tool_schema_savings_policy.reconcile_deferred_tokens at line 119), 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(proxy): show turn-hook savings in /stats extension_savings, incl. Codex WS (#4233)\u201D; \u201Cfix(proxy): net tools a turn hook adds against the saving it books (#4057)\u201D; \u201Cfix(proxy): log the savings and metrics failures that currently vanish (#4084)\u201D; \u201Cfix(proxy): ignore defer_loading when measuring a turn hook\u0027s tool delta (#4056)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/tool_schema_savings_policy.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":"headroom/proxy/tool_schema_savings_policy.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7356bde70190da7184ae7b57d3017a5d60fb6272c244f77c751fdaa6a79474"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/upstream_guard.py: headroom/proxy/upstream_guard.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 12 (its worst body is upstream_guard.allowlisted_destinations at line 208), 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(proxy): judge NAT64 upstream addresses by their embedded IPv4 (#4179)\u201D; \u201Cfix(proxy): forward operator-listed guarded upstreams through a proxy (#3804)\u201D; \u201Cfix(proxy): pin the validated address so DNS rebinding cannot move an upstream (#3731)\u201D; \u201Cfix(security): validate caller-supplied upstreams on every resolution path (#3195)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/upstream_guard.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":"headroom/proxy/upstream_guard.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"103d54fe1ee83221d84f593dabebc81c4ff9a84f84c6cd51d12af68301a57d84"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/learn/models.py: headroom/learn/models.py changed 4 times in last 90 days and 4 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 ToolCall.input_summary at line 63), 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(learn): merge git worktree sessions into the repo\u0027s project (#3854)\u201D; \u201Cfix(learn): preserve stable traffic pattern items (#2293)\u201D; \u201Cfix(learn): distinguish Grep and Glob searches by path (#3455)\u201D; \u201Cfix(learn): surface Codex analysis failures (#3016)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/learn/models.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":"headroom/learn/models.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ff76d64718d9a0a79b138ee89f9e4bb6d3cb6134084e021905cba7303c90e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/transforms/spreadsheet_ingest.py: headroom/transforms/spreadsheet_ingest.py changed 4 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 8 (its worst body is spreadsheet_ingest._xls_cell at line 72), 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(spreadsheet): stop .xls integer rendering fabricating digits above 2^53 (#3704)\u201D; \u201Cfix(spreadsheet): stop inventing digits for .xls cells above 2**53 (#3700)\u201D; \u201Cfix(spreadsheet): render an .xls cell the way the .xlsx loader renders it (#3616)\u201D; \u201Cfix(transforms): drop trailing empty spreadsheet rows and stray CR in CSV render (#3254)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/spreadsheet_ingest.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":"headroom/transforms/spreadsheet_ingest.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dc5f1bdf65602f4257c2f7369416771e20628fe51b983226312a688b0d05ef"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/headroom-proxy/src/main.rs: crates/headroom-proxy/src/main.rs changed 5 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 11 (its worst body is headroom_proxy::main at line 19), 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(proxy): keep the Bedrock credentials provider when startup resolution fails (#4705)\u201D; \u201Cfix(proxy): refresh Bedrock AWS credentials before they expire (#4696)\u201D; \u201Cfix(rust-proxy): forward request paths verbatim and pin the rustls provider (#3853)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-proxy/src/main.rs\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":"crates/headroom-proxy/src/main.rs"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"209b2d6e7ec03bdbc1e5042abcde250d38bf390c869d2b798f2d60dd79f8877b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/body_forwarding.py: headroom/proxy/body_forwarding.py changed 5 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 15 (its worst body is body_forwarding.select_outbound_body at line 291), 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(proxy): stop a lone surrogate turning a thinking body into a 500 (#3134)\u201D; \u201Cfix(proxy): scope the signed-thinking lock to blocks that actually changed (#3124)\u201D; \u201Cfix(proxy): align signed-thinking wire accounting (#3015)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/body_forwarding.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":"headroom/proxy/body_forwarding.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7bb6ae5b6d31d245969c2b1cb33c62e9de94f98ce345922151c79132ef5ddd3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/cache/compression_cache.py: headroom/cache/compression_cache.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 12 (its worst body is compression_cache._can_swap_tool_result_content at line 79), 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(cache): preserve Anthropic tool-result blocks on replay (#4765)\u201D; \u201Cfix(cache): preserve OpenAI tool block metadata on cached replay (#4334)\u201D; \u201Cfix(cache): count a tool_result with no text as replayable in the frozen prefix (#4523)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/compression_cache.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":"headroom/cache/compression_cache.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6edf7bbc4600fc7e6c6e66e781af897ab5f49b260a60e4f6bc6f40715ac382"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: sdk/typescript/src/compress.ts: sdk/typescript/src/compress.ts 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 8 (its worst body is compress.compress at line 20), 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(sdk): accept string contents and functionCall without args in the Gemini adapter (#4756)\u201D; \u201Cfix(sdk): carry Vercel AI SDK reasoning parts and provider options through compression (#4564)\u201D; \u201Cfix(sdk): send Anthropic messages to /v1/compress natively so thinking blocks survive (#4489)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- sdk/typescript/src/compress.ts\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":"sdk/typescript/src/compress.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd37d7275365f0e500982d65a3755f1848fe306ce1174e36c35f95205bf4cfc3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/passthrough.py: headroom/proxy/passthrough.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 10 (its worst body is passthrough.custom_base_passthrough_telemetry at line 69), 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(grok): attribute api.x.ai chat outcomes as provider xai, recognize grok-shell UA (#2626)\u201D; \u201Cfix(telemetry): label custom-base chat upstreams from a fixed provider set (#3759)\u201D; \u201Cfix(proxy): keep OpenCode Zen /responses requests streaming (#3659)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/passthrough.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":"headroom/proxy/passthrough.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"079f2610d31dd9b91187ac98bb6abd4cdcdfd089b4e1f45ba4c7532f187a9745"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/savings_attribution.py: headroom/proxy/savings_attribution.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 8 (its worst body is savings_attribution.record_savings at line 173), 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(metrics): cap savings_by_source rows and fold the rest into other (#4257)\u201D; \u201Cfix(proxy): show turn-hook savings in /stats extension_savings, incl. Codex WS (#4233)\u201D; \u201Cfix(proxy): keep exception text and the proxy token out of client output (#3851)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/savings_attribution.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":"headroom/proxy/savings_attribution.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a849b38d119c32261894003fc5e9984c0c0605ffdf30a5196e617d071daec144"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/evals/memory/judge.py: headroom/evals/memory/judge.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 8 (its worst body is judge._parse_judge_response at line 201), 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(offline): guard the learn and memory-eval LLM calls under HEADROOM_OFFLINE (#4344)\u201D; \u201Cfix(offline): keep litellm\u0027s pricing table local under HEADROOM_OFFLINE (#4242)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/evals/memory/judge.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":"headroom/evals/memory/judge.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ec8f2efe3abb62f3f6f6ad78da8a25ea219bb738fe8155ab4888afe37b8ba4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/integrations/litellm_callback.py: headroom/integrations/litellm_callback.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 11 (its worst body is HeadroomCallback.async_pre_call_hook at line 101), 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(offline): keep litellm\u0027s pricing table local under HEADROOM_OFFLINE (#4242)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(litellm): compress anthropic messages route in HeadroomCallback (#3504)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/integrations/litellm_callback.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":"headroom/integrations/litellm_callback.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"753602f6a88ed9f5d185d9e5f3021e4a64a4d2d2fd9645258f85fce4596ff1c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/mcp_registry/opencode.py: headroom/mcp_registry/opencode.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 7 (its worst body is OpencodeRegistrar.register_server at line 168), 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(mcp): accept the JSONC opencode config that wrap and install already accept (#4297)\u201D; \u201Cfix(mcp_registry): atomic config writes, no traceback on non-UTF-8 configs, log failed removals (#4130)\u201D; \u201Cfix(mcp): resolve opencode.jsonc for MCP registration (#2496)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/mcp_registry/opencode.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":"headroom/mcp_registry/opencode.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"75f50df5dba2245175067f545cd47f1f46a7be0026123a5f4b0273fcf2ba17c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/tool_schema_compaction.py: headroom/proxy/tool_schema_compaction.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 8 (its worst body is tool_schema_compaction.compact_tool_schema_value at line 206), 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(proxy): copy cached tool compaction results (hardening) (#4410)\u201D; \u201Cfix(cache): stop skipping tool compaction on a pinned tools array (#3750)\u201D; \u201Cfix(cache): stop prefix transforms from busting the provider cache (#3735)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/tool_schema_compaction.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":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8af87c1c225b97c7419a4afc06b849c972ddcc2445111c97657ecdcbf735065"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/opencode/config.py: headroom/providers/opencode/config.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 12 (its worst body is config._strip_jsonc_comments at line 129), 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(opencode): do not rewrite an OpenCode config that fails to parse (#4424)\u201D; \u201Cfix(install): preserve OpenCode edits during reactivation (#4022)\u201D; \u201Cfix(wrap): let \u0060wrap opencode\u0060 target a third-party OpenAI-compatible upstream (#3125)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/opencode/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":"headroom/providers/opencode/config.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0161d3606621a3d1fd076f524b7335cd35861ce3da664aa9c5ce1bfbf692e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/integrations/langchain/agents.py: headroom/integrations/langchain/agents.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 8 (its worst body is HeadroomToolWrapper._as_tool_input at line 157), 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(deps): recommend headroom-ai for optional extras (#4046)\u201D; \u201Cfix(integrations): record metric timestamps in UTC, not naive local time (#3117)\u201D; \u201Cfix(langchain): make the integration work on LangChain 1.x, and document it (#3399)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/integrations/langchain/agents.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":"headroom/integrations/langchain/agents.py"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8f4608960875c0de2b0c37cc26fe7fba1b4e7749f4fbc962355b4022391636"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/mcp_registry/grok.py: headroom/mcp_registry/grok.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 3 (its worst body is GrokRegistrar.__init__ at line 26), 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(mcp_registry): atomic config writes, no traceback on non-UTF-8 configs, log failed removals (#4130)\u201D; \u201Cfix(mcp): escape control characters when rendering TOML server blocks (#3964)\u201D; \u201Cfix(mcp): keep other apps\u0027 tables when replacing the Codex/Grok MCP span (#3877)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/mcp_registry/grok.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":"headroom/mcp_registry/grok.py"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b0d27cbe70b44593ce5a749b99ca9e3585b03ac5d89eed48e0bae4327e621a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/request_logger.py: headroom/proxy/request_logger.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 RequestLogger.get_memory_stats 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(proxy): bound request-log message payloads to the feed window; trim glibc too (#3717)\u201D; \u201Cfix(cache): default CCR payload previews off; harden the log when they are on (#3728)\u201D; \u201Cfix(proxy): stop get_recent deep-copying dropped message payloads (#3613)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/request_logger.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":"headroom/proxy/request_logger.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"23970f4cf49e69f5aa9d4cef84bc3bd14fc766f9cb3e28ad63b265a5f9f48493"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: plugins/headroom-oauth2/src/headroom_oauth2/__init__.py: plugins/headroom-oauth2/src/headroom_oauth2/__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 11 (its worst body is headroom_oauth2.install at line 114), 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(proxy): let an extension declare its install() fail-closed (#4737) (#4773)\u201D; \u201Cfix(security): resolve high-severity CodeQL alerts (#4005)\u201D; \u201Cfix(oauth2): mint and inject only on requests that go upstream (#3849)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- plugins/headroom-oauth2/src/headroom_oauth2/__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":"plugins/headroom-oauth2/src/headroom_oauth2/__init__.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"316acf5b6458b844f37cfb7d8271facc216f74b9b564fa0caab2ceb7a4f02956"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/cache/ttl_observations.py: headroom/cache/ttl_observations.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 12 (its worst body is ttl_observations.resolve_learned_ttl at line 98), 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(cache): scope learned TTL cache to its source file (#4727)\u201D; \u201Cfix(cache): record TTL observations with relative filenames (#4711)\u201D; \u201Cfix(cache): validate malformed learned TTL values (#4364)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/cache/ttl_observations.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":"headroom/cache/ttl_observations.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"00eac09c063b8319e7e8ef246ccb8c72e51464c0cf85c44047f0a32c7ea45e7a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: plugins/openclaw/src/tools/headroom-retrieve.ts: plugins/openclaw/src/tools/headroom-retrieve.ts 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 headroom-retrieve.createHeadroomRetrieveTool.execute at line 44), 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(openclaw): return structured retrieval tool results (#4707)\u201D; \u201Cfix(openclaw): accept 12-character hashes in headroom_retrieve (#4640)\u201D; \u201Cfix(openclaw): read the retrieve hash from params, not the tool-call id (#4641)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- plugins/openclaw/src/tools/headroom-retrieve.ts\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":"plugins/openclaw/src/tools/headroom-retrieve.ts"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d2107db8d971672974d642e11f23b8f61daffcb2cd78fc5dbe04ff81d70a8c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/tokenizers/registry.py: headroom/tokenizers/registry.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 9 (its worst body is TokenizerRegistry.get at line 179), 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(tokenizers): resolve chatgpt-4o-* aliases to o200k_base (#4672)\u201D; \u201Cfix(proxy): bound the model-keyed tokenizer, beacon and litellm caches (#4497)\u201D; \u201Cfix(tokenizers): honor registered model factories (#4437)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/tokenizers/registry.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":"headroom/tokenizers/registry.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e1b0fe9bc019c53d03505c5df5dc32d05151e95164e5a0399473bbefcd0746"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/headroom-core/src/transforms/magika_detector.rs: crates/headroom-core/src/transforms/magika_detector.rs 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 headroom_core::transforms::magika_detector::initialize_dynamic_ort at line 103), 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(ort): avoid implicit runtime discovery from the workspace (#4570)\u201D; \u201Cfix(privacy): turn off ONNX Runtime\u0027s Microsoft telemetry by default (#4602)\u201D; \u201Cfix(onnx): stop magika\u0027s ORT intra-op pool from spinning idle cores (#4189)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/transforms/magika_detector.rs\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":"crates/headroom-core/src/transforms/magika_detector.rs"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d94647a062328ca1fa110cb55464ef66945e69f92852e6eb601932230dbd04"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: crates/headroom-core/src/lib.rs: crates/headroom-core/src/lib.rs 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 1 (its worst body is headroom_core::hello at line 30), 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(kompress): read the pinned snapshot from Python\u0027s one HF cache in the native proxy (#4438)\u201D; \u201Cfix(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(rust-proxy): forward request paths verbatim and pin the rustls provider (#3853)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- crates/headroom-core/src/lib.rs\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":"crates/headroom-core/src/lib.rs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc690d1da9aea1c70d62069ba223fa38eec2e385b4d8bf89cc17f170a22a01a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/storage/sqlite.py: headroom/storage/sqlite.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 11 (its worst body is SQLiteStorage.get_summary_stats at line 310), 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: [BUG] Volatile SQLite metrics stores lose their schema before the first save (#4633)\u201D; \u201Cfix: [BUG] Saved request metrics lose their cache optimization fields (#4584)\u201D; \u201Cfix(storage): page JSONL queries after sorting (#3872)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/storage/sqlite.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":"headroom/storage/sqlite.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8c369c4b192fac62ec0a51ca750001ecfc1a963324f47b7113afd421777bcf"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/transforms/recursive_json.py: headroom/transforms/recursive_json.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 15 (its worst body is recursive_json.route_embedded_json at line 238), 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(smart-crusher): preserve unchanged JSON bytes (#4044)\u201D; \u201Cfix(router): preserve nested JSON records through compression (#3680)\u201D; \u201Cfix(transforms): keep record-bearing JSON out of Kompress (#3673) (#3880)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/transforms/recursive_json.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":"headroom/transforms/recursive_json.py"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"788a988df0c4ee1400439fb2ddadbaddfdc462b26da1be5887c3664701042248"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/fileperms.py: headroom/fileperms.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 12 (its worst body is fileperms._narrow_existing at line 255), 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(security): lstat before narrowing sqlite files (#4527)\u201D; \u201Cfix(security): restrict the Windows runtime log via NTFS ACL, not just warn (#4135)\u201D; \u201Cfix(security): create memory stores and other state files owner-only (#3848)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/fileperms.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":"headroom/fileperms.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"970eeacbe7aa1a3ee791debff81fe4f4ab2c5689e61d249beb7f7e3f54a6946b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: sdk/typescript/src/adapters/anthropic.ts: sdk/typescript/src/adapters/anthropic.ts 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 4 (its worst body is anthropic.withHeadroom at line 35), 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(sdk): send Anthropic messages to /v1/compress natively so thinking blocks survive (#4489)\u201D; \u201Cfix(sdk): stop JSON-wrapping structured tool_result content in the Anthropic adapter (#3797)\u201D; \u201Cfix(sdk): preserve Anthropic image blocks in message conversion instead of dropping the turn (#3439)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- sdk/typescript/src/adapters/anthropic.ts\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":"sdk/typescript/src/adapters/anthropic.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0aa4ec75329c4662a5f1cd58a9098b41c3e2e5adfa4448849619ecb54c2570"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/providers/codex/install.py: headroom/providers/codex/install.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 11 (its worst body is install._ensure_codex_auth_helper at line 194), 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(codex): accept multi-line inline tables in Codex config.toml (#4436)\u201D; \u201Cfix(codex): preserve auth.json API keys through Headroom (#3355)\u201D; \u201Cfix(codex): detect ChatGPT auth from id_token claims so wrap/init emit requires_openai_auth (#3212)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/providers/codex/install.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":"headroom/providers/codex/install.py"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcc142ed6b10047c2ecc2a8ef27ed22fec6716c8a4817565610179d98d3f931"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/install/providers.py: headroom/install/providers.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 9 (its worst body is providers._apply_unix_env_scope at line 62), 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(install): write persistent shell env values verbatim (#4289)\u201D; \u201Cfix(install): preserve OpenCode edits during reactivation (#4022)\u201D; \u201Cfix(install): replace the launchd wrapper with the proxy listener (#3224)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/install/providers.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":"headroom/install/providers.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0369347492c4aefd82671a8c4d90ee96c759b370a4e4399972f80a11fe8f8c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/learn/loops.py: headroom/learn/loops.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 10 (its worst body is loops.apply_loop_weighting at line 356), 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(learn): keep the digest\u0027s loop section inside its budget (#4269)\u201D; \u201Cfix(learn): derive loop signature from tool input identity, not display summary (#3461)\u201D; \u201Cfix(learn): count each tool call once per tool_call_id when detecting loops (#3462)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/learn/loops.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":"headroom/learn/loops.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c67c891b02dbbabc11ebcfbc6313d57533ed221b6fd4be37533aa465aec5563"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/reporting/generator.py: headroom/reporting/generator.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 12 (its worst body is generator._build_waste_histogram at line 396), 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(deps): recommend headroom-ai for optional extras (#4046)\u201D; \u201Cfix(security): resolve high-severity CodeQL alerts (#4005)\u201D; \u201Cfix(reporting): price the savings tile instead of fabricating $0.00 (#3821)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/reporting/generator.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":"headroom/reporting/generator.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"990b0f9e35dcd0313ded9615a86c1e6717b0f9afeb517c150ebe88b9e8975ae1"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/telemetry/reporter.py: headroom/telemetry/reporter.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 15 (its worst body is UsageReporter._report_usage at line 258), 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(proxy): record the provider\u0027s billed input count on streamed turns (#4052)\u201D; \u201Cfix(security): create memory stores and other state files owner-only (#3848)\u201D; \u201Cfix(proxy): make --stateless write nothing to the workspace (#3846)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/telemetry/reporter.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":"headroom/telemetry/reporter.py"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8446b229a9f0949923e9c3841918433a5d1a5cd86444f4d85ae041a7be61f0"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/subscription/codex_rate_limits.py: headroom/subscription/codex_rate_limits.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 15 (its worst body is codex_rate_limits.parse_codex_usage_payload at line 269), 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(offline): make HEADROOM_OFFLINE a real air-gap via one chokepoint (#3729)\u201D; \u201Cfix(subscription): match the Bearer scheme case-insensitively for the Codex usage poll (RFC 7235) (#3966)\u201D; \u201Cfix(security): poll usage only with the operator\u0027s own credential (#3863)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/subscription/codex_rate_limits.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":"headroom/subscription/codex_rate_limits.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3829b41b30df330b67dd50f572c310211e5035ea99d4ca98f34f41b6facaf13f"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/semantic_cache_key_policy.py: headroom/proxy/semantic_cache_key_policy.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 7 (its worst body is semantic_cache_key_policy.compute_cache_partition at line 50), 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(security): partition the response cache by credential and principal (#3862)\u201D; \u201Cfix(cache): preserve cache_control schema properties (#3348)\u201D; \u201Cfix(proxy/cache): strip cache_control from messages in the semantic cache key (#3086)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/semantic_cache_key_policy.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":"headroom/proxy/semantic_cache_key_policy.py"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fb683a8f33f8a0112a88696d598815a51c90dfabf32c10395b2ee1f552c55a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/learn/plugins/claude.py: headroom/learn/plugins/claude.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 15 (its worst body is ClaudeCodePlugin.discover_projects at line 63), 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(learn): merge git worktree sessions into the repo\u0027s project (#3854)\u201D; \u201Cfix(learn): treat an unreadable project memory dir as absent instead of crashing (#3710)\u201D; \u201Cfix(learn): guard session-derived path checks against PermissionError in gemini/grok plugins (#2522)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/learn/plugins/claude.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":"headroom/learn/plugins/claude.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"978d7482011f4cb452d72669375a9b1da469f1706c4e26c7757a5adc591a6075"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/memory/writers/base.py: headroom/memory/writers/base.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 9 (its worst body is AgentWriter.export at line 101), 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(learn): keep transcript-derived content inside the managed block (#3850)\u201D; \u201Cfix(memory): pin LF on memory writers and guard the learn-writer newline contract (#3706)\u201D; \u201Cfix(memory): clamp memory age so a future created_at can\u0027t crash or invert ranking (#3139)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/memory/writers/base.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":"headroom/memory/writers/base.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"7687b88d87a679e5423c8a33dc637e72e2ed4d3441376e630cae5615d2353a32"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: headroom/proxy/ssl_context.py: headroom/proxy/ssl_context.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 8 (its worst body is ssl_context.find_ca_bundle at line 152), 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: make Headroom work behind Zscaler and other TLS-inspecting networks (#3831)\u201D; \u201Cfix(proxy): restrict urlopen SSL context ALPN to http/1.1 (#3567)\u201D; \u201Cfix(copilot): honor corporate TLS for token refresh (#3246)\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 15:41:29 -06:00\u0027 --until=\u00272026-11-13 15:41:29 -06:00\u0027 --full-history --no-merges -- headroom/proxy/ssl_context.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":"headroom/proxy/ssl_context.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3514450587c986648459d545cf687436ebfbf24b8d67b61ce50e5a2003de3a"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 75 significant file(s) lose their only recent owner: crates/headroom-proxy/src/compression/live_zone_anthropic.rs, crates/headroom-core/src/transforms/smart_crusher/analyzer.rs, benchmarks/bench_latency.py, crates/headroom-parity/src/lib.rs, headroom/telemetry/collector.py, benchmarks/prefix_cache_benchmark.py, benchmarks/comprehensive_eval.py, crates/headroom-proxy/src/compression/live_zone_responses.rs (\u002B67 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"17dbe1eba5949e9ba7e07b2f103363ae4c44e53d09637b9f41f1502e794bb9da"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 16 significant file(s) lose their only recent owner: benchmarks/claude_session_mode_benchmark.py, headroom/testing/harness.py, benchmarks/cache_validation_bundle.py, benchmarks/claude_session_branch_compare.py, benchmarks/synthetic_long_cache_suite_report.py, benchmarks/synthetic_token_cache_bust_report.py, benchmarks/cache_bust_trace_report.py, headroom/proxy/request_log_redaction_policy.py (\u002B8 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"47cae8b604e02ed7cc9f3fa5254ee5881264e36370efb59ab6e5b8d73ed950af"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 3 significant file(s) lose their only recent owner: headroom/proxy/context_guard.py, headroom/proxy/tcp_keepalive.py, headroom/proxy/hard_watchdog.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"362c1e2e4c305b4b4d0dc381a17a02a98278d3fc078fa6275bd13956338f7c5f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: benchmarks/memory_fts_reindex_benchmark.py, benchmarks/ccr_retrieval_history_benchmark.py, benchmarks/ccr_sqlite_expiry_benchmark.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"22603e91aacbd09b6df6c7d602718d0b2cba80c138a24f3445625dcc5e3d95e3"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 10 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 (109 single-owned of 679 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; 679 of the 842 production source files in this repository met that bar). They are anonymized user #5 (2 file(s)), anonymized user #6 (2 file(s)), anonymized user #7 (1 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)) (\u002B4 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: headroom/proxy/stage_timer.py, headroom/proxy/debug_introspection.py, headroom/memory/inline_extractor.py, headroom/proxy/malloc_trim.py, crates/headroom-core/src/transforms/text_crusher/crusher.rs, headroom/evals/adversarial_grid.py, headroom/proxy/uds.py, headroom/proxy/orphan_watchdog.py (\u002B4 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: ## TODO \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":"tests/test_memory_bridge.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2796893e25f921a5a1f9f9e8399871db9bde93269890895935f39adb8695a5c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # EXTENSION TODO (handler): openai.py cache mode currently does overlay \u002B frozen-count, \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":"tests/test_observed_wire_shapes.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68e6b3883df99f65d1840dc40c0a50b8e5ec877a3711a4c249813bbc2c07ada"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # EXTENSION TODO (handler): same delta-path wiring as Chat; ensure reasoning items are \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":"tests/test_observed_wire_shapes.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d509f5adcb203509efda85aac69eee2b3ed56942cc91ed491beb4b2cc317ce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # EXTENSION TODO: \u0060summary\u0060 (display-only per OpenAI docs) and the reasoning item \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":"tests/test_observed_wire_shapes.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2751821ac6572e0e123288aade757aaa714e2fc0fce16cae61de1c65495cdc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # EXTENSION TODO (handler): bedrock.py bypasses compression in cache mode. Wire a \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":"tests/test_observed_wire_shapes.py"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3097719915378cee8d4355b996fbfcf6b091f64f1753da0e6fbdc3c9d9b0b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # us \u2014 but we drop it defensively. EXTENSION TODO: if we ever ingest pre-wire AI-SDK \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":"tests/test_observed_wire_shapes.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"8789e6471dff3225130803a5c60569e5afa4efd8aa613c32f351945ed53037c6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: # FIXME: this needs work \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":"tests/test_search_compressor.py"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"e977d4bd2df35167facd94f0f3b6ec63721aaeea50eadd5767df15f6874c2050"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # Eligible-tracking is TODO for Gemini; pass the full \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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"2990f2843041866c860cd0f8c9e0383ab5f98c78b146e839a04275a2d3f27e5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO(#realignment): align anthropic.py CCR block to \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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5235}}}],"partialFingerprints":{"codehealthFindingId/v1":"978d92b5cde178efafa3845df14c0e781a79d16f0a8ea6997f065bfed3dbc49e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Add dedicated providers when needed \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":"headroom/integrations/langchain/providers.py"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d6101d9dabdee05dbee8f8dc0475637435204839dba520a5c79e8452a9416d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # TODO: Remove testing bypass before production 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":"examples/vertex_gemini_benchmark/scenarios.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5df45906fe1fd59b07f3ad0d4622a838d25e4af23e048166bbbae4526d3411"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060baseURL\u0060 spells \u0060URL\u0060 where 59 names in the project spell it \u0060Url\u0060: 59 of 60 names in project repository spell the token \u0060Url\u0060 (59 of 60; unit: names in project repository containing \u0060Url\u0060). Peers: source.getPageMarkdownUrl (docs/lib/source.ts:11); snip.proxyUrl (plugins/headroom-snip/hooks/snip.ts:32); snip.proxyUrl(baseUrl) (plugins/headroom-snip/hooks/snip.ts:32); HeadroomContextEngine.proxyUrl (plugins/openclaw/src/engine.ts:56); HeadroomContextEngine.getProxyUrl (plugins/openclaw/src/engine.ts:311). Rename to \u0060baseUrl\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/plugin.ts"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7104e6a0e44ebf6c1aedfa96a517322f2fb04815641390c6f08730581338e4"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060normalizedOpenAiProxyPath\u0060 spells \u0060Ai\u0060 where 15 names in the project spell it \u0060AI\u0060: 15 of 16 names in project repository spell the token \u0060AI\u0060 (15 of 16; unit: names in project repository containing \u0060AI\u0060). Peers: plugins.openclaw.src.convert.OpenAIMessage (plugins/openclaw/src/convert.ts:17); convert.agentToOpenAI (plugins/openclaw/src/convert.ts:29); convert.openAIToAgent (plugins/openclaw/src/convert.ts:155); convert.agentToOpenAIIndexed (plugins/openclaw/src/convert.ts:271); sdk.typescript.src.adapters.openai.OpenAILike (sdk/typescript/src/adapters/openai.ts:6). Rename to \u0060normalizedOpenAIProxyPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/transport.ts"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4ebaccc0a17c2255c769d371f9793e6359991b7b41ae512db90db775efc9d6"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Register as context engine\u0022 repeats the code it sits on: 3 of its 3 words (register, context, engine) are already in \u0060api.registerContextEngine(\u0022headroom\u0022, () =\u003E engine);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/plugin/index.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8849808664e2f994a38ee1f16de80706e51c88d7f9775a18526385acdbfe82b5"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Anthropic: image / document with source.type\u0022 repeats the code it sits on: 5 of its 5 words (anthropic, image, document, source, type) are already in \u0060if ((part.type === \u0022image\u0022 || part.type === \u0022document\u0022) \u0026\u0026 part.source?.type) return \u0022anthropic\u0022;\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a901b6e0c61cf33c23080d9b25704d7b4730551684cfb35118ed4fb6f68252"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Wrap model with Headroom middleware\u0022 repeats the code it sits on: 4 of its 4 words (wrap, model, headroom, middleware) are already in \u0060const model = wrapLanguageModel({\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/test/vercel-ai-e2e.test.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3df3b3d58a16b74b12e92a331ae2ed13797f55033ac807dd03c3223c3213622"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 3 of 12 project(s) overshoot their size bounds, lowering Project Cohesion to 5.0/10. The most over is \u0060(repository root)\u0060 (267436 LoC, 1439 module-visible types across 88 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":"D27","level":"note","message":{"text":"Scattered collaborators: 99 % of calls cross a namespace and only 58 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"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":"b0ab85602c3c252b0806826aafac6dc0fca483cefb6c83128fef9907aad9a4e5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"ecfe50d605fa06394cc3d7eedacb350d9a4511538d8004e33c2afe9241bfe730"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"a85c9f87f3b2a3dc73b9007f9840620386a51435a86b8d149c0fb5808898f672"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"550cfd37a888365abbcb5781c739b7ededeab2ef343c5603321054be080645b7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"a6a41ee8e795e808b1754c833ab442ca74c48c3a4d40a60986f86ace59c167bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"e543cd0766bf427133c66f48d171a9932b7842daa2057325489c71be68e46036"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"066115bfccd19c2b908b5cdbbf6aee05821de6b48868d1b184caed3773da945e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"2d07eda307cd0b48d37f7c527366de3c1671f4ce9598cf50eed76f0d46291d8c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"a16c4804248d0a4d0e86f65d3883c89193f3144047918020f6d76c231f4e2351"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"8b5bf227ac57c149307cee37971112f1d606b3f01005e6000c84014071400fca"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"9149b1ac467490fd9a19a1b3ccd5a652729bc44cc15470260d36d8a88f6f61bf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"21f2a9549490b0409efab2086d620fb2487fa7738433fdafd82f1a8e6504d7d6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"7766fadb47f414bbc6733fbe34237812cfd08b8b627d55c808ace9f17d5c95be"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"8651d7dcbaa0a66ffdc54bf7bf89ed2e4bcdcc6422ff8de40a29a5e11b32f584"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"48214b0d1786794f2feaa9a7edf8da22f9626724522fafb98667e00862f6337a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"f6c2b3b789c4591a91bd7a8e71c09fcae3c15e69d4de3319b9d4d4501e24ca72"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"86226c139ab6c082274ccb6dc9991766e446db0862b18232ea54fe99480506b9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"dd548263afd2de3edca6d42ba96cc19d4b435bc22e7136a7f67778d07a7b07f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"b8cbe5012e519141e3c4ba99d985cf29dac00870d2be73f40ec9d564dda924c6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"fca390c7552689b22f0d7b0794266602895761fbd5333f9e465406c454eb4c5b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"de7978c510e0fbdd8fbac43e36e0d177fcf33169b50c8a868173499f46dfe720"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"0ac9b8ef66207e7e00798e39d176cd8d926acdd4cfb81c6978bf3bca8276a5ba"},"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":"6ed059458dc0d864f79fffc2c8cd3f09ac2213f256b255ba1e07734350228541"},"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":"29d91eccb8e19961ca42d321861e7836c1722406745c616cd8993b07c8470288"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","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-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"793f03fa451123586dde485fae9e36575cbbb43000f598db8daff2a2f78c9bdd"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","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-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"cdb83f6f4dfeb0658bcb049411c942aedc1ab0b9cf9df91a22f353597a02c60d"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06: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":"608d8007699b9e7f44f881cdd74fd1dc04ca778adce8dc49eb5414fea2668a81"},"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":"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":"7dfcc967ebaf8a52699e0c117275b2c1b5b07f59342d95f6c1735efc1c3c4352"},"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":"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":"0d75d8007d1b8460bef1e17ec9ca2d056319312541bdce40d6d62a3ed3eb5e15"},"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":"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":"da8eb22124c5c2b352ea8a5def2c60f38e04a437ebd14462aaeb3d22f05d81f1"},"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":"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":"dc2f607b7c2f01a6f1c262d89cf95609c166b38ad250d5beeb910afa13ed0d3a"},"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":"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":"7fe6ddc1b088650943fec5083b34063a8dafb9fe23feafd771b0c289f83ce229"},"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":"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":"beaff4bc1c614ccd2d2eb603626038bbe96ca5c906d218bbe53b309b20e5ca60"},"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":"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":"dd5bbe2b2df822ff461c8f2deff9bf1c472a56a20c471de147a8eeaf3ea61f68"},"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":"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":"61592e2f47234a6e179c240141950a2bf070ea31003d081b1653dd714ff805d6"},"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":"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":"d2a1561c45c756077e16558254115c970020114641fd94892c94eebe191a828d"},"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":"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":"010871672bf1ae6974b9e0cb43ba53a05d18f6fa0ec5836232089b5729a5bd9d"},"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":"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":"6f21905d7b79b4326d5b790fd5ea26be68713f02e83071a966bcdbf2e65f2af7"},"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":"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":"91ce3655c4ff727d046db10f41bcd8d715cfaf9cd1b148840e7bb9893a521b29"},"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":"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":"0d1e646af09b7379c429a5fa7c2887b532bec4115e43a5437cd02eeb9db29ae7"},"taxa":[{"id":"CWE-78","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":"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":"d6bfcf216778dcfe3e0814a5cc8ff59960de79f6e1200ad55ac5a36ee30fb29b"},"taxa":[{"id":"CWE-78","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":"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":"0fa7f5a505e935818970a6eb963edfb1f4b9f9e6e7bd80bf361ce0b11619c974"},"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":"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":"d132662e290823021c514a55671352a2e3a34cbc83a825452469a1ffcffeb5f4"},"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":"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":"cda8dc02e584f1b412874b0fd61f393f653b22bdd14e0daaa2a22a250be16f9a"},"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":"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":"ecfab787e7b9afdeb043f878c8e6dd367a3d95c20cb89a8ffda22c46bab84192"},"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":"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":"1cb216239aafe714e52343afbda84d3efb33bb98065a0565ac5608426ff80695"},"taxa":[{"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":"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":"d5d4152b237e04dc0dcfd0f7f1f04c18256de7229ff7393b8e5625d64704475a"},"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":"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":"de2a9dc0bad59b10fcd493a1a5af2614776a7bc08f7b777d8b0c9e1c63ef62cc"},"taxa":[{"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":"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":"0e5834d02a123bed1b51c87f0fe8bf7d3268687372869c17da363ef2884a53cd"},"taxa":[{"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":"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":"1bf86b7b2dc733b51422ba38fb669714127b1d49db69b90798c96f30aadcf129"},"taxa":[{"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":"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":"427fc4c068b1bcf22e9a8822b55c9e3641997a626169ddd0e62e2926f57aa727"},"taxa":[{"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":"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":"254546682f2bcef88ee784caacdcf9f9158470d87346278455b4d565a82b5541"},"taxa":[{"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":"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":"f6b328940066e27c0970083f3eafe898944eb7be6c6d5acc26dd9afd8dbb0da6"},"taxa":[{"id":"CWE-276","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":"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":"5e35a04b6cb3cb0a80f7bad94577bd0c43451e50ffe33376b7c81b72f14c9ed8"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"7bcd465829471299d76ef4e61d8e2a33d62c3e354e8e8ef0dfaebd9f76f2088a"},"taxa":[{"id":"CWE-611","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"619e3c703b92d437456c6c402609d00db5e8deb2a86313d22eb567de7eb50986"},"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":"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":"ac5bca8d61c06c3968ae88683c5f882d8dcf707ea67730078a834e9ebb01c0d2"},"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":"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":"b94e1360db94ee182db7d66fa2eba24cc6703a241b995832ca1676e6e25d8d7c"},"taxa":[{"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":"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":"9805077f8d19a2b824ed45e0a26d076272badbc9e3a8f48284f08797fc5f07d6"},"taxa":[{"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":"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":"b20851f15432f74e2245352e0193622af92aea03ac9b67103002ee3d6bd4e003"},"taxa":[{"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":"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":"cc39b2557896d5b2151134e7c4c6b5ef83869dc8d43a9566041d56763e3ccc92"},"taxa":[{"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":"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":"82de72695d4d3e9c0c1d32c857806c747c1e0b57c29a41b67d54dcb2767a8d73"},"taxa":[{"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":"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":"bcb509f3c5dc4ee8fa4478c4e79eed59cb7ad370f632e2bb409ffb6c38471ec0"},"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":"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":"df3dbc52609fe68731d011e6611d85e500dbd075c3b46c16dbf1277f69db0ec8"},"taxa":[{"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":"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":"972b63e7e59e6c52f004537996d7ddaf736ea7694c52550fcde0a23bc470f0df"},"taxa":[{"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":"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":"21bb1f770dc617e9c873c2e2b573fc0b2d4b8a7c8392c7296f1fc195848346fe"},"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":"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":"0ec7784fd0cafe465537c4bbceaa1de491b66d7528a2ec4e638495a512d9c411"},"taxa":[{"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":"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":"df65317923e5392e713986564e571ad666658550e1e8c821980d339ac1161189"},"taxa":[{"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":"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":"5b138892a91001eb2fe5873f2f74d7c09b8a258bec15a7e84d6116aa3348784b"},"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":"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":"a9c5f89ac4f93a7560fcb8edc2be27ade324e9c52c37c5ee80d0e5f3b12fd6f6"},"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":"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":"d8e512b35acfe98e48c886a2d8cd8a1062832b47b0afd482e83f365d2950ef7f"},"taxa":[{"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":"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":"61fcf4afe0a9bf428d545c44dc82d916905374ead7ace8cd32cdfef2d142ef27"},"taxa":[{"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":"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":"5f59bcdb70bf188dc683a6c68c9effd211049b8fa9458e84c14ce35eb5a45daa"},"taxa":[{"id":"CWE-319","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":"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":"f27ffa16bfaec55da2d243b1e789fe86a148fac00dc8bdd4ce55dfb6e2be1e08"},"taxa":[{"id":"CWE-319","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":"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":"e7137bb71d9040ee0466d3ff40ba1c1b0cda138fa990de880c7e15f2f55c073b"},"taxa":[{"id":"CWE-319","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":"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":"1ffb46d76a78cfef4ab48738c628588191b286434650a7fe50dcf0fc822f788f"},"taxa":[{"id":"CWE-319","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":"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":"b9c292da855d911156283352c98bf1f872cacf2017adc8d1036a5fe9333f3304"},"taxa":[{"id":"CWE-319","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":"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":"cb7f38b06622c6455f9dc24e68df60a4eb0fc4c7b4338596a404a8d5c59ad1bc"},"taxa":[{"id":"CWE-319","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":"9c8cd791e0f56e97626ff42a76306f7af05fc62b5630289f354f64f34164e181"},"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":"075705431a7bd6c548a70349c577dbff8d7ef8c9c1cf0c02f0044f7fe5fc0159"},"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":"e7b1826a4e1b1956b262c6e6f1f7d4c373746b368fa6d8a1b6a8b8c892f2dedc"},"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":"8c1d8cedc062f296b48686e135d0f8dda1ae4e2f94350a635972059dcdd74a90"},"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":"a09ddd9f8ff286cfd9b840fd73ab9328f29c6f1499e9f09200fb80f7e4b26e6b"},"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":"a1804bd2a49eb4c745157655ad902748813107c146ebc40a9d712b937b3352d1"},"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":"addf02184702a1cc5cc0fc42a7b73c6ef1a75606830315ca0e003fca1f766b6d"},"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":"6f04d52580e5dd9271259bd9ccf57187150f1847d025c26fd07306c60d09ecfd"},"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":"d8c6d3fad7aca4bfd1f9adec137bb439bda6c1291d287b0332309d39910632d2"},"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":"a70806cccd8e99b1dddf2ee49fe22d482f46541f58b30a9a1adc4586f109df90"},"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":"f30642db81b8869c9fb8f7f27f4ea899b3f1c5674c367663ac6d3da06c601c81"},"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":"70bd5bec13451a7250ecba23b2161d9c6365bb161bfe422cf6769a7b52dd1127"},"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":"fc5ff9b496495ef4f9a40e9d3dabf16188199f1380666d685afc6ac76673eba0"},"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":"1c18c17a52f61e51c997e56e568ccf4c6b5ffb74545a4be9bb40b1f697246747"},"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":"cd1ad3e5a09d9c869ae3c4d599155efde7daf26f19476149de69e6f076c036fb"},"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":"45dcdd43e636bd89d66f7af830aa40f0937463bfe37b0a67c4e4fcc8fc4f7bc1"},"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":"f532833b17d84f33659b9e1fd6201523af9f7e71df00aea564b76b6c926f6792"},"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":"6f9f2c089afad5a9be0cfb2c46cea936d57afc88e6106e8d42724c4b83d1bcb8"},"properties":{"dependency":{"package":"pillow","version":"12.2.0","advisory":"[GHSA redacted]","aliases":["BIT-pillow-2026-112390","BIT-pillow-2026-112391","BIT-pillow-2026-112392","BIT-pillow-2026-112393","BIT-pillow-2026-112394","BIT-pillow-2026-112395","BIT-pillow-2026-112396","BIT-pillow-2026-112397","BIT-pillow-2026-112398","BIT-pillow-2026-112399","BIT-pillow-2026-112400","BIT-pillow-2026-112401","BIT-pillow-2026-112402","BIT-pillow-2026-112403","BIT-pillow-2026-112404","BIT-pillow-2026-112405","BIT-pillow-2026-112406","BIT-pillow-2026-112891","BIT-pillow-2026-112892","BIT-pillow-2026-112893","BIT-pillow-2026-112894","BIT-pillow-2026-112895","BIT-pillow-2026-112896","BIT-pillow-2026-112897","BIT-pillow-2026-112898","BIT-pillow-2026-112900","BIT-pillow-2026-112901","BIT-pillow-2026-114501","BIT-pillow-2026-54058","BIT-pillow-2026-54059","BIT-pillow-2026-54060","BIT-pillow-2026-55379","BIT-pillow-2026-55380","BIT-pillow-2026-55798","BIT-pillow-2026-59197","BIT-pillow-2026-59198","BIT-pillow-2026-59199","BIT-pillow-2026-59200","BIT-pillow-2026-59203","BIT-pillow-2026-59204","BIT-pillow-2026-59205","BIT-pillow-2026-96636","BIT-pillow-2026-96637","BIT-pillow-2026-96638","BIT-pillow-2026-96639","BIT-pillow-2026-96640","BIT-pillow-2026-96641","BIT-pillow-2026-96642","BIT-pillow-2026-96643","BIT-pillow-2026-96644","BIT-pillow-2026-96778","[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]","[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]","[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]","[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]","[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]","[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2253","PYSEC-2026-2254","PYSEC-2026-2255","PYSEC-2026-2256","PYSEC-2026-2257","PYSEC-2026-3451","PYSEC-2026-3452","PYSEC-2026-3453","PYSEC-2026-3454","PYSEC-2026-3493","PYSEC-2026-3494","PYSEC-2026-3495","PYSEC-2026-3496","PYSEC-2026-4326","PYSEC-2026-4327","PYSEC-2026-4328","PYSEC-2026-4329","PYSEC-2026-4330","PYSEC-2026-4331","PYSEC-2026-4332","PYSEC-2026-4333","PYSEC-2026-4334","PYSEC-2026-4335","PYSEC-2026-4336","PYSEC-2026-4337","PYSEC-2026-4338","PYSEC-2026-4339","PYSEC-2026-4340","PYSEC-2026-4341","PYSEC-2026-4342","PYSEC-2026-4343","PYSEC-2026-4363"],"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":"3afe7410d5584725978f4d30572c84370560d0fa2926cf4fd67d13b9a8812f69"},"properties":{"dependency":{"package":"anyio","version":"4.12.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2026-4024","PYSEC-2026-4025"],"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":"818cf9c96ff3767e8e7989ff1c7a81c21716d8e9ef7b0d51177aff1cde974e05"},"properties":{"dependency":{"package":"pyjwt","version":"2.13.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]","[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]","PYSEC-2026-4140","PYSEC-2026-4141","PYSEC-2026-4142","PYSEC-2026-4143","PYSEC-2026-4144","PYSEC-2026-4145","PYSEC-2026-4146","PYSEC-2026-4147","PYSEC-2026-4148","PYSEC-2026-4149","PYSEC-2026-4150","PYSEC-2026-4151","PYSEC-2026-4152","PYSEC-2026-4183"],"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":"499a7317fc68dded25f0a2c9c484115342056ebe84442f138bc10d79adb081f3"},"properties":{"dependency":{"package":"sentence-transformers","version":"5.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4164"],"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":"e787266ccd6d0bee0441f21460d29c74c9cb4aed208b2ee547bfd3711799eaa5"},"properties":{"dependency":{"package":"certifi","version":"2026.1.4","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"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":"f3a99b2d76ff8983fdf7b2db18ecc70e07ec242ff27f39f290a9e352c012ac2c"},"properties":{"dependency":{"package":"gitpython","version":"3.1.50","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]","[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]","[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]","PYSEC-2026-3783","PYSEC-2026-3784","PYSEC-2026-3785","PYSEC-2026-3786","PYSEC-2026-3787","PYSEC-2026-3788","PYSEC-2026-3836","PYSEC-2026-3837","PYSEC-2026-3838","PYSEC-2026-3839","PYSEC-2026-3840","PYSEC-2026-3841","PYSEC-2026-3842","PYSEC-2026-3843","PYSEC-2026-3947","PYSEC-2026-3948","PYSEC-2026-3949","PYSEC-2026-3950","PYSEC-2026-3951","PYSEC-2026-3952","PYSEC-2026-3953","PYSEC-2026-3981","PYSEC-2026-3982","PYSEC-2026-3984","PYSEC-2026-3995"],"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":"c1067fb99e5b4a497673e7d52c39b019741e80290fa2262b9677a023860b1449"},"properties":{"dependency":{"package":"nltk","version":"3.9.4","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]","[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]","[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]","[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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2078","PYSEC-2026-3581","PYSEC-2026-3582","PYSEC-2026-3583","PYSEC-2026-3584","PYSEC-2026-3722","PYSEC-2026-3723","PYSEC-2026-3728","PYSEC-2026-3729","PYSEC-2026-3730","PYSEC-2026-3731","PYSEC-2026-3733","PYSEC-2026-3734","PYSEC-2026-3735","PYSEC-2026-3736","PYSEC-2026-3737","PYSEC-2026-3738","PYSEC-2026-3739","PYSEC-2026-3740","PYSEC-2026-3741","PYSEC-2026-3748","PYSEC-2026-3749","PYSEC-2026-3750","PYSEC-2026-3751","PYSEC-2026-3752","PYSEC-2026-3790","PYSEC-2026-3868","PYSEC-2026-3869","PYSEC-2026-3870","PYSEC-2026-3871","PYSEC-2026-3954","PYSEC-2026-3955","PYSEC-2026-4318","PYSEC-2026-597"],"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":"0f737703a42715c52e6bd4d12f68679a61b4c2a74067b17f2ecbcc487dfcb65b"},"properties":{"dependency":{"package":"pypa/gh-action-pypi-publish","version":"v1.13.0","advisory":"[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":"9586776c402d6faa36952da7040dca7c6f1843d3c21454e017777b0a32e1c0f6"},"properties":{"dependency":{"package":"next","version":"16.2.6","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]","[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]","[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":"5c13e2fc7ad6739ce3b797f1e343034c8344d597bb88eb60ee199886e80ecbc0"},"properties":{"dependency":{"package":"gh-action-pypi-publish","version":"v1.13.0","advisory":"[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":"cb3dd7f0ad30c0ad1f990b66694434d72c41c4fa76349887d0a05a2283b45adc"},"properties":{"dependency":{"package":"fsspec","version":"2025.10.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4217"],"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":"6dcd7b34df9527e0c496eb8476064119c78a4bb383e0a11f9a6d5d5dd079a8de"},"properties":{"dependency":{"package":"transformers","version":"5.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"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":"04600830a3954824eb0cd890f59001b2c9f8804c331b2cc56b185e7d7460110c"},"properties":{"dependency":{"package":"aiohttp","version":"3.14.1","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]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3545","PYSEC-2026-3546","PYSEC-2026-3547"],"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":"7e14f1d23f25f98fc5fb8da30c91a7185fe74265f6cb25e043754ea97d8fdcf1"},"properties":{"dependency":{"package":"lxml-html-clean","version":"0.4.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2614"],"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":"a446200044e46c4d521447bf080edcdcadb998ca63ab0d6b38c69cefc319f799"},"properties":{"dependency":{"package":"urllib3","version":"2.7.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4175","PYSEC-2026-4176","PYSEC-2026-4177"],"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":"9db70906aeb902c677916fd775d4240bf2a4b5375c5744f4fdc0d43d40a412c6"},"properties":{"dependency":{"package":"cryptography","version":"48.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-3552","PYSEC-2026-3553","PYSEC-2026-3554"],"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":"c3ccc277f50372c5fc64624ce09d0ba175824f349e14bf959cb721fef6e0201c"},"properties":{"dependency":{"package":"mcp","version":"1.26.0","advisory":"[GHSA redacted]","aliases":["[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]","PYSEC-2026-3481","PYSEC-2026-3482","PYSEC-2026-3483"],"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":"918df008a0bcb067562c11ea25975fb2dd2515eb65a11dae9ef86fc0c0607aeb"},"properties":{"dependency":{"package":"litellm","version":"1.88.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]","PYSEC-2026-4066"],"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":"8b70a56f0b8c8b8c2606b0ea576f9c5098d7f6ed0eaf35d839a36736da58ca19"},"properties":{"dependency":{"package":"virtualenv","version":"20.36.1","advisory":"[GHSA redacted]","aliases":["BIT-virtualenv-2026-102925","BIT-virtualenv-2026-102930","BIT-virtualenv-2026-102937","BIT-virtualenv-2026-102938","BIT-virtualenv-2026-113714","BIT-virtualenv-2026-113715","BIT-virtualenv-2026-113716","BIT-virtualenv-2026-113717","BIT-virtualenv-2026-113718","BIT-virtualenv-2026-113719","BIT-virtualenv-2026-113720","BIT-virtualenv-2026-113721","BIT-virtualenv-2026-113722","BIT-virtualenv-2026-113723","BIT-virtualenv-2026-113724","BIT-virtualenv-2026-113725","BIT-virtualenv-2026-113726","BIT-virtualenv-2026-113732","BIT-virtualenv-2026-113776","[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]","[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]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4011","PYSEC-2026-4012","PYSEC-2026-4013","PYSEC-2026-4014"],"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":"c82e8903817a5d4bf3a62c76b86093ec8bf24312be8a7575da19051c92f770c5"},"properties":{"dependency":{"package":"agno","version":"2.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-2333"],"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":"256e3c4d8b3b28c424bf8bbb50db45a09fc6d1ee80dc02cf1c86792a9deb6084"},"properties":{"dependency":{"package":"sqlitedict","version":"2.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1939"],"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":"91ced813ea76c26b906ff0ba0820449489178975939977cb8bc2a9f7333a49df"},"properties":{"dependency":{"package":"headroom-ai","version":"0.27.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4220"],"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":"6917f5e87d882d5d8a7f6b500af9c99ceea7d4ee4b8939f77ec006f4697319ef"},"properties":{"dependency":{"package":"strands-agents","version":"1.24.0","advisory":"[GHSA redacted]","aliases":["[CVE 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":"9797c1104a4feacdddb2c0f6a21649e5913956a6aa9deb8b7256b7a109b8fecf"},"properties":{"dependency":{"package":"js-yaml","version":"4.2.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"a1a955f1aec98c7162c2cfa60f77342d9507a4c93aef813cdc2d7afc0461fcbf"},"properties":{"dependency":{"package":"nanoid","version":"3.3.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE 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":"c3b2dce8adb17554d8c9e09d834e40e11adb2b109cc8cf3c7d951c9a07eb6af1"},"properties":{"dependency":{"package":"brace-expansion","version":"5.0.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE 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":"f3efa825a580b8dae1e8e865ba8fa4d8eba3cae0cf17f292fd7e24d31ab5f3e0"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","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":"2a4cd2b59cf9848719900ba1a986f64dd0e6222c844f26afbc017c2144badfc5"},"properties":{"dependency":{"package":"sharp","version":"0.34.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE 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":"55f025cc84f5ddfcef7387e3a4b0f0c534e00cea89ed0ad0607ea7fd597f7a1a"},"properties":{"dependency":{"package":"zod","version":"4.4.3","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":"a3aab83cf39f7a13d67db291602bf9d716ff7a57a8f4451af391196efcbc0e21"},"properties":{"dependency":{"package":"postcss","version":"8.5.15","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA 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":"1cbc174236b05b2477ca90b39d5e31cef573eefcdc5cc807ea4ce1986720e090"},"properties":{"dependency":{"package":"datasets","version":"4.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3716"],"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":"e9e15417afb825d016277b0391b0ad54a7b5e3b0ad1861027431cdc047b6d195"},"properties":{"dependency":{"package":"multidict","version":"6.7.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4244"],"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":"353f6ba86b6dc3eeeec1727661022b0f1cb830c55242feb1aec6091834ae0e87"},"properties":{"dependency":{"package":"filelock","version":"3.20.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA 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":"4a056e73603514a85866f4ac0ce740eba6352cd3ccbbd23ca62e8bb1ca5aeaf4"},"properties":{"dependency":{"package":"h2","version":"4.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3628"],"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":"741e13d05997c45303de0f4b8953e32e14f19b1894a23753e8aad4cbdee6aa41"},"properties":{"dependency":{"package":"hpack","version":"4.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-4053"],"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":"35e36e0ef50e43f04ed1569b7c97ec9518393faf1b2b72cdeed3dde2ed21bf04"},"properties":{"dependency":{"package":"setuptools","version":"80.10.2","advisory":"[GHSA redacted]","aliases":["BIT-setuptools-2026-59890","[CVE redacted]","[GHSA redacted]","PYSEC-2026-3447"],"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":"e8e217a81405f436d140f87a7049a29d62841b68efcfdbf0d6be9d855764ffaa"},"properties":{"dependency":{"package":"opentelemetry-api","version":"1.39.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA 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":"c61d386cd7a94ca2e2229eeb6acfeab5dce1b5ca4b5e3912238de8217ed40567"},"properties":{"dependency":{"package":"rustls","version":"0.23.41","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0285","RUSTSEC-2026-0346","RUSTSEC-2026-0348","RUSTSEC-2026-0349"],"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":"e6b19b69b63ddec92555b32aab39379ba5fa0df9b0e27ee3b4303d7e2d0ff027"},"properties":{"dependency":{"package":"accelerate","version":"1.12.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"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":"b675e853d934870b67da7843e905552187a08edd4bb9520f91b7f7c82d8f12a3"},"properties":{"dependency":{"package":"mem0ai","version":"2.0.10","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":"ef91965b7504b917da048ed7e72246cb2520fed4e698499a451976831ea1748a"},"properties":{"dependency":{"package":"webpki-roots","version":"1.0.8","advisory":"RUSTSEC-2026-0381","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"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":"65fba25d4a350f200b15b8dadb79d2cf9c62659eb5dfc11dbd15f70cf15569fb"},"properties":{"dependency":{"package":"rustls-webpki","version":"0.103.13","advisory":"RUSTSEC-2026-0382","aliases":["BIT-golang-2026-111943","[CVE redacted]","GO-2026-6809","RUSTSEC-2026-0381","RUSTSEC-2026-0383"],"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":"96591786736c0be8698d3294bce19dbf16e0c1c8134eedff926b8a5119c3f54d"},"properties":{"dependency":{"package":"libsqlite3-sys","version":"0.30.1","advisory":"RUSTSEC-2026-0459","aliases":["[CVE redacted]","[GHSA redacted]","RUSTSEC-2026-0502"],"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":"b5cd8391ebde2e7d3ac59d0b9a10678bdf13a5b3d3b39f87b7ad0e67cd660bf2"},"properties":{"dependency":{"package":"number_prefix","version":"0.4.0","advisory":"RUSTSEC-2025-0119","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":"a8350c8ffd531e94bdf78a8aed560119bb4c188ce87b6c33cb60028c48d285b9"},"properties":{"dependency":{"package":"pin-utils","version":"0.1.0","advisory":"RUSTSEC-2026-0441","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":"e40edda3873967cc0110c5bd030da43be2a48ecf4dc3be4cfc91666e7d476090"},"properties":{"dependency":{"package":"anyhow","version":"1.0.102","advisory":"RUSTSEC-2026-0190","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":"947b655d270a04192502b7bf523c79cab11984000ba29af6d7dae4b3ae100d87"},"properties":{"dependency":{"package":"lru","version":"0.18.0","advisory":"RUSTSEC-2026-0253","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":"5dbb9426e8333425db4ff4edec62843507accb885b9dc0339f0366f3694d60d9"},"properties":{"dependency":{"package":"tokio","version":"1.52.3","advisory":"RUSTSEC-2026-0386","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":"e69f7ec53a153289de3cc9075dd9a8373b13b8fe756c8f5cfb6992959512a277"},"properties":{"dependency":{"package":"rustix","version":"1.1.4","advisory":"RUSTSEC-2026-0486","aliases":["[GHSA 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":"64ee6763bb528b5b30a7dc20127abd411e6eb933d942ccc96f5e320598a569e5"},"properties":{"dependency":{"package":"crossbeam-epoch","version":"0.9.18","advisory":"RUSTSEC-2026-0204","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":"d7c94eb47a8397e3aa49ae6587dd5161300a9ac131d78310014a91978a06313c"},"properties":{"dependency":{"package":"h2","version":"0.4.15","advisory":"RUSTSEC-2026-0258","aliases":["[GHSA 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":"f9354b2721711588ed226f14c9eeef0696fe9246184f8d6c3693a73983308d5f"},"properties":{"dependency":{"package":"quinn-proto","version":"0.11.15","advisory":"RUSTSEC-2026-0338","aliases":["[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","RUSTSEC-2026-0339","RUSTSEC-2026-0340","RUSTSEC-2026-0341","RUSTSEC-2026-0342","RUSTSEC-2026-0523","RUSTSEC-2026-0524"],"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":"3636e85e9c32e561e74de24304a25f65ae82a8a72d87f379c1b479cc78609332"},"properties":{"dependency":{"package":"ctutils","version":"0.4.2","advisory":"RUSTSEC-2026-0385","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":"32e54b7cfc1c96db44f0fde1d0999b15fe9e2594166257f5388da6a4dba71437"},"properties":{"dependency":{"package":"quinn-udp","version":"0.5.14","advisory":"RUSTSEC-2026-0538","aliases":["[GHSA 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":"1c02a30eeffa2d1dfdbd96695067ed4abdd4174bde411edc52e6e48611959b71"},"properties":{"dependency":{"package":"minimatch","version":"10.2.5","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":"2b0fb446ba7330a4b21980d6a4ea60ae6bb37bc34445eb27956d32d7b02d709a"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"98812d85f1c0603571cc7b830a4b4086f48e0209a1729c9e66ba38e1ce26ee03"},"properties":{"dependency":{"package":"torch","version":"2.12.1","advisory":"[GHSA redacted]","aliases":["BIT-pytorch-2025-3000","[CVE redacted]","PYSEC-2025-194"],"reachability":{"kind":"unknown"}}}},{"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":"5922a5beeab5ac077ffb485a783ad545036e79b56239f83da38f3fb84336b113"},"properties":{"dependency":{"package":"paste","version":"1.0.15","advisory":"RUSTSEC-2024-0436","reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d2a6641186b2daeb365ccc65064ca34b84e4971c3484d4aa2960f48f7b96ebb8"}},{"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":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"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":"9ff1ee9dd5615e2d512c1b5a7eb9a731208830cdc6ec1c07d8913d2a5c081e3c"}},{"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":"d15df5171d54d9a3cfe919193b940b95eb1db599610449c8b68164e072da6651"},"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":"e04b5602159cda120607601027e36bb87006d4b0e62de991614d45fd572a52cc"},"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":"becbc5502f94878197b05d70c7ef15f1353fd99a90efcb824b9c43f11ae5ce7a"}},{"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":"cbd4e7c5c52cf7b43d5f7326bb5d7f8044c57c5c614da1e09eabef1af6f6df01"},"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":"72ec9809baa2dd4b1334af13f8ac135cbe30343ac1cf2182eb50ccc9ddc6aa50"},"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":"579beb5c996636ed2411359acc1b9a112f22ebe7f3e24c17d9a40687518e2794"},"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":"8923ef6b44f863db62c1ef8e7deb2650d4325753bb79bffb88ee8a59b6fbbf5b"},"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":"068039837b510d6247a22f5687cd5a02c28138e545f7c3b974625dbf55d116cf"},"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":"cb25c01df8acf399ffeb1d6a26b8b156dcdc59e7e4833e9f0bfb94064b620006"},"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":"373378da13a91b0358b2033f6095b12b89d964c06bfef23c7f33c2a4e7d8bb47"},"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":"7b289cefe0029592f91ca49e0b4c09e298b8281fe50436d1ef4a4e40fbac34c6"},"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":"08585cc0cd28b674805873732d986dc491464e12faadcbe39cc4ec90b21e04a9"},"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":"3b1568673c97a5ce9b1ec5a08dba083d705b7ca92047378b6f33333438b27491"},"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":"46eb56ca90f14ff58240ac181de64c98cab210a78b41d8e834bd882a2763a646"},"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":"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":"71825747d411eae23e4f36b6aa207687f30a62ff4a71e2ad8a5f59ec7d612494"},"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":"65bc7d571a47d610740f7465289db5dfa2496bd2c0d8e75e69363a90256f0128"},"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":"28ecaa80992a1418de5e3a8cf50a16a4346b7f1166233187a545a3a91cd5ee55"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away, so if it breaks, no one currently understands it. It does carry its own tests, so the behaviour is pinned even though the understanding is gone: schedule a read-through, using those tests as the specification, before the next change lands here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/cache_stabilization/beta_sticky.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecd6ab3e718f638db4975a00b6643539cbe4b89f787d5031b12557ea6409ac4"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 12 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: benchmarks/i18n_compression_eval.py, benchmarks/text_crusher_quality_eval.py, headroom/cli/agent_savings.py, scripts/build_python_release_smoke.py, headroom/proxy/background_compression.py, headroom/memory/qdrant_env.py, headroom/proxy/probe_recorder.py, scripts/release_smoke_all.py (and 4 more) (13 orphaned of 679 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; 679 of the 842 production source files in this repository met that bar). 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":"benchmarks/i18n_compression_eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec66ccd2c8894857d40fe9ee86123bcf20190a87aa3d3983ff67224214bfcfab"}},{"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":"benchmarks/text_crusher_quality_eval.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc5093bd8df183d3cac398060d4864b6582b45979e9b311d210b0d331db7022"}},{"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":"headroom/cli/agent_savings.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d5253c1fff02727112978e003c860fb49b2bed6af30dab8fffbd649b818bdd"}},{"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":"scripts/build_python_release_smoke.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b30b74fef8f71bae257b4979324251ff994891d3b9d98453466a2d2cb315ff2"}},{"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":"headroom/proxy/background_compression.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef699b13c587dfc20cafc93ee8f71c45763c8a0f5633fd4fd3fef7271d0b4205"}},{"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":"headroom/providers/grok_build/config.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8975422d44914ebd71b018d9f46c7268c85b0f9a1a36f8fcc4123afce03f47"}},{"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":"headroom/memory/qdrant_env.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59ff286fde778a4d048a959e3b087cadcdc67dabd77dc0a01c61fbeebd2242f"}},{"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":"headroom/proxy/probe_recorder.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ec7dd3bb82ce437e89ca5a31f19c4a9e3c755839603ece5ec6d3854a3fd27d"}},{"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":"scripts/release_smoke_all.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ccd54058c2dc4dde41fdae0a92bcea0e1803fe410521609471757bd22a004f"}},{"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":"sdk/typescript/src/hooks.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc578dd98d26da0750ae643fbe74981e484acecd2b7d10618966b0ca5de0f45"}},{"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":"scripts/record_code_compressor_fixtures.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eddd4ff697303ae0c95785f49c7fa91ce06806d7b962d0096832ae7f244389"}},{"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":"headroom/transforms/text_crusher.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e25f2c1b38289fdd2c98839c11a8d9f3bf50ad0845175d847560f84025dc9d"}},{"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":"9b751280978b10ef0ea28cf6e6ded3b4604b01558bb8eb5c5c974eb0a1ab1812"},"taxa":[{"id":"CICD-SEC-5","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":"D44","level":"warning","message":{"text":"End-of-life runtime: Rust 1.95: rust-toolchain.toml declares Rust 1.95 as this project\u0027s toolchain file, and Rust 1.95, superseded by 1.96 on 2026-05-28 (the Rust project patches only the current stable). An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2026-05-28 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rust-toolchain.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde701f9c40b0b8cb202babf3f8d8da48dda44162595030f1b0a8f7d57710684"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-proxy/src/observability/dashboard.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7309fc1fc222fa8a06ab00f89a1ad9f2fc05c5e9fc4920ed6c5bb08d27e294aa"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/app/layout.tsx"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d285e33aba8a746debaa3a75f33852397c794f663d956d4e1c4a7f33e880119"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/settings.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d28d1309ff99aaf9c52a65dee446d4fdbf9f75411cbcabefe8aeb0402e8a79"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/dashboard/templates/dashboard.html"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"3717f09fdd70b2a1a5757e42a9bcee3b13890979894a250b00abe31dd54675b4"}},{"ruleId":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: HeadroomStrandsModel: \u0060HeadroomStrandsModel\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (Django/SQLAlchemy \u2014 \u0060models.Model\u0060/\u0060db.Model\u0060) \u2014 the domain entity IS the ORM row (active-record), and it carries domain behaviour on the persistence type. A schema/persistence change ripples straight into the domain. Keep the ORM/table mapping on a boundary data-model \u002B a mapper, and the domain entity framework-free (map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/integrations/strands/model.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5987e62e6a5348b00f50e90f525387fb7e2cdd164d6e2a6ff4e2b99710736cc4"}},{"ruleId":"P12","level":"warning","message":{"text":"Changed-file filter skips the test gate for code the tests depend on: \u0060paths\u0060 runs \u0060npm test\u0060 (the tests of \u0060plugins/opencode\u0060) only when a change touches \u0060plugins/opencode/**\u0060, \u0060headroom/providers/opencode/_dist/**\u0060, \u0060headroom/providers/opencode/hook-shim/**\u0060, \u0060.github/workflows/opencode-plugin.yml\u0060, but those tests also depend on \u0060sdk/typescript\u0060 (e.g. \u0060sdk/typescript/tsup.config.ts\u0060, \u0060sdk/typescript/vitest.config.ts\u0060) \u2014 a change there merges with them not run, and no unfiltered gate runs them. List the package\u0027s tests and its workspace dependencies in the filter, or drop it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/opencode-plugin.yml"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e255fbd8f61c21e57ec9fdb859238313902426f286dbcb6bd2b8ca62ee58ecb"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 6/8 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060crates/headroom-parity\u0060, \u0060docs\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060plugins/openclaw/src/proxy-manager.ts\u0060 reports through \u0060console.*\u0060 at line 35 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce5cf825fa01136c1ccb41d7fb763b723b51546f4fd25fd4c7e419f164b674ba"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060plugins/openclaw/src/proxy-manager.ts\u0060 reports through \u0060console.*\u0060 at line 36 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a2f57116f35ab6b25a8d2c67f0c491f1f0164a739a4b6386fd27bac08b2af5"}},{"ruleId":"P2","level":"note","message":{"text":"Console output used as the logging channel: \u0060plugins/openclaw/src/proxy-manager.ts\u0060 reports through \u0060console.*\u0060 at line 37 although other files in its module log through a logger. Console lines carry no level, fields or correlation and never reach the log pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8047056f6835e99aca15eb8213c326749e730dc6e71e7c40b4983a2df3d1cc3c"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch bun/uv: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060bun\u0060, \u0060uv\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entries to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"31cd71c58b33c603f312ee47521e99656f471ef4783cdce449b2ded4fdeedcfa"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060requests.get(\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":"headroom/ccr/batch_store.py"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f7cf02123f75edb9ba8e9ea9434f10627f439098a4c59115066a85b5b6e945"}},{"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":"headroom/evals/datasets.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"df9ed529d9b2145adfbb9d37bd53d0d290491668f377174a0210994fce81d73a"}},{"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":"headroom/evals/datasets.py"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bfebb8144fa1d4ae8208d288f92e0959a63fbe1c36c535d6f7239304f4c43f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060run_demo\u0060 is async and calls urllib.request.urlopen \u2014 a blocking call inside async code stalls the event loop \u2014 every other task on it waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/strands_via_proxy_demo.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6e406ad3df998b6b647bd7506b4ce22d97de1ffbd446ddf9f0cf60a0508692"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (489 matched lines \u00D7 2 locations): headroom/providers/opencode/hook-shim/handler.js:44 \u00B7 plugins/opencode/src/transport.ts:114 \u2014 the two spans are one implementation copied and then locally edited \u2014 3326 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9d95e7d6a6360291c3008fe284f46b971be9c3f1d23ceef1e20f1e8fb33c8e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): scripts/build_npm_release_assets.mjs:86 \u00B7 scripts/verify_npm_release_assets.mjs:65 \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":"scripts/build_npm_release_assets.mjs"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"937e4e38767bc3112b7fba2bb4b27c940837b5f7e75c623ddce4ad3ebbfe5c88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (24 matched lines \u00D7 2 locations): sdk/typescript/src/adapters/anthropic.ts:42 \u00B7 sdk/typescript/src/adapters/openai.ts:42 \u2014 the two spans are one implementation copied and then locally edited \u2014 135 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/adapters/anthropic.ts"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86794423b24fcdefa9ba8ecb7740921113c615f71a467e4dc7b1e7502b8adfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): plugins/openclaw/src/convert.ts:207 \u00B7 plugins/openclaw/src/convert.ts:434 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7582add150f165009ef39a2ff69281d899d812759852ac838e619153bd792d6f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): plugins/opencode/src/plugin.ts:244 \u00B7 plugins/opencode/src/plugin.ts:292 \u2014 the two spans are one implementation copied and then locally edited \u2014 79 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/plugin.ts"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"537cee1c0a3c4d292f3c032d84d7c9eb9d21da3d5642b8f140236d86bfc57540"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): plugins/openclaw/src/convert.ts:504 \u00B7 plugins/openclaw/src/convert.ts:535 \u2014 all 2 copies are in the same file, 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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"c958db62a1bedd65d04dbad573cfc3735c7292d23c86a12245947004459c061d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): scripts/verify_npm_release_assets.mjs:139 \u00B7 scripts/verify_npm_release_assets.mjs:158 \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":"scripts/verify_npm_release_assets.mjs"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d918147ed53a2ae46e634d36a457ff445f224af38fcbb5308398afecf4c6dc1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): plugins/openclaw/src/proxy-manager.ts:288 \u00B7 plugins/openclaw/src/proxy-manager.ts:306 \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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1c4a9aeea1ad82bdfe86873aa5c5fb2cd19f326ceca55294e1d9731d18000a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): sdk/typescript/src/errors.ts:11 \u00B7 sdk/typescript/src/errors.ts:37 \u00B7 sdk/typescript/src/errors.ts:51 \u00B7 sdk/typescript/src/errors.ts:65 \u2014 all 4 copies are in the same file, and each CITED SPAN is a SPECIALISATION DECLARATION \u2014 a type whose \u0060extends\u0060 clause names a base and whose body hands that base its own values through \u0060super(\u2026)\u0060. The shared module this dimension usually asks you to extract already exists: it is that base, every one of these sites already reaches it, and the \u0060super(\u2026)\u0060 call this row matched on is where each site passes its differences in. So do not read this as an extract-a-helper row \u2014 there is no missing helper, and what is left at each site is the declaration of one distinct specialisation, which cannot be deleted without deleting the thing it declares. Read what actually differs between the spans, because two different answers follow. Where the sites differ only in the values they hand the base \u2014 a type argument, a service, an alias, a cache \u2014 the repetition is a TEMPLATE, and the only moves that collapse it are to generate these declarations from the set they enumerate or to replace the repeated construction with one factory each site calls with its own values; where that set is the point, each site pinning one distinct thing, the repetition IS the enumeration and there is nothing to remove. Where instead a span carries logic OUTSIDE the delegation that is the same at every site, that logic is the part to move, and its home is the base type rather than a new module. Reported because the copies still drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/errors.ts"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d81d568eb61b586a61d31a8c00c713de66aba3e93739235cdb9456719f6a2d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:898 \u00B7 sdk/typescript/src/utils/format.ts:957 \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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"f329384ec2a16c61523e986573fd90c25639b0ecfd1f90c5739ef0289a745164"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): sdk/typescript/src/client.ts:145 \u00B7 sdk/typescript/src/client.ts:206 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"76025fe9c466b860bcf144c190e166ef4f8140a70042c8e04603bf31169429ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): headroom/providers/opencode/hook-shim/handler.js:133 \u00B7 headroom/providers/opencode/hook-shim/handler.js:143 \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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0ba554041d1a115f10972919fb1944e12184c1e5f5dab445a3132e9986ed03"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:279 \u00B7 sdk/typescript/src/utils/format.ts:998 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72a07e095cb2c22ef8ef626af765d8d564128e1578c6121dac90c0241b7276b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:307 \u00B7 sdk/typescript/src/utils/format.ts:692 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a91385f90f3bbda2305ec9f0271ca05d39f3f867acf759c1bb3e2cdcefed61d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:543 \u00B7 sdk/typescript/src/utils/format.ts:570 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3132ce1326cc2b6809740a51e4e65a6304e122e9f757f74279d7158fa9f1c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): sdk/typescript/src/client.ts:373 \u00B7 sdk/typescript/src/client.ts:389 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/client.ts"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c089764cbc90b19161cfe134ce8a42f91470bb180fb6145386d45c1aa519d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4 locations): sdk/typescript/src/paths.ts:174 \u00B7 sdk/typescript/src/paths.ts:189 \u00B7 sdk/typescript/src/paths.ts:204 \u00B7 sdk/typescript/src/paths.ts:219 \u2014 all 4 copies are in the same file, 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":"sdk/typescript/src/paths.ts"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c279620a1553261108181834b97c7cc209b785dd9ca5d190612210061dbfa4a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): plugins/openclaw/src/proxy-manager.ts:347 \u00B7 plugins/openclaw/src/proxy-manager.ts:389 \u2014 all 2 copies are in the same file, 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":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3af81ac3db8d15845aeee6697f9fd41f31af4b803b58a41c22b4ab77ee086c6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): sdk/typescript/src/client.ts:301 \u00B7 sdk/typescript/src/client.ts:333 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/client.ts"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd1e43b536a95ea5cf2da61cfeaf0b7a2d5d9f0feb32600f0c0adfbec821341"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): sdk/typescript/src/client.ts:474 \u00B7 sdk/typescript/src/client.ts:501 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/client.ts"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcccecbba802636184727f9e340dca1bacdac06bfb76807f41228ae977506d5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): sdk/typescript/src/shared-context.ts:114 \u00B7 sdk/typescript/src/shared-context.ts:129 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/shared-context.ts"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5ba6a9b44c46ccc8e5546f3a2d022eebcd38e66e0c4a9324c3e57fc1d8788f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:194 \u00B7 sdk/typescript/src/utils/format.ts:241 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef7d505812960fec7d24577b91843d04589c8a929306d3485ed7650211e0179"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): plugins/openclaw/src/convert.ts:475 \u00B7 plugins/openclaw/src/convert.ts:518 \u2014 all 2 copies are in the same file, 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":"plugins/openclaw/src/convert.ts"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"083b29452ad42eaa8ce9aa65ec6818ecc8bbf7cebdf1289c6c6ee6b5067244d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): plugins/openclaw/src/tools/headroom-retrieve.ts:63 \u00B7 plugins/opencode/src/retrieve.ts:58 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/tools/headroom-retrieve.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"1447dd263e5000f7562397db78731756bd84b0b75293ae4ea6ad41644691639e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/verify_sdk_provider_peers.mjs:42 \u00B7 scripts/verify_sdk_provider_peers.mjs:68 \u2014 the two spans are one implementation copied and then locally edited \u2014 58 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_sdk_provider_peers.mjs"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"19de9448b3ff3be2cb4fc2459b3361247625f06d6720853db3a5c9dfe0daf5ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:205 \u00B7 sdk/typescript/src/utils/format.ts:255 \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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d03865ef07fe6394529adee6f5b130eaf20cd46128d908b11429b3b7d20d13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): sdk/typescript/src/utils/format.ts:261 \u00B7 sdk/typescript/src/utils/format.ts:974 \u2014 all 2 copies are in the same file, 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":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"728414d219684cc4127c27d56f38694394b44ccd402a6fabf4a2171a95194f53"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): plugins/headroom-snip/hooks/register.tsx:233 \u00B7 plugins/headroom-snip/hooks/register.tsx:302 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eeaa82188bf3f8ea80ebbf56c9012dd426d2a25cb9b559cbf8c1620ce3a11d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): scripts/verify_anthropic_peer.mjs:10 \u00B7 scripts/verify_sdk_provider_peers.mjs:13 \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":"scripts/verify_anthropic_peer.mjs"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2dc7ca751f5d555ebe02bc3200256695bb1f5679fb67eccf45f8323d66e9bd2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (6 matched lines \u00D7 2 locations): sdk/typescript/src/utils/case.ts:14 \u00B7 sdk/typescript/src/utils/case.ts:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 67 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/case.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"830d75558f9d19ac2662ee785cecb20bd4a32459804b9a4a3e9be31029d2f33a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function vercelToOpenAI (cyclomatic 48, cognitive 136): vercelToOpenAI has cyclomatic complexity 48 and cognitive complexity 136; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb10b2bd0b659c6816b1e76933e8e78cec855f9abe675a78883e47210372b95"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectFormat (cyclomatic 44, cognitive 81): detectFormat has cyclomatic complexity 44 and cognitive complexity 81; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18da3bbbab82e1540fc4598cc6c0c27f340d32980481f93f65318cb179b4cdf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAIToVercel (cyclomatic 40, cognitive 123): openAIToVercel has cyclomatic complexity 40 and cognitive complexity 123; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f1e68481fa31e6df8d67ab50da885e9f943f113720ed3647118a1e8a98e125"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function vercelMediaImageUrl (cyclomatic 32, cognitive 36): vercelMediaImageUrl has cyclomatic complexity 32 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f053e03c50fd5e94db70370cddb1e8f0138070ef595c86fde4acc9d82bd73"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clean (cyclomatic 30, cognitive 46): clean has cyclomatic complexity 30 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"34715b3b16e3b95226803d90e3ee3b2b8f30b15cdecaf921dfd7ed306a0af378"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAIToGemini (cyclomatic 29, cognitive 80): openAIToGemini has cyclomatic complexity 29 and cognitive complexity 80; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81ce32ba363adac194a6f05ac3898e5e5701974f9bb9c079142e989e0621e21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function agentToOpenAI (cyclomatic 27, cognitive 64): agentToOpenAI has cyclomatic complexity 27 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"95eb1828f75d214c272fced320b45690c0474426378697022cd692b555d4b8f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAIToAgent (cyclomatic 27, cognitive 64): openAIToAgent has cyclomatic complexity 27 and cognitive complexity 64; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3b3cea88876c22e25917fb59181510e04aeaa0d8e99adc959faae84fa354ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function start (cyclomatic 26, cognitive 30): start has cyclomatic complexity 26 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d41f5d039d19625cb55b3cdcd01e55f95a45ada69cf494ac1494c6d512cd81b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describe (cyclomatic 24, cognitive 21): describe has cyclomatic complexity 24 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d6c664fa13c43a5e0504f0e792f89d2d55966e5cb697657942f62f189d2315f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function vercelMediaPart (cyclomatic 20, cognitive 26): vercelMediaPart has cyclomatic complexity 20 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a6ce840e1d6bde648c1adb49595d90369578d9a3e2a150f55e433e35da0899"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function geminiToOpenAI (cyclomatic 19, cognitive 51): geminiToOpenAI has cyclomatic complexity 19 and cognitive complexity 51; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":880}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d6b9b1a4454a50f80b2e9460875616a9e3fb6516cbd3d0f1be49a391df63dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildLaunchSpecs (cyclomatic 19, cognitive 25): buildLaunchSpecs has cyclomatic complexity 19 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"6499d63c1f10619c098b18997aac8e93958e9177e678909734ff82ad5aeb734c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAIToAnthropic (cyclomatic 18, cognitive 48): openAIToAnthropic has cyclomatic complexity 18 and cognitive complexity 48; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3345e046e16de796fe5410b74de51db25aacf2d0ca3b29b587d1be330b72e9d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rollupHour (cyclomatic 18, cognitive 38): rollupHour has cyclomatic complexity 18 and cognitive complexity 38; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fe192e1b6f2b111d198cca0bb42b22e8d4a16fd6a526e134dd324b57aff5f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anthropicToOpenAI (cyclomatic 17, cognitive 60): anthropicToOpenAI has cyclomatic complexity 17 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce6be69905c6921b352e30bf3cc491813ba2005a746e7ea9035d38ff0339bb3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anthropicMediaImageUrl (cyclomatic 17, cognitive 17): anthropicMediaImageUrl has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2e6f79e89d8977169001b2559e03898c7d7dfa68cd5def5ab8c0bade88b48d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assemble (cyclomatic 17, cognitive 16): assemble has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/engine.ts"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec67616a8fd16cfcfd1ddf24f96dd864359a4cc50a2c478ce5ffd25137343d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c9437f7e987accf6f20a9621459bd5a074a3e604856b3e78bc9789d1d1776a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyGatewayProviderBaseUrlsInPlace (cyclomatic 15, cognitive 18): applyGatewayProviderBaseUrlsInPlace has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/gateway-config.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"827e66e7fa4371570a5d53261b32a2fcba0a0bb94974376b94e615d5498ebfc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetch (cyclomatic 15, cognitive 16): fetch has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"1623564af4f4eb53c00d8e547170961cff77061bb8580bec8a8ee177b91faee9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function migrateLegacyLog (cyclomatic 14, cognitive 16): migrateLegacyLog has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/advancement-key-store.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33e69714f1a62700b2c9bc292624900e3086589fe31964e3b0a1034000648ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function anthropicMediaBlock (cyclomatic 14, cognitive 14): anthropicMediaBlock has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ad9c6fc1c9818eee7eb270ddeda179b4f670389452e56718149c25b7017f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rawFetch (cyclomatic 13, cognitive 14): rawFetch has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3d08d13410590a018a6367c7ac968436447653951cfb2dc8a5292b0d120eb4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/test/client-expanded.test.ts"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14bb9de35eafb5b3baa9ebeeff68f71cb2717423e666d679c1c4f8d975ee271"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probeHeadroomProxy (cyclomatic 13, cognitive 10): probeHeadroomProxy has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"f137d92dda02990b529cc871778ce04a564d2b472bc53085356a69f7ce8f1fc3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extractToolCalls (cyclomatic 12, cognitive 22): extractToolCalls has cyclomatic complexity 12 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/hooks.ts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"add71698a79ff22b0303fb5a57d83d93c0a975f0c14177921f8f9df9135fa5bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replaceTextBlocks (cyclomatic 12, cognitive 18): replaceTextBlocks has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b36031ef0e3a2e5c3aa55a47bf9d7f1abcb3235f76dce7db0c2f55bbdf27636"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function scheduled (cyclomatic 12, cognitive 17): scheduled has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdaf5d878593eb6ec94a0ad7d60317da47f8ad8a24fe21caa8ee3be62d8d8d3a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function bar (cyclomatic 12, cognitive 15): bar has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea61401ff66944351b08160542de88e194cd80de705bf6d59b2b5945f8fd8c2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e74bcc927b6ba4515bbeecbc8059b9701d13445fbd8c2d05bc9017eca8ea89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7d3c3267c48efaf0b14fd97ecf0fc83b2d4ef541a6213eca6ba067889240f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"f510708fb3471eebb26926ef2f938dfef2b30bbd4a3147046e4280a17d5d925c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extract (cyclomatic 11, cognitive 17): extract has cyclomatic complexity 11 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4f4024c0352b4cd665ab76d3c1fa4859cca3fc0df2a9fad0710f7401271fdf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function unwrap (cyclomatic 11, cognitive 11): unwrap has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0b8966f4cb17eb92a9adba40be5adc6cb3589e0aefc789ba4b21d1b2576347"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function withCompressedArguments (cyclomatic 11, cognitive 11): withCompressedArguments has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"870052d6a5c9dacbd8429651f1029967270a87deeec3fef7b3388c3fa0d821f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcf3565e041dbc405b14f2661df69f320e4a6210018b3cf2499073837ca8c58"}},{"ruleId":"R3","level":"warning","message":{"text":"sdk/typescript/src/utils/format.ts: 1020 lines of code: sdk/typescript/src/utils/format.ts has 1020 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/format.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b358d7fd058427d1b5534378e15085fbfe452a3827dab68870139cccea43b918"}},{"ruleId":"R3","level":"warning","message":{"text":"plugins/opencode/src/transport.ts: 810 lines of code: plugins/opencode/src/transport.ts has 810 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/transport.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"357946f9c9746e64efcf7744d20bbe6311cf18a532a81768c250b05d48d1e332"}},{"ruleId":"R3","level":"warning","message":{"text":"deploy/beacon/worker.js: 600 lines of code: deploy/beacon/worker.js has 600 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e00245577460b095f92ec5c63c8d73e05171b548c456129f57c372283e9eed5"}},{"ruleId":"R3","level":"warning","message":{"text":"headroom/providers/opencode/hook-shim/handler.js: 585 lines of code: headroom/providers/opencode/hook-shim/handler.js has 585 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"566d13a7ccb39f4b5b6cf9d92ceb90918fd6382fbb4fe8447bbc66ae02689561"}},{"ruleId":"R3","level":"warning","message":{"text":"sdk/typescript/src/client.ts: 550 lines of code: sdk/typescript/src/client.ts has 550 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b592ed3830681f48d07c8317bffecd877f859002324d168bd9c7f36e54857fc3"}},{"ruleId":"R3","level":"warning","message":{"text":"plugins/openclaw/src/convert.ts: 500 lines of code: plugins/openclaw/src/convert.ts has 500 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/convert.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9912f31bf13161f0b7dd1f2054b8c5f828f960e1b01cfb9ef3a48fb60cf22d41"}},{"ruleId":"R3","level":"warning","message":{"text":"plugins/openclaw/src/proxy-manager.ts: 469 lines of code: plugins/openclaw/src/proxy-manager.ts has 469 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/proxy-manager.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e037e48862a4aaba59127c76a5f7f4a55960b9d0fb242b697afa7368849bd942"}},{"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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4b16175bc8a396ea413a92c44da5e9e831b5778d66c3cbcf6ebb8b7dfb67f9"}},{"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":"deploy/beacon/test-rollup.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3baff464f1f11281c4687b41bd6e6e5aa9e65e6fd6aae1c9081dd7120fe8ae6"}},{"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":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55972b647fe21a91dccb77634d13183c8e794e657b4978ce9c1b176193c36bc4"}},{"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":"plugins/openclaw/prepare-dist.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dda21fc702e4786bc160027024452960b3e8ea44459484ce2f1d62ef48fb7e"}},{"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":"plugins/opencode/src/hook-shim.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"790dce17016ea32792734a9d2eef065c03f39cffb7eacb40f42773f1a026ea8e"}},{"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":"plugins/openclaw/hook-shim/handler.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52090e14f83790980fa3abf2126e47af7e04650b91ba9abeebab5837d2ca3164"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~336 LoC): no import path from any entry point (21 application, 12 tooling, 42 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/headroom-snip/hooks/register.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb74ef5cbd593753ff7d9d2d255bf6071d97ec309a5e48bdf1e838d889d3baf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~96 LoC): no import path from any entry point (21 application, 12 tooling, 42 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_sdk_provider_peers.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfe199d3519b3ae33b01d6edab3908f1fa0644fc8e5e4a1123af9371a9240f7"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~62 LoC): no import path from any entry point (21 application, 12 tooling, 42 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_anthropic_peer.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd06ed208d021aa67667cac32169e85393212a204f2d7979ec36507542e578f1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~26 LoC): no import path from any entry point (21 application, 12 tooling, 42 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_opencode_bundle.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13cc3074d4ebe092def63b7034663c33d5cd8bebf0475f5001bd9490b20623f9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~15 LoC): no import path from any entry point (21 application, 12 tooling, 42 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_sdk_dist_compat.mjs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f42d811b45643428175cbe95344580fd304dc3d60572a141e79cb756f0ee3f3"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027@anthropic-ai/sdk\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/verify_docs_anthropic_sdk.mjs"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"2945876ff56e857bf542154aece87a20c09343c3dcb5a8f401d48762a3ce47bf"}},{"ruleId":"R8","level":"error","message":{"text":"Unlisted import \u0027zod\u0027: Imported but not declared in any reachable package.json \u2014 installs work only by hoisting accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/plugin.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ed95412361442b8e3f63092d414168d82c4de02270725992e504084deaf0a2"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@openai/codex\u0027: Declared in e2e/wrap/tools/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":"f1c29c3e0cf4680d4e327e56fa392cc2761192a011744b706e2dea799473116c"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@typescript/native\u0027: Declared in plugins/openclaw/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":"8155078da5bac0405be7349a6dd8a756dfcb6cc95857487428910df2287b10f5"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@typescript/native\u0027: Declared in plugins/opencode/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":"89c93212cdee34c2db3ddab329d9886447d0fe84928440e7e2525f659b2f09f7"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is configured \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060vercel.json\u0060 configures this repository\u0027s static hosting, including its response headers, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/vercel.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e04a5991953416814cfdc2a07fced0ff408cd72ea16d11b77014ff03d4913f"}},{"ruleId":"X1","level":"warning","message":{"text":"Task from \u0060loop.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":"headroom/subscription/codex_rate_limits.py"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be7a735370276186260859028fa7fc319a28b7f21b5677c978f84ec9dc4ac2d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isLlmMethod(method) || !isRoutableUpstream(url, proxy, excludeHosts)\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ffe9857f327c60ed505084c31a3bd2410d474b04a6d246b518dbb5a61511ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Boolean(value) \u0026\u0026 typeof value === \u0022object\u0022 \u0026\u0026 !Array.isArray(value) \u0026\u0026 !(value instanceof URL)\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b512c86d096e9c1c9f56918b6c4eed774f93ab526943ebdf18db406f6826564"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dir \u0026\u0026 existsSync(path.join(dir, \u0022npm.cmd\u0022))\u0060 appears character-identically in 2 files \u2014 scripts/build_npm_release_assets.mjs, scripts/verify_npm_release_assets.mjs. 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":"scripts/build_npm_release_assets.mjs"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d144c5b3832a3fa727023851bdbe005668f69ff7180f1e54aa41b304a51fa327"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060end \u003E 0 \u0026\u0026 value.charCodeAt(end - 1) === 47\u0060 appears character-identically in 2 files \u2014 plugins/opencode/src/retrieve.ts, sdk/typescript/src/client.ts. 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":"plugins/opencode/src/retrieve.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a275e99fb3fca0026b590555ffad12c7f0bdba54b49641755f84a554c04ca7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060normalized === \u0022localhost\u0022 || normalized === \u0022::1\u0022 || normalized === \u00220.0.0.0\u0022\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ae5f974ecb52a2d27a8344e0e4368d22550d7b4dfb728e76ef87f9c37011c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pathname.endsWith(\u0022:generateContent\u0022) || pathname.endsWith(\u0022:streamGenerateContent\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e46a9cea77c7547810cf1da893e6a546335ce169c4a8cbdedf642f210cc7aed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060protocol !== \u0022http:\u0022 \u0026\u0026 protocol !== \u0022https:\u0022\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc494f88115b7fdf3a44c2ca02dc9b5f8caff8e9b16cc81de1c9949ba449774e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060proxy.protocol !== \u0022http:\u0022 \u0026\u0026 proxy.protocol !== \u0022https:\u0022\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"403b72cb025c3a587fa5fa8def74c007b36368926d160a71652c63d69559c3e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof first === \u0022object\u0022 \u0026\u0026 first !== null\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51446eb1e7be824e9deb4ab3fa0102af3e836759f1549db5f7e810fdc373c2d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof method === \u0022string\u0022 \u0026\u0026 method.toUpperCase() === \u0022POST\u0022\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cbcf11caf7329d0642aad52bbe05181c3538d2b0ce843bef7cda674b310aa65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof second === \u0022object\u0022 \u0026\u0026 second !== null\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"489766f9766eb270656fd75189defba94032f2acd6c400b87d49cc881008ac05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.protocol !== \u0022http:\u0022 \u0026\u0026 url.protocol !== \u0022https:\u0022\u0060 appears character-identically in 2 files \u2014 headroom/providers/opencode/hook-shim/handler.js, plugins/opencode/src/transport.ts. 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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"78786c34ad17ab6bf98273cc1ecccd946b8dcd7d6da73f051075b7857539e80b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022google\u0022 in module_path.lower() or \u0022gemini\u0022 in module_path.lower()\u0060 appears character-identically in 2 files \u2014 headroom/integrations/agno/providers.py, headroom/integrations/strands/providers.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":"headroom/integrations/agno/providers.py"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f50a89a56b0361ee2683467a665ed00a4bc43c2bfacdd07d64de29184c22ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022gpt\u0022 in model_id_lower or \u0022o1\u0022 in model_id_lower or \u0022o3\u0022 in model_id_lower\u0060 appears character-identically in 2 files \u2014 headroom/integrations/agno/providers.py, headroom/integrations/strands/providers.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":"headroom/integrations/agno/providers.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"479b00dca9bbbdeedd8c51a2bddf74cf33715b8b8cb54a57444a203892f9445f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022openai\u0022 in module_path.lower() or \u0022litellm\u0022 in module_path.lower()\u0060 appears character-identically in 2 files \u2014 headroom/integrations/agno/providers.py, headroom/integrations/strands/providers.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":"headroom/integrations/agno/providers.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"62dd709b75f2eab157284777827efac2866a752f1604d50d19ad405c189d1a7d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060\u0022rate\u0022 in error_str or \u0022limit\u0022 in error_str\u0060 appears character-identically in 2 files \u2014 headroom/backends/anyllm.py, headroom/backends/litellm.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":"headroom/backends/anyllm.py"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ceb0f80e5ad2dfeddd589c4be9be99ba4bd2ef50ba36c9e0152a5d36e62165"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Path(\u0022/.dockerenv\u0022).exists() or bool( os.environ.get(\u0022HEADROOM_IN_DOCKER\u0022, \u0022\u0022).strip() )\u0060 appears character-identically in 2 files \u2014 headroom/cli/update.py, headroom/update_check.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":"headroom/cli/update.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"943e9adecc8dc58af58de6848a9c314fe213efb9d65ea67da0b2f05a4c77b891"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_PROVIDER_MARKER_START in content or _MCP_MARKER_START in content\u0060 appears character-identically in 2 files \u2014 headroom/cli/wrap.py, headroom/providers/opencode/config.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":"headroom/cli/wrap.py"},"region":{"startLine":9245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6c80e86d5dd69f751c4651b6afc9cd548647e9f3b086b801b46e6e304e10ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060batch_context is None or not self.config.ccr_inject_tool\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/batch.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6873}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ad71426eee1d115ad93c3472e4936121e6d9637cdedb34b01ca1d7dabc647e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.get(\u0022previous_response_id\u0022) or body.get(\u0022conversation\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/proxy/conversation_savings.py, headroom/proxy/handlers/openai.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":"headroom/proxy/conversation_savings.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e0d7aeeabaad07a4dcca83367505a551993fc5a071c9df55db219d5341cabf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060body.get(\u0022stream\u0022, False) or force_stream\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c8ea6fe57867005098c8aff06f2ab7de3648910b520ab39f863f544120abb8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060buffered_stream_ccr and response.status_code == 200 and not resp_json\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5870}}}],"partialFingerprints":{"codehealthFindingId/v1":"620c6e1a4ad63a799e054ba983126bebe824555a70f25829b480dc886c7177b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060buffered_stream_ccr and response.status_code == 200 and resp_json\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5077}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4434e418d32156f5a4216311f524b5b12953596d89078caf4901c2fac299ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060client is not None and hasattr(client, \u0022close\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/cache/backends/redis.py, headroom/cache/shared_sessions.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":"headroom/cache/backends/redis.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1087da0c11e53d0c00a093e2dff9830a26557f5ec1eb55fb4be03d4faa4515cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060compressor and compressor.has_images(messages)\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f536fb686f6fb9ee01c7b8816809a3974825d143b5a42d0c78ccfded18489318"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060compressor and hasattr(compressor, \u0022close\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb045e2e92e53cd6f370a1f9ad589f940d61f97a0fdd0f7d2caf7b2b69532e0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content_length and int(content_length) \u003E MAX_REQUEST_BODY_SIZE\u0060 appears character-identically in 4 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/batch.py, headroom/proxy/handlers/gemini.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1484}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3dec23cd3f8c261a8a680f0f145300de588b259dba30d4eef83b0bb070b2c29"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060deadline_started_at is not None and not router.share_request_deadline(deadline_started_at)\u0060 appears character-identically in 2 files \u2014 headroom/transforms/compression_batches.py, headroom/transforms/compression_units.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":"headroom/transforms/compression_batches.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd16e5a38b1f173d5bf62bd94c6e96214393c3baa6a47649468f92fe49bf8c08"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing is not None and _specs_equivalent(existing, spec)\u0060 appears character-identically in 3 files \u2014 headroom/mcp_registry/antigravity.py, headroom/mcp_registry/codex.py, headroom/mcp_registry/opencode.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":"headroom/mcp_registry/antigravity.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e1abe49eb06b8f161beaa5e77540501294fb8ff37144769bb0524212302186"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060extract_user_query(optimized_messages) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1f4055e7e62e57013a2f29d0dbeed62d523926c16b64882e42cd4699cfa711"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060factory_api_url or os.environ.get(\u0022FACTORY_TARGET_API_URL\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/cli/proxy.py, headroom/cli/wrap.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":"headroom/cli/proxy.py"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fee5ed43d014da7dd2ef3d279ad375258d9525f2160bd9083cbb9b709f52648"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060facts or extracted_entities or extracted_relationships\u0060 appears character-identically in 3 files \u2014 headroom/memory/backends/direct_mem0.py, headroom/memory/backends/local.py, headroom/memory/system.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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"50077d09bb5d2f0e8179081dd0ac0fb8943368e587b509e1c625c5563f639e03"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060filter.entity_refs is not None and len(filter.entity_refs) \u003E 0\u0060 appears character-identically in 3 files \u2014 headroom/memory/adapters/hnsw.py, headroom/memory/adapters/sqlite.py, headroom/memory/adapters/sqlite_vector.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":"headroom/memory/adapters/hnsw.py"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"c35c4516019552dcfa1da2e765cd5074eae42f895347ab40e901417fbc464e34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(proxy, \u0022http_client_h1\u0022, None) or proxy.http_client\u0060 appears character-identically in 2 files \u2014 headroom/providers/model_metadata.py, headroom/providers/proxy_routes.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":"headroom/providers/model_metadata.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"15702ca70c42df42419a4eff244f12b34b9af32dcb111edea317782ea83cf56b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(response.usage, \u0022completion_tokens\u0022, 0) or 0\u0060 appears character-identically in 2 files \u2014 headroom/backends/anyllm.py, headroom/backends/litellm.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":"headroom/backends/anyllm.py"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cf8b72f32494e5013ba23f3465d6beb90bfc938b1954514b0ac99c0011a095"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(response.usage, \u0022prompt_tokens\u0022, 0) or 0\u0060 appears character-identically in 2 files \u2014 headroom/backends/anyllm.py, headroom/backends/litellm.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":"headroom/backends/anyllm.py"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1623d053567c5d7d83cff2f7c7417de08fecc05c6900b688bdb2605a0bd5c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(result, \u0022stderr\u0022, \u0022\u0022) or getattr(result, \u0022stdout\u0022, \u0022\u0022) or \u0022unknown error\u0022\u0060 appears character-identically in 2 files \u2014 headroom/install/runtime.py, headroom/install/supervisors.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":"headroom/install/runtime.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dfe2398dfe90b2c98b03e34c2ccd12ac5b5578436fc9e30365b17af8222fdf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self, \u0022http_client_h1\u0022, None) or self.http_client\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/streaming.py, headroom/proxy/server.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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee52b589b3ec3cfd3aa559643e463621ad36e2d48e3ac6bfd8254e0879d51fb1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self.config, \u0022ccr_resolve_markers_inline\u0022, False) and resp_json and response.status_code == 200\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5783}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b1bbad3573e2c7acd013187a3824192f742faa88203f310ab0c3a65f194f3d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getattr(self.memory_handler.config, \u0022project_root_override\u0022, \u0022\u0022) or None\u0060 appears character-identically in 3 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/gemini.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2cb53750634ca187dced8b96f44aa5123c22200ef5d2e2d732398722f612de2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(message, \u0022tool_calls\u0022) and message.tool_calls\u0060 appears character-identically in 2 files \u2014 headroom/backends/anyllm.py, headroom/backends/litellm.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":"headroom/backends/anyllm.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"6180b4c5dd8d7036eb059f7ed74df8897581904137eaa86ff6967d9e1fd7cc45"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(msg, \u0022role\u0022) and hasattr(msg, \u0022content\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/integrations/agno/model.py, headroom/integrations/strands/model.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":"headroom/integrations/agno/model.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"59395ad063c6cb1e051dc24aeef996f47cbe84ee9c6d370f742b919f5f64d2da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(msg, \u0022tool_call_id\u0022) and msg.tool_call_id\u0060 appears character-identically in 2 files \u2014 headroom/integrations/agno/model.py, headroom/integrations/strands/model.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":"headroom/integrations/agno/model.py"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f2456393f3226e9cbfd71c182c852a99bc81c125ad344a350edb5f482988926"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(msg, \u0022tool_calls\u0022) and msg.tool_calls\u0060 appears character-identically in 4 files \u2014 headroom/integrations/agno/model.py, headroom/integrations/langchain/chat_model.py, headroom/integrations/langchain/memory.py, headroom/integrations/strands/model.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":"headroom/integrations/agno/model.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"f686ef3cac218e12f05735cecc12fe1f144f1456f465a51b05b28b7d237a3335"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(r, \u0022related_entities\u0022) and r.related_entities\u0060 appears character-identically in 2 files \u2014 headroom/memory/mcp_server.py, headroom/proxy/memory_handler.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":"headroom/memory/mcp_server.py"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc44617b36be3171f17b90b2e6d2d7a02d6aafbe6cd1567923a2e971c5b1558"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(response, \u0022usage\u0022) and response.usage\u0060 appears character-identically in 3 files \u2014 headroom/backends/anyllm.py, headroom/evals/memory/runner_v2.py, headroom/providers/registry.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":"headroom/backends/anyllm.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"488106bc9dbdb9867e137397a9b62e352d2dad358c770c542c3802c01c8323d0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060hasattr(torch.backends, \u0022mps\u0022) and torch.backends.mps.is_available()\u0060 appears character-identically in 2 files \u2014 headroom/models/ml_models.py, headroom/transforms/kompress_compressor.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":"headroom/models/ml_models.py"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ec4000863c41cab296976aa9d638f6b8720931883e8397b75d656b6d8b17c2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_signals.has_small_details \u003E 0.5 or image_signals.is_complex \u003E 0.5\u0060 appears character-identically in 2 files \u2014 headroom/image/onnx_router.py, headroom/image/trained_router.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":"headroom/image/onnx_router.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a4d75bac80054b00a8436e73785f113cd5945be035e07cadc9e3393b88217e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060image_signals.has_text \u003C 0.4 and image_signals.is_document \u003C 0.4\u0060 appears character-identically in 2 files \u2014 headroom/image/onnx_router.py, headroom/image/trained_router.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":"headroom/image/onnx_router.py"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a76f24569b62e2ae01ac594907f7a8400a97c90202d5c3cf6c73e068dbbece4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060info and info.get(\u0022input_cost_per_token\u0022) is not None\u0060 appears character-identically in 2 files \u2014 headroom/pricing/litellm_pricing.py, headroom/proxy/savings_tracker.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":"headroom/pricing/litellm_pricing.py"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e7022eb8c6fe2c98ba430adab6658221c732f116b1b984538a1035163365e9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inp.get(\u0022file_path\u0022) or inp.get(\u0022path\u0022) or \u0022\u0022\u0060 appears character-identically in 3 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.py, headroom/transforms/read_maturation.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":"headroom/audit/maturation.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"599b7cba05e9fb8d8edc608b72018390ef276af20ef9456f49521152f3b93991"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inp.get(\u0022offset\u0022) is not None or inp.get(\u0022limit\u0022) is not None\u0060 appears character-identically in 2 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.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":"headroom/audit/maturation.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34753f6dc64e87359c73e6010fa7381c034423426a196619b39a4972021dde2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(account_id, str) and account_id.strip()\u0060 appears character-identically in 2 files \u2014 headroom/providers/codex/install.py, headroom/providers/codex/runtime.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":"headroom/providers/codex/install.py"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37701bb8b66ac8ffc5582315c32f02b73cd078983d902708d1bd5269e926656"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(b, dict) and \u0022cache_control\u0022 in b\u0060 appears character-identically in 2 files \u2014 headroom/cache/prefix_tracker.py, headroom/proxy/helpers.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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b6235d65a694cd9d723e6c997b5f4f320c7694cd1069dab1358900855ce434"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(b, dict) and b.get(\u0022type\u0022) == \u0022text\u0022\u0060 appears character-identically in 9 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.py, headroom/backends/litellm.py, headroom/cache/compression_cache.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":"headroom/audit/maturation.py"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca43985d733572bb5d5d0a4ce2df6a95c8948bd85dae77ccd2c483c11e0763ee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(b, dict) and b.get(\u0022type\u0022) == \u0022tool_result\u0022\u0060 appears character-identically in 5 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.py, headroom/cache/compression_cache.py, headroom/learn/verbosity.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":"headroom/audit/maturation.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"7487f26458bc965bcc9f22a008946fff41dd3343b1d4b20abaf54153045d2623"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(b, dict) and b.get(\u0022type\u0022) == \u0022tool_use\u0022\u0060 appears character-identically in 4 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.py, headroom/learn/verbosity.py, headroom/transforms/read_maturation.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":"headroom/audit/maturation.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"481acfabca6b90eb54bb3d5e79acfee60481eec28d66da776b9e7187374805c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, dict) and \u0022cache_control\u0022 in block\u0060 appears character-identically in 3 files \u2014 headroom/backends/litellm.py, headroom/cache/anthropic.py, headroom/proxy/handlers/anthropic.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":"headroom/backends/litellm.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67967b8ac5e8cf85c80ebd5aeb75fc058cfdc5e0d49bd165cbbdb2f4e9db1c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, dict) and block.get(\u0022type\u0022) == \u0022text\u0022\u0060 appears character-identically in 14 files \u2014 headroom/cache/anthropic.py, headroom/cache/base.py, headroom/cache/openai.py, headroom/cache/prefix_tracker.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":"headroom/cache/anthropic.py"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf4b6f90a0ac8ff4552ddf29238eeab969f9848f4e9c0330eae4fe8c36d9189"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, dict) and block.get(\u0022type\u0022) == \u0022tool_result\u0022\u0060 appears character-identically in 4 files \u2014 headroom/cache/compression_cache.py, headroom/evals/session_probes.py, headroom/proxy/helpers.py, headroom/proxy/interceptors/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":"headroom/cache/compression_cache.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9358b3f46b609893cb86a3ec659ec8a835356eab43bc3337ee40bd2948079282"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(block, dict) and block.get(\u0022type\u0022) == \u0022tool_use\u0022\u0060 appears character-identically in 5 files \u2014 headroom/ccr/tool_calls.py, headroom/memory/traffic_learner.py, headroom/proxy/memory_handler.py, headroom/proxy/memory_tool_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":"headroom/ccr/tool_calls.py"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d72c52c25b6512409f8a76d86977b397a8333977044b911b9a358a59c99c85f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(content, str) and content.strip()\u0060 appears character-identically in 3 files \u2014 headroom/learn/plugins/claude.py, headroom/learn/plugins/grok.py, headroom/proxy/helpers.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":"headroom/learn/plugins/claude.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"3432452e019c894383a9a5f52418ac371e925db39e999d1a915b52e823bd5ea3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(instructions, str) and instructions\u0060 appears character-identically in 3 files \u2014 headroom/proxy/gateway_responses.py, headroom/proxy/handlers/openai.py, headroom/proxy/output_savings_policy.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":"headroom/proxy/gateway_responses.py"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7293de25335045bfdb7dc270120b05f905d8edb1eb8e63e91b7ae086733a796"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(item, dict) and item.get(\u0022type\u0022) == \u0022function_call\u0022\u0060 appears character-identically in 2 files \u2014 headroom/ccr/tool_calls.py, headroom/proxy/memory_handler.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":"headroom/ccr/tool_calls.py"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e68ecc1370c1833b0b1f3fe57bbd1fe1fe4e75739242e42c2bcb321d960e65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(item, dict) and item.get(\u0022type\u0022) == \u0022text\u0022\u0060 appears character-identically in 2 files \u2014 headroom/ccr/tool_injection.py, headroom/evals/session_probes.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":"headroom/ccr/tool_injection.py"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"08eb475a0a3fa8edff30885955caf01819e495fb6023daef56a4e1924c08b042"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(k, str) and isinstance(v, str)\u0060 appears character-identically in 2 files \u2014 headroom/providers/registry.py, headroom/settings_store.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":"headroom/providers/registry.py"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ce838344c3cfb341ebc82221bfeb7f74a390ac92e89d0259f5cf4e9cc24144"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(login, str) and login.strip()\u0060 appears character-identically in 2 files \u2014 headroom/copilot_linux_secret.py, headroom/copilot_macos_keychain.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":"headroom/copilot_linux_secret.py"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab06d681c8a818ec436b455f9c573235299a036ef720cd54411d2e49fc02307f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(message, dict) and message.get(\u0022role\u0022) in (\u0022system\u0022, \u0022developer\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/proxy/gateway_turn.py, headroom/proxy/output_steering.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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1343}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce54a5da791593b56b3cd128103848612b12700c1a75fdd8fd5d23faf0cb0c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(part, dict) and isinstance(part.get(\u0022text\u0022), str)\u0060 appears character-identically in 3 files \u2014 headroom/proxy/handlers/openai.py, headroom/proxy/output_savings_policy.py, headroom/proxy/output_turn_policy.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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d177319232fa3dc0bf80acc44e01c0ecb98a56104f22d4024da3c505f6acd1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(part, dict) and part.get(\u0022type\u0022) == \u0022text\u0022\u0060 appears character-identically in 4 files \u2014 headroom/parser.py, headroom/providers/cohere.py, headroom/providers/google.py, headroom/tokenizers/mistral.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":"headroom/parser.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"62228ab4a5f7e39e717de7dc2991d6053659ea3c774c743ca800a54a0fdcc66e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(result, dict) and \u0022results\u0022 in result\u0060 appears character-identically in 3 files \u2014 headroom/memory/backends/direct_mem0.py, headroom/memory/backends/mem0.py, headroom/memory/backends/mem0_system_adapter.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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"990278f7ddb7c46368092e6b3c472233e8cbf53b053be06b2eced0ecfefd545f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(t, dict) and t.get(\u0022defer_loading\u0022)\u0060 appears character-identically in 3 files \u2014 headroom/cache/prefix_tracker.py, headroom/proxy/gateway_turn.py, headroom/proxy/handlers/anthropic.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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"9077885b9e77ae932c9f0865e6241730e919b29eda72c8054371cbd3dd5b1b31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(value, str) and value.strip()\u0060 appears character-identically in 3 files \u2014 headroom/copilot_auth.py, headroom/learn/plugins/grok.py, headroom/providers/codex/project_context.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":"headroom/copilot_auth.py"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba11195e2e905f9deeca62e60174736d4748e91ea3d723995f6303d5ea3b59c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lock is not None and not lock.acquire(timeout=_SESSION_TURN_LOCK_TIMEOUT_SECONDS)\u0060 appears character-identically in 2 files \u2014 headroom/proxy/gateway_turn.py, headroom/proxy/handlers/openai.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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1443}}}],"partialFingerprints":{"codehealthFindingId/v1":"b291bec20ff4c24cfa677d60918ad8e28da9c0d5f8183c61af7cc319a1de3ba8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060marker_start not in content or marker_end not in content\u0060 appears character-identically in 2 files \u2014 headroom/cli/init.py, headroom/mcp_registry/codex.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":"headroom/cli/init.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4aec6286f111879d6933f4a3329de614591caeed1207de7db4cd41af59385c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060max_workers \u003C= 1 or len(session_files) \u003C= 1\u0060 appears character-identically in 3 files \u2014 headroom/learn/plugins/codex.py, headroom/learn/plugins/gemini.py, headroom/learn/plugins/grok.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":"headroom/learn/plugins/codex.py"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4a98d296880007e767adad604d8d1bdf2ce658fd73dfbbaec805e1619051ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060memory_context_injected or memory_tools_injected\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3569}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4eb3b3a2eff9d61536705bb2b59615fa58fbfa51b087ba6cd3d59c494d645d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name in MEMORY_TOOL_NAMES or name == NATIVE_MEMORY_TOOL_NAME\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/memory_handler.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ea5041f6a5f0c5d412ede9d45b628f0e88fb785e8259160a53d19ea7879e88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060neighbor_id is None or neighbor_id in visited\u0060 appears character-identically in 2 files \u2014 headroom/memory/adapters/graph.py, headroom/memory/adapters/sqlite_graph.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":"headroom/memory/adapters/graph.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3df0f63eeef4a69fdea38c4ac7919805ad8b7b898525d852c25862b0dac4747"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060neighbor_id is not None and neighbor_id not in visited\u0060 appears character-identically in 2 files \u2014 headroom/memory/adapters/graph.py, headroom/memory/adapters/sqlite_graph.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":"headroom/memory/adapters/graph.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda48b52b6fcb38efc926ae6bedbd93c5332fc773e70242b513c0032d157865b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not errors and compute_exact_match(response_original, response_compressed)\u0060 appears character-identically in 3 files \u2014 headroom/evals/batch_compression_eval.py, headroom/evals/core.py, headroom/evals/runners/before_after.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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1152}}}],"partialFingerprints":{"codehealthFindingId/v1":"092ee6015cbee8f0964a596ef4da0cf3ae3f1429ab834f3be381fcf46ae86fee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(block, dict) or block.get(\u0022type\u0022) != \u0022tool_result\u0022\u0060 appears character-identically in 6 files \u2014 headroom/learn/plugins/claude.py, headroom/memory/traffic_learner.py, headroom/proxy/memory_query_policy.py, headroom/transforms/content_router.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":"headroom/learn/plugins/claude.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4a92cdfe2863388ff4ae79ca7a4c4ad6dbef748bec863dd363b4676842d7fe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(block, dict) or block.get(\u0022type\u0022) != \u0022tool_use\u0022\u0060 appears character-identically in 3 files \u2014 headroom/learn/plugins/claude.py, headroom/transforms/read_lifecycle.py, headroom/transforms/smart_crusher.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":"headroom/learn/plugins/claude.py"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"149959b072828b0f950cdf18fba5333b015a18cbd8ab3da6d80c7b2988fe182e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(choices, list) or not choices\u0060 appears character-identically in 2 files \u2014 headroom/ccr/response_handler.py, headroom/ccr/tool_calls.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":"headroom/ccr/response_handler.py"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f71a670521e214164f0b8594721b4e013f7b8f8042da75df1ce0770d7bbc06f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(content, list) or not content\u0060 appears character-identically in 4 files \u2014 headroom/cache/prefix_tracker.py, headroom/providers/hermes.py, headroom/proxy/helpers.py, headroom/proxy/output_turn_policy.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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f2c491d486073492c9adea5b04009c9b3fe388f8ccb9f9065249126bc85f4f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(input_data, list) or not input_data\u0060 appears character-identically in 2 files \u2014 headroom/proxy/output_shaper.py, headroom/proxy/output_turn_policy.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":"headroom/proxy/output_shaper.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"919e2e8351fd918f5cc1f77d4d680b3d4959f2ad0ee29a4a212f8f4f4d57ffac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(msg, dict) or msg.get(\u0022role\u0022) != \u0022user\u0022\u0060 appears character-identically in 2 files \u2014 headroom/memory/storage_router.py, headroom/proxy/helpers.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":"headroom/memory/storage_router.py"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b3ed43945a663eb4dd36ebd1add03bbca453b930636d48d88da2602553b5ad"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(tools, list) or not tools\u0060 appears character-identically in 3 files \u2014 headroom/proxy/gateway_turn.py, headroom/proxy/helpers.py, headroom/proxy/tool_schema_compaction.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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7294a95f50e889fa760d233d4144aab3d8fea78b3da8b9c99a0e7b2598c3d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not previous_original_messages or previous_forwarded_messages is None\u0060 appears character-identically in 2 files \u2014 headroom/cache/prefix_tracker.py, headroom/proxy/handlers/anthropic.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":"headroom/cache/prefix_tracker.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b8236ecdce257967fed541d35ae660708c6c1ed8489cd739eefde8c776d79c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not self._use_api and not _FALLBACK_WARNING_SHOWN\u0060 appears character-identically in 2 files \u2014 headroom/providers/cohere.py, headroom/providers/google.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":"headroom/providers/cohere.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d51b16a4839c82e72dd26c3ab4805895968aebea059843025fe6a38898ce0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022HEADROOM_ACCURACY_GUARD\u0022) or None\u0060 appears character-identically in 2 files \u2014 headroom/cli/proxy.py, headroom/proxy/server.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":"headroom/cli/proxy.py"},"region":{"startLine":1571}}}],"partialFingerprints":{"codehealthFindingId/v1":"3363b7a3961e46b025885a4c4a67385e9cb0d245335cc7d23b1aad6349ea1d3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022HEADROOM_CCR_BACKEND\u0022) or \u0022\u0022\u0060 appears character-identically in 2 files \u2014 headroom/cache/compression_store.py, headroom/cache/shared_sessions.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":"headroom/cache/compression_store.py"},"region":{"startLine":1253}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc26ded947cf034d4b9c4f717fa89daeb5c13f6be05219722ef7a24efbd5cac6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022HEADROOM_PROXY_TOKEN\u0022) or None\u0060 appears character-identically in 2 files \u2014 headroom/cli/proxy.py, headroom/proxy/server.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":"headroom/cli/proxy.py"},"region":{"startLine":1656}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac25494931e73bdbb44a55006d23633d44c87f318e4ca678b13e5ba8c344b79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022HEADROOM_REDIS_URL\u0022, \u0022\u0022).strip() or session_store\u0060 appears character-identically in 2 files \u2014 headroom/cache/compression_store.py, headroom/cache/redis_client.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":"headroom/cache/compression_store.py"},"region":{"startLine":1288}}}],"partialFingerprints":{"codehealthFindingId/v1":"675a88a94c4e11b03f8368ab1a84f60f56fb9ba626612c3c480e5b9d449dede8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060os.environ.get(\u0022HEADROOM_SAVINGS_PROFILE\u0022) or \u0022coding\u0022\u0060 appears character-identically in 2 files \u2014 headroom/cli/proxy.py, headroom/proxy/server.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":"headroom/cli/proxy.py"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc8a1592cbe695781930f558fa2e3e41658315e735f12ebe634b9a3972587f88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060policy is not None and policy.toin_read_only\u0060 appears character-identically in 2 files \u2014 headroom/transforms/content_router.py, headroom/transforms/smart_crusher.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":"headroom/transforms/content_router.py"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d9df6b77546343de7f182ae4e27aaaac7e9937c8f4701febdb78cb2cf3d8bc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060project and \u0022HEADROOM_PROJECT\u0022 not in env\u0060 appears character-identically in 2 files \u2014 headroom/cli/wrap.py, headroom/providers/opencode/runtime.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":"headroom/cli/wrap.py"},"region":{"startLine":3374}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5fac867a8266e513c4fe3cfbf0ba9c6f31d337638dbbf035f1589fb144bee60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resolved.endpoint or \u0022the OTEL SDK\u0027s default OTLP endpoint\u0022\u0060 appears character-identically in 2 files \u2014 headroom/observability/metrics.py, headroom/observability/tracing.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":"headroom/observability/metrics.py"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c64de9b1d92a44d50ca1d8c18300cfb1637aa80a8fcbef08b6e590d9ee5807"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.choices[0].message.content or \u0022\u0022\u0060 appears character-identically in 5 files \u2014 headroom/cli/evals.py, headroom/evals/html_extraction.py, headroom/evals/memory/judge.py, headroom/evals/memory/runner.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":"headroom/cli/evals.py"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"532ce072ea7ae048a483645c6e1738f0b7109ad69f49eb315d5c11f237eea528"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.status_code == 200 and self.config.ccr_inject_tool\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/batch.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6595}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10f3f2e92fee30f12e7be5607e763534d2d995fbd24d2136321021f826d5fbf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result and result.get(\u0022tokens_saved\u0022, 0) \u003E 0 and \u0022messages\u0022 in result\u0060 appears character-identically in 2 files \u2014 headroom/integrations/asgi.py, headroom/integrations/litellm_callback.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":"headroom/integrations/asgi.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9464b774125063b3aeac14f5964381397225b6a1ac3b182fad215ca906a440f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060role == \u0022assistant\u0022 and isinstance(content, list)\u0060 appears character-identically in 2 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.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":"headroom/audit/maturation.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"036411250cbdd7795ce3f227dd498ad37839faf3dc64b69b38b439f28026ead6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060role == \u0022user\u0022 and isinstance(content, list)\u0060 appears character-identically in 2 files \u2014 headroom/audit/maturation.py, headroom/audit/reads.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":"headroom/audit/maturation.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f91426396713825e10e2d35372577bacc9c4b05d8018e09ff1fbbe058c1e30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self._backend and hasattr(self._backend, \u0022close\u0022)\u0060 appears character-identically in 2 files \u2014 headroom/evals/memory/runner_v2.py, headroom/memory/easy.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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"09bd71c852d66e45f71b80440ea4c6a361ec63eb9dcfc3d10907a34205fba8f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.cache and not stream and cache_partition is not None\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1968}}}],"partialFingerprints":{"codehealthFindingId/v1":"311360d57cfd62c81969b96270e802882a7932e481c94bd1588d68b6e07e5d3b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.ccr_inject_tool and tokens_saved \u003E 0\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/batch.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6480}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f3fad52247ebc935223d92204a6ba06b0ca271fb1f5278405a1c2c7e8c0e31"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.config.ccr_inject_tool or self.config.ccr_inject_system_instructions\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4e67b1bad8fa435c02f4c7d4371450bc43223b2e88dd592a0e3c9eeec36711"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.use_semantic_similarity and not errors\u0060 appears character-identically in 2 files \u2014 headroom/evals/batch_compression_eval.py, headroom/evals/runners/before_after.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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"450b779079d46ed40740da75771eba995fd5e632df4ae35b60ac3bdab1dc503e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060semantic_sim is not None and semantic_sim \u003E 0.85\u0060 appears character-identically in 2 files \u2014 headroom/evals/batch_compression_eval.py, headroom/evals/runners/before_after.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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3b16c7d4fb86acdc8a4bb773a44e7e2013f165bff8f7c1d716bfa36cd15ecb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060session_id is not None and memory.session_id != session_id\u0060 appears character-identically in 2 files \u2014 headroom/memory/adapters/cache.py, headroom/memory/backends/local.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":"headroom/memory/adapters/cache.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"55bf3aa82104d65006ecf84dcadcc3a9cd1b03268c44f1182f6bbf588844c6fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream_state[\u0022cache_creation_input_tokens\u0022] or 0\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/openai.py, headroom/proxy/handlers/streaming.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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12783}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59a0a1151c9c8e3560017aafced801e41780ee010841e3ee4513cb7ec4f848a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060stream_state[\u0022cache_read_input_tokens\u0022] or 0\u0060 appears character-identically in 2 files \u2014 headroom/proxy/handlers/openai.py, headroom/proxy/handlers/streaming.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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":12782}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b0e094d3a887e689dc7c59929aac38f9f7e69ceedaabb78615329542371ef3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060t == \u0022function_call\u0022 and pl.get(\u0022name\u0022) == \u0022exec_command\u0022\u0060 appears character-identically in 2 files \u2014 headroom/audit/codex.py, headroom/audit/maturation.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":"headroom/audit/codex.py"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec48d179215bb052de491d71c111fcd0f43e393a73c943ca5dd88aefcbf2567"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tags.get(\u0022turn_hook_tools_saved_tokens\u0022, 0) or 0\u0060 appears character-identically in 3 files \u2014 headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.py, headroom/proxy/tool_schema_savings_policy.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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3941}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c154cddc8e2073676781fbc57df774d6054586e50a2877abc81b25e41b5ad53"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tool_name and is_tool_excluded(tool_name, (CCR_TOOL_NAME,))\u0060 appears character-identically in 2 files \u2014 headroom/integrations/langchain/langgraph.py, headroom/integrations/strands/hooks.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":"headroom/integrations/langchain/langgraph.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10fe57af90cbc12aa33482db781c5a09105e0148f5649f0211793f54f4dd26d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage.get(\u0022cache_creation_input_tokens\u0022, 0) or 0\u0060 appears character-identically in 3 files \u2014 claude_analysis_ttl.py, headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"claude_analysis_ttl.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a91776aed1a7850d601f190192a8a91da3db99b84b1cbd1d5aad140ee127aaf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage.get(\u0022cache_read_input_tokens\u0022) or 0\u0060 appears character-identically in 2 files \u2014 headroom/proxy/context_guard.py, headroom/subscription/session_tracking.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":"headroom/proxy/context_guard.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e60590f951abee9e963bd29a1b908f4e9ac1b1d8eece2557895ab8672616c69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060usage.get(\u0022cache_read_input_tokens\u0022, 0) or 0\u0060 appears character-identically in 3 files \u2014 claude_analysis_ttl.py, headroom/proxy/handlers/anthropic.py, headroom/proxy/handlers/openai.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":"claude_analysis_ttl.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d59da577a97bc7125c566baf12d40db21530fa44f2585b322aa36964f51dda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060was_modified and tokens_after \u003C tokens_before\u0060 appears character-identically in 2 files \u2014 headroom/integrations/langchain/langgraph.py, headroom/integrations/strands/hooks.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":"headroom/integrations/langchain/langgraph.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"522af3fd9f7321bd6b844b85020d73e5e2279c4a4af201c2866e6c9c1d09a8ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!num.is_nan() \u0026\u0026 (num - mean_val).abs() \u003E threshold\u0060 appears character-identically in 2 files \u2014 crates/headroom-core/src/transforms/smart_crusher/analyzer.rs, crates/headroom-core/src/transforms/smart_crusher/orchestration.rs. 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":"crates/headroom-core/src/transforms/smart_crusher/analyzer.rs"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cc342b3afa9714d755f24a92d8c518fdb0c26406f0388dc1455ed5e2f032539"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060end == bytes.len() || !is_word_byte(bytes[end])\u0060 appears character-identically in 2 files \u2014 crates/headroom-core/src/signals/keyword_detector.rs, crates/headroom-core/src/transforms/log_compressor.rs. 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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"145574ada121b4074ee66276493385b72737ae8cf5311692a2250ae0357392e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060j \u003C bytes.len() \u0026\u0026 bytes[j].is_ascii_digit()\u0060 appears character-identically in 3 files \u2014 crates/headroom-core/src/transforms/log_compressor.rs, crates/headroom-core/src/transforms/pipeline/offloads/search_offload.rs, crates/headroom-core/src/transforms/search_compressor.rs. 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":"crates/headroom-core/src/transforms/log_compressor.rs"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab178935d9a160d6d89ff6a14ee0987542273ef06063c0da54806055e2eab72"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060self.e1_tool_sort || self.e2_schema_sort\u0060 appears character-identically in 3 files \u2014 crates/headroom-proxy/src/compression/live_zone_anthropic.rs, crates/headroom-proxy/src/compression/live_zone_openai.rs, crates/headroom-proxy/src/compression/live_zone_responses.rs. 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":"crates/headroom-proxy/src/compression/live_zone_anthropic.rs"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"9881cd70378686636ffc3a5070906d30c022a4e14716fe8a96b38f516f3c815e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060start == 0 || !is_word_byte(bytes[start - 1])\u0060 appears character-identically in 2 files \u2014 crates/headroom-core/src/signals/keyword_detector.rs, crates/headroom-core/src/transforms/log_compressor.rs. 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":"crates/headroom-core/src/signals/keyword_detector.rs"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6aa5dc7f6d588aecd2340c5b75e9201fda755f07badcea41d631edfa93e50ba"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060deepCamelCase\u0060 is exported and takes \u0060obj: any\u0060 from its caller, and it calls itself at line 16 (\u0060deepCamelCase\u0060) with a piece of \u0060obj\u0060 (and at line 19) \u2014 and nowhere in \u0060deepCamelCase\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. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060deepCamelCase\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/case.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dac375d20c3af3d90e51ef638ce4965336bb06fb276c7a6593057fcbaa476cb"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060deepSnakeCase\u0060 is exported and takes \u0060obj: any\u0060 from its caller, and it calls itself at line 27 (\u0060deepSnakeCase\u0060) with a piece of \u0060obj\u0060 (and at line 30) \u2014 and nowhere in \u0060deepSnakeCase\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. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060deepSnakeCase\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sdk/typescript/src/utils/case.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b7a0dbeceddacbce1e8032620682069c65f53727ba7c8e59d4763303a15ff9"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060unwrap_tool_call\u0060 is public, takes a document from its caller (line 546) and hands it to \u0060_decoded_strings\u0060, which calls itself at line 496 (\u0060_decoded_strings\u0060) with a piece of \u0060value\u0060 \u2014 and nowhere in \u0060_decoded_strings\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_decoded_strings\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/config.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"769bf4b74b59d20585d7f8acacc317ed672ea4edd596643001248111ae6eb9aa"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060strip_streaming_only_content_fields_in_place\u0060 is public, takes a document from its caller (line 429) and hands it to \u0060_strip_index_from_content_blocks_in_place\u0060, which calls itself at line 455 (\u0060_strip_index_from_content_blocks_in_place\u0060) with a piece of \u0060content\u0060 \u2014 and nowhere in \u0060_strip_index_from_content_blocks_in_place\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_strip_index_from_content_blocks_in_place\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/utils.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfafdf7f179814b790251f84bf34e83321116711fa32d831765b6eb4527c0a9b"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060build_otlp_logs\u0060 is public, takes a document from its caller (line 1565) and hands it to \u0060_any_value\u0060, which calls itself at line 1557 (\u0060_any_value\u0060) with a piece of \u0060value\u0060 (and at line 1561) \u2014 and nowhere in \u0060_any_value\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_any_value\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/telemetry/session.py"},"region":{"startLine":1557}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9ac9ceee0e899167a0d935091c32a425dce308d734503f6523bf972c37aa86"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060strip_safeguard_payload\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 131 (\u0060strip_safeguard_payload\u0060) with a piece of \u0060value\u0060 (and at line 136) \u2014 and nowhere in \u0060strip_safeguard_payload\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 \u0060strip_safeguard_payload\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/anthropic_wire.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56f2f888bcdaac3f863bc8967b4dcff82221a61a5e437934ecc128336715131"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060compute_turn_id\u0060 is public, takes a document from its caller (line 3575) and hands it to \u0060_strip_per_call_annotations\u0060, which calls itself at line 3569 (\u0060_strip_per_call_annotations\u0060) with a piece of \u0060obj\u0060 (and at line 3571) \u2014 and nowhere in \u0060_strip_per_call_annotations\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_strip_per_call_annotations\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/helpers.py"},"region":{"startLine":3569}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbb1279f8a40df64b123ccc949594b4836c2fe04222013c080b9990bae7625c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_image_base64_value\u0060 is public, takes a document from its caller (line 77) and hands it to \u0060_redact_value\u0060, which calls itself at line 100 (\u0060_redact_value\u0060) with a piece of \u0060value\u0060 (and at line 112) \u2014 and nowhere in \u0060_redact_value\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_redact_value\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/request_log_redaction_policy.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e704e7ce45c0d870aeb7e02bf9a94eab156454978e64c1473ac2819e48c2920"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060strip_cache_control\u0060 is public, takes a document from its caller (line 105) and hands it to \u0060_strip_cache_control\u0060, which calls itself at line 119 (\u0060_strip_cache_control\u0060) with a piece of \u0060obj\u0060 (and at line 124) \u2014 and nowhere in \u0060_strip_cache_control\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_strip_cache_control\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/semantic_cache_key_policy.py"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7a9706127f1d64b2ba65b556e088ffa3661d48b033ff1b8bb08d5341641dd3c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060compact_tool_schema_value\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 218 (\u0060compact_tool_schema_value\u0060) with a piece of \u0060value\u0060 (and at line 234) \u2014 and nowhere in \u0060compact_tool_schema_value\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 \u0060compact_tool_schema_value\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1973f4c8427c1fe12f084327c80e2cd6ff851341fdd72d2fa95e209375c5e4a"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060compact_tool_descriptions\u0060 is public, takes a document from its caller (line 371) and hands it to \u0060_truncate_descriptions_in_schema\u0060, which calls itself at line 341 (\u0060_truncate_descriptions_in_schema\u0060) with a piece of \u0060value\u0060 (and at line 360) \u2014 and nowhere in \u0060_truncate_descriptions_in_schema\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_truncate_descriptions_in_schema\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/tool_schema_compaction.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd9251092c4d672c61d3100c099d526f25cf873b488207d22f6e91182a8cdf1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060redact_for_wire_debug\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 60 (\u0060redact_for_wire_debug\u0060) with a piece of \u0060value\u0060 (and at line 65) \u2014 and nowhere in \u0060redact_for_wire_debug\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 \u0060redact_for_wire_debug\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/wire_debug_redaction_policy.py"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd4f8b65e0b3daefd47371f11bcbd1284000538d8a21dd08e4ccc4dfa87a95f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060sanitize_anthropic_model_metadata\u0060 is public and takes \u0060value: Any\u0060 from its caller, and it calls itself at line 98 (\u0060sanitize_anthropic_model_metadata\u0060) with a piece of \u0060value\u0060 (and at line 107) \u2014 and nowhere in \u0060sanitize_anthropic_model_metadata\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 \u0060sanitize_anthropic_model_metadata\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/providers/anthropic.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"867f190d0f2a60095e69677b6c26bb0e389858b40e4a2649aacdd0966b31dee2"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060estimate_object_size\u0060 is public and takes \u0060obj: Any\u0060 from its caller, and it calls itself at line 375 (\u0060estimate_object_size\u0060) with a piece of \u0060obj\u0060 (and at line 378, line 380) \u2014 and nowhere in \u0060estimate_object_size\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 \u0060estimate_object_size\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/tracker.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"158b0544a5931e767d0f57d058f3c7f864abdf6dd194933034489329504cca53"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060probe_event\u0060 is public, takes a document from its caller (line 266) and hands it to \u0060_all_text\u0060, which calls itself at line 208 (\u0060_all_text\u0060) with a piece of \u0060node\u0060 (and at line 211) \u2014 and nowhere in \u0060_all_text\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_all_text\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/evals/session_probes.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0d901ce3f9b3ca471fe558ab31a84a4ec5c56901619cb490bb17f1de8649b2"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060resolve_markers_in_response\u0060 is public and takes \u0060response: Any\u0060 from its caller, and it calls itself at line 77 (\u0060resolve_markers_in_response\u0060) with a piece of \u0060response\u0060 (and at line 80) \u2014 and nowhere in \u0060resolve_markers_in_response\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 \u0060resolve_markers_in_response\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/ccr/marker_resolution.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"533e78d6e853f5656bfd5f3a600d6a60daa94e0246b03da26d4dd11541c1c9a1"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060segment_fingerprint\u0060 is public, takes a document from its caller (line 582) and hands it to \u0060_canonicalize_for_prefix_compare\u0060, which calls itself at line 262 (\u0060_canonicalize_for_prefix_compare\u0060) with a piece of \u0060obj\u0060 (and at line 265) \u2014 and nowhere in \u0060_canonicalize_for_prefix_compare\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_canonicalize_for_prefix_compare\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cache/prefix_tracker.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be5fdf8b2ee66cb1b5afd16ba5bb8b6d8aaa91df3c8f4d1f805180d3b2b8a02"}},{"ruleId":"X19","level":"warning","message":{"text":"Process-global state is restored only on the happy path: \u0060_demo\u0060 changes state that belongs to the whole PROCESS and changes it back at the end of the same body \u2014 the \u0060DISABLE_PROMPT_CACHING\u0060 environment variable (set at line 285, cleared at line 289) and the \u0060DISABLE_PROMPT_CACHING_OPUS\u0060 environment variable (set at line 290, cleared at line 293) and the \u0060ENABLE_PROMPT_CACHING_1H\u0060 environment variable (set at line 294, cleared at line 298) \u2014 which says the change was meant to last no longer than this call. But the restore is an ordinary statement on the straight-line path, not a \u0060finally\u0060, so it is skipped by any exception raised in between: the process then keeps the overwritten value for the rest of its life, and every later relative path, \u0060subprocess\u0060 launch, \u0060os.environ\u0060 read or \u0060print\u0060 in ANY module sees it. That failure is silent and remote from its cause \u2014 the function that breaks is not the function that moved the value. The window is not private while it is open either: the working directory, the environment, the umask and \u0060sys.stdout\u0060 are per-process, not per-thread, so a concurrent thread sees the moved value too. The durable fix is not to widen the restore but to stop mutating the global: pass the value to the operation that needs it \u2014 the \u0060cwd=\u0060 and \u0060env=\u0060 arguments of \u0060subprocess.run\u0060/\u0060Popen\u0060 scope both to the CHILD, absolute paths built with \u0060os.path.join\u0060 or \u0060pathlib\u0060 need no working directory, and a stream handed to the code that writes needs no \u0060sys.stdout\u0060. Where the global genuinely must move, \u0060contextlib.chdir\u0060 (3.11\u002B), \u0060contextlib.redirect_stdout\u0060 or a \u0060try\u0060/\u0060finally\u0060 makes the restore run on every path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/cold_prefix.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"e526775560842955a09b2a6793d6cd15b83ab9e996c305e1cd0d353dcd176234"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 4258 is called with an argument built by \u0060\u0022\u2026\u0022.join(map(str, out.warnings))\u0060 (line 4259), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/content_router.py"},"region":{"startLine":4258}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4b35a89ef2276c418c28efb593193742f47c156e7d00e654ff497184b721a1"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 363 is called with an argument built by \u0060list(snapshot.categories.keys())\u0060 (line 366), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/subscription/copilot_quota.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"795eac723d37c471e2b6d6a029ac017645a86f719c066ce6397e89b73be47f59"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 378 is called with an argument built by \u0060sorted(tool_input.keys())\u0060 (line 380), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef09580dffe199eee8c1c5523dba91bb37e6aacde636bbb7d0705bf99acc5c1"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 8091 is called with an argument built by \u0060[k for k in upstream_headers if k.lower() != \u0022\u2026\u0022]\u0060 (line 8093), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8091}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e82f426e46959e2e6f8adada150c2178e211ea5f428b940621ebd62791c3276"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 213 is called with an argument built by \u0060sorted(payload.keys())\u0060 (line 213), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/init.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"906d79522b7a37205e88c381a3ed242b9e55149ae711e6e1299c5c377f88103e"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 778 is called with an argument built by \u0060sorted(values.keys())\u0060 (line 778), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/init.py"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c3c01e35e048472395b261c11ed502cbedc7e6f2d055a7239ce92274b5cbe8"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 943 is called with an argument built by \u0060sorted(allowed)\u0060 (line 946), whose cost grows with the collection it walks. Python evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isEnabledFor(logging.DEBUG)\u0060 test, no debug flag, no \u0060lambda\u0060 the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/cli/init.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"67dc93abcde58cec4ebfa971bc727db0cb4cabc8e6d61d5157225068a0342fcc"}},{"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":"claude_analysis_ttl.py"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"864e961e7501ca22b8e194b189d1b05b104d8920fe8b1f6ea5725be1cd37ec9c"}},{"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":"claude_analysis_ttl.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac225ec57956da5f6cbf7c9f9f14c5cf4955e2c419902be511e13c5b46286284"}},{"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":"claude_analysis_ttl.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc21adfb03e599f4aece35679a8a3b6cbec4dc44eea1b1171ad457bbaf63ed75"}},{"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":"sdk/typescript/src/client.ts"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8e81fb738fde762d1c5eb74f8e0db6d577296d5302bc3ea19d00448e7e49a4"}},{"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":"sdk/typescript/src/paths.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c207741d6d5603b99c882829eff8ee7ef100a70f5b46835b38628f918d9f6ddc"}},{"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":"sdk/typescript/src/paths.ts"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82c967e9d4462e3a5f99c540c1cd37f55fd2183b01ef9d0c14d8606df93ac2d"}},{"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":"sdk/typescript/src/utils/stream.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a061343563b83caf759d83cfec811df69c3f5b1dfe60e3178568ce8bbaba1dd4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/opencode/src/plugin.ts"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"952cc850fecf8e3ee5afd64e2c79ed299bc7a59a2eb33f8b84f95694c389cdb9"}},{"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":"plugins/opencode/src/transport.ts"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"07327a2a146c823ea810fd34a69ab8c29c693179e2922f6f71a25ed80e00fa26"}},{"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":"plugins/openclaw/src/advancement-key-store.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa68bf154d28d4b9e0f7b8bac8319b149317a72687eee3bcc23eb89fab79568"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/openclaw/src/engine.ts"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a42b87d367acbbe72100f223c2435ee95826eb02288bd2ca7ba55e7c0a61b7"}},{"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":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdead697b7895421110f8586569af901165d43c4ae6a455b55c4ede63ba7b245"}},{"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":"headroom/_subprocess.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4de8ff1cf38e60ee696a503fede0634542e37bbc18065e18fadb7e0c2697e6b"}},{"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":"headroom/_subprocess.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e720b2aba5d1e8adaf35e868d489a3f670e34643ec434b2427cab89563dcf6e"}},{"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":"headroom/_subprocess.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49038e7807fddee728152b57d0ba3976e46b8bc2cb1271a81d1b874d5ddb8cf"}},{"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":"headroom/_version.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"050a30224943887edb8e53107481b3c4912021c5b2259bcd73b020c2e62d78a5"}},{"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":"headroom/copilot_linux_secret.py"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a895ad470a181cb3730e22e8c6cbb07e8391647f53bfc0e4483aad864121e40"}},{"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":"headroom/copilot_macos_keychain.py"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaad861bed44686641ddfa45845df8952568973d45492e213d0f89491f8d4b4"}},{"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":"headroom/onnx_runtime.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79434826a783819d019440d24dbc15c18347b30e1934baea1b1380adbf00439"}},{"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":"headroom/onnx_runtime.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3cd2a1960dc3bce218650eb4fb7d9e1d2d46ebcca10395e6b7fd06caa99850"}},{"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":"headroom/proxy_client_liveness.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8162a2993c9dc273f6c4aab213684e510b1427575dde124b66eeacd53ded5fa9"}},{"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":"headroom/update_check.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5333f9a5323a7a22affd20ca3a34b4edfeec2874de9c0dab25c55adcf91a87"}},{"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":"headroom/update_check.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0710f0463294953e6ddad6c609452cb19205bf0298c5dec79341c4c78728ca5"}},{"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":"headroom/update_check.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbfb0d8ad8031ffefd75eee00887111b5037688d44d49f2d99adbfd5193975be"}},{"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":"headroom/update_check.py"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"04831a1108abc6eba710d1b3d6236d823338fddac55ad909dcdf8786f495b1d4"}},{"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":"headroom/transforms/code_compressor.py"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78d37d13738165d044f6a20c2602a47a17fd0e97e1bced4d475d3d6ef8bc0b7"}},{"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":"headroom/transforms/code_compressor.py"},"region":{"startLine":2407}}}],"partialFingerprints":{"codehealthFindingId/v1":"6289bfb1e979dc1585cbc81cc455c340bf94ffb78b8271bf6e80e5002f7ece2a"}},{"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":"headroom/transforms/cold_prefix.py"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"2468302cffa67c8e45c55ef3cc6ab0b0ac3936cd616bb9433b2f3c91220090b7"}},{"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":"headroom/transforms/content_detector.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"93979245c772fd2ac9384ffdda4d5fb98e749efdf5322d4b4cacd4600104b678"}},{"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":"headroom/transforms/content_detector.py"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef5e96a33e611d256bfd672ea233f9847591b28a67e9b9f70c23a798171839d"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3209}}}],"partialFingerprints":{"codehealthFindingId/v1":"4590f29b2654f67758392d78b62dcda66fc46e4017038a2fc509c6697cbd12ab"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3215}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2360ce1b717b4a9249c98805e6aca0a090c3487857bbbe33d8199a7a29328bb"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5037054dfbb00341fdb96cd437ab2ff8998f862d9aa08ec3ce6d284c3f2c2272"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3246}}}],"partialFingerprints":{"codehealthFindingId/v1":"3796ac6a6a139782fb581e964e61ae6a49b809558c77ac7e181dd0201e456a4c"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3261}}}],"partialFingerprints":{"codehealthFindingId/v1":"de48d66a5b1953276467a3a9bb637f430778dd4d0f93478faf5db628ccfe1e42"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":3955}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbe3cede6786f80224af27bcd08dec9ba71d6c0f3496ee7d5934e6cf77626d4"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":7669}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf5942e6e5a9d20166f1213de629deb6b3a7982507743d9b19974b4ebd810dc"}},{"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":"headroom/transforms/content_router.py"},"region":{"startLine":7713}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42dd76955c7963bc8459b5b222ef5143ab9b298e7d33a4b894e3c970d515f3a"}},{"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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a6cfb3279f63de1eff3905cb03f52cf4e9b9da41ad89e9d25c55d1143df12b"}},{"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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1687}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8387e3c8e1805939d9191284e2dde9ccf8aca0ffed408cc4e01629326a9832"}},{"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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":1692}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91f55666615d0d167b59a82aa7d63ebdc8b09f6976fc7627e9eda1b9e5ec1f4"}},{"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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":2710}}}],"partialFingerprints":{"codehealthFindingId/v1":"972216bfe1ae32da84415a9a40889cf726fedefbc0c2ad95338273adc0a0045f"}},{"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":"headroom/transforms/pipeline.py"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"9362f8100cbca78ab637406375b79ecb036a0bb652adc3caaa96ce30755855fa"}},{"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":"headroom/tokenizers/base.py"},"region":{"startLine":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed9a2bfdefcf43d584c010b828e5154cbade3fb693f476d916ec4c3205ea705"}},{"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":"headroom/telemetry/session.py"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8a1288aef7724670ea3416d39bc8f892e4244efc6719745fa0b6765ab254de"}},{"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":"headroom/telemetry/session.py"},"region":{"startLine":1616}}}],"partialFingerprints":{"codehealthFindingId/v1":"b182dbe22a665cc4093a17a578a78fd94a81b1ec481d1614cc000e83f1b15731"}},{"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":"headroom/subscription/credential_policy.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b823b8105efb28cbefbbab029ec4fe2f7a4effc5d553f8b34a65d76f6a4151"}},{"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":"headroom/subscription/session_tracking.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b33a7bd7fdd522ee69fe284c0cba4fa258a27ed32070db1f6c63309c6dce0b9"}},{"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":"headroom/proxy/buffered_ccr_response.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a88a27e496251f12868d5a7588fef906f2e033187cbde706b4cc06c3b5e3f8"}},{"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":"headroom/proxy/cc_switch_reconciler.py"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0134c0ff9174e939fc78bcd00c603ea33831e917746a8024025acbe1ceefc9f8"}},{"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":"headroom/proxy/context_guard.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d214ad2b775d6c4e6d5a2c539a56c5df51aa846f65823cdb1b4b4e3d131ba8b"}},{"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":"headroom/proxy/context_guard.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"030ed2c9fdf6ad9fa1afed27788fe02428a2dc15b7f72a30f59ca239fa1a8927"}},{"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":"headroom/proxy/cost.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f59ed9870c57cec7d110cae1bbe87af639b509be27611bcfd367af88cadc839"}},{"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":"headroom/proxy/debug_introspection.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df3f6cf5800467dd8c48ff61b97b98e5f275cb12f94da9d867ea02215a4ba57"}},{"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":"headroom/proxy/debug_introspection.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"755d4c1ff304a01cfdfa7d5e946ee78e5b8a0e4174855a02c03c41e506ebb686"}},{"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":"headroom/proxy/debug_introspection.py"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c084d1747de1fa1441b58de911ece24ff0e80d770b82c8c951b65283c465b04"}},{"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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb2eb6b3c8ed39676ecf10bd382914dab2d32cf6a908e6cbda8efbe95751d57"}},{"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":"headroom/proxy/gateway_turn.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1629222d3b4ad17365e950c7ac12f0ac88abea27d27ca74e5fcd0420c52536"}},{"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":"headroom/proxy/identity.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"723b60cb2a931e634674e8eab4a89c99d832d4570828308e44b8928bb71af371"}},{"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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c93fee34a01f56320e859b021631b703cc198bf302b0bd11f40152e64be26c"}},{"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":"headroom/proxy/output_shaper.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69d56a9033874b4c23de41387c6b464d59b20dc7ad94ca7abc33c9de61b3233"}},{"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":"headroom/proxy/route_advice.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39cfa66355c54f625c556897bdafb339d97558b0ac23c811732ef3f8a9c6a4b"}},{"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":"headroom/proxy/route_advice.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6eb06e6f7768728767485ecb1e12f19fb7d3a61c66159fc6dc307e8fd71fce"}},{"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":"headroom/proxy/savings_attribution.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa71bafb6c32508c151fe53f1df25ccf0d433f56235ad9149c18702b476e2ba"}},{"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":"headroom/proxy/savings_tracker.py"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f8a751d008b95304bfb5be788def7c3d246fcbcf6dbd31bec2edb22fbc949d5"}},{"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":"headroom/proxy/server.py"},"region":{"startLine":2145}}}],"partialFingerprints":{"codehealthFindingId/v1":"746273235c7eba457f9d615145cdda2fbcfd01bfd79d694096e2523026a884c6"}},{"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":"headroom/proxy/server.py"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d36cf4899e8b2ab7fe63f27a657290d7697e70b55f03baa1784ebb34157f76f"}},{"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":"headroom/proxy/server.py"},"region":{"startLine":3603}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d36711bc0b3628247ad216a1317916f1fcf816f1c2df7d7624019ac61e8e46"}},{"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":"headroom/proxy/server.py"},"region":{"startLine":3860}}}],"partialFingerprints":{"codehealthFindingId/v1":"338511559cef9661124ddc2961e635d53836a53065102a3d153ea1947f6328f3"}},{"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":"headroom/proxy/server.py"},"region":{"startLine":4359}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a6bc2ee6e5f5b4e559812ddf535783e655e0734a50e45a3ded8193b721442d"}},{"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":"headroom/proxy/ssl_context.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"98964f03e0b6da2d93b23cab583fb7faa5be07a79318da5877bb35ab91bc9fc7"}},{"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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a57aca97a74cdbb3255121b72692f51515837ab14885d4973c2c6f760eaa80"}},{"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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"9af051e73ff4fc3d75a608e1bfbd625a01010a46c236169ab70925e862acb723"}},{"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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"004b2384f9ee8104ce66a4a08502bd74f5f4c5abfc34b9ff5c77e53e1129bd71"}},{"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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec5c645fb3502933c55ed7e3b3c7f9be2e8a04c3ae674c9b5f89ea7d90710b7"}},{"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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3842}}}],"partialFingerprints":{"codehealthFindingId/v1":"77857d5c26dcf8447633f6ed320d12973aaee6dcd5de740b6b094c0b9dcfab76"}},{"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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e575c3b3a499aee6ded0c73d1cb46cd5e27c26b831476938a37065339bb0b71e"}},{"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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8edf4d9100c55de139767e125e04c075027d50ed7d12fd2e24f5e1d1f374b6d"}},{"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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6153}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0f69db417b5bafb9bf19ee569bb571a608b548ae224b4ecb369a68cb31cefc"}},{"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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6a009ff59711f34b0a68aa8df220c8b48f1bdc46dcc4d96a2301f33a9b22be"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"601518e031331fb6e06c720a10aadb49869db35b1013db3d1a4c01a6c00b0048"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4b4546308519a371646c7f769bf430246052ad9b9de087649108d79ae220bc"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"43888a500660a71a0a158f82a92d50588004fa40e881c1a18afb7791f6c54b93"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0540192d002c85786946084df14f978f4389e62855dd2374284fc3630dd6059d"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4959}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d75dd1856721bcec47bd2d5cd33c78ebbcd75aed1ca4cd0c4843e2185367897"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5011}}}],"partialFingerprints":{"codehealthFindingId/v1":"31275a80b6681a55f4520d9d4c4eb106d839fc563f8728873271d436db1dfe3c"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7073}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00abdd42f8285f3a190cec817323ee374b81b079bbafeff366128abadcda728"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7189}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15bda84eed9c666df1f63138961408afa425cbcde7a7dddf9d93bb7e58fbef6"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9a848e32e898ae709b1bc53082bf13968ab1792c7152bfea4628be6798954d"}},{"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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10699}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6f06792f7e76b00dae65e6532586401ee778f41b54c4d2a582751361e36bbf"}},{"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":"headroom/providers/litellm.py"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"3098357cf11acfcc8efbc431842c691ac4d3270882fdecae0d63dc6ab08936ed"}},{"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":"headroom/providers/opencode/hook-shim/handler.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b620152a49c6ec1c8e095275e7a0971d924b6ff0b19dc5f7f2405f4305deee"}},{"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":"headroom/providers/codex/install.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4053b064a94d00c6fa566b3dc9d3b39938f7387d3aa62138817aa0453dbb39d7"}},{"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":"headroom/pricing/counterfactual.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabbca5a895461ae4a224927e71dc2d915676f4db0340a333316dc698be346b5"}},{"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":"headroom/pricing/litellm_pricing.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58a9fc953e6b51390cb0f0da439e95b3b5a3981249ee204e93e7113582702ba"}},{"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":"headroom/memory/mcp_server.py"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68fce2ce83729503af85247af84366d3dd54b916e523b58f0ca879f30fd9f23"}},{"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":"headroom/memory/tracker.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e28f7088788b0287b6596b8c4ccea4c4c7e58d32b93e547b80affabbebb0c2"}},{"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":"headroom/memory/traffic_learner.py"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"8401c7b2a00df651648e3f3c67428e672fd06704d29672ccd6b73a22c98b147a"}},{"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":"headroom/memory/backends/mem0.py"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"1556a9d08932254502e0b5068efd56fc696ba0f2249a771d304544b153507bf0"}},{"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":"headroom/memory/backends/mem0.py"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a5f6b62a723e62369427657adf4191d3b0a3a1c11b9a80ff05fe70cd1fef39"}},{"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":"headroom/memory/backends/mem0.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"012c9497b656d788bb2a8724321a257646ed1d15d95cd7a09aad068ffda51ceb"}},{"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":"headroom/memory/backends/mem0.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ba7ef19eaa50e26cc6d1e1bebb49d735c04efd8274a3518795caf1a4107c51"}},{"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":"headroom/memory/backends/mem0.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"513e727c66d846d2a70f2e5e5164fbd8101dbcfb8d79c8bd0b50a65d671ee0e9"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f0d8efa64efffb02c64a3fbd84f0c559bc1bf3db07855a08604dba55436b62"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b190b1790962a913ed23f051bebb2afc32df1852195a34068f398dcfcdb77a"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca9796455aa0e917d6b41ca2e7726e3bd17972f43ec701661df0295e7066e40"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe043b323813e9deaa086099750665607f42906c9028bbd939c1b6d9b62444a2"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ae5cf2fcf2a388d7c38b85b54e9548ddcc3e5c9ca9c51946efa2ff6c98a016"}},{"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":"headroom/memory/backends/mem0_system_adapter.py"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"80c0f4d18982578424da89b57d9c29723b6072cf0519bcc35883d5a9a7b32705"}},{"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":"headroom/integrations/strands/providers.py"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"391ea6fdb60bd938fa7d675aee4f2836d7e4da9309150bf3ad4c94c427719793"}},{"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":"headroom/image/trained_router.py"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7e9b4ffb48a59ad8b370c187da906c7e92b1a44716816662d5f12684f8e22f"}},{"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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fc18b2e8a801358a3315d1b4e6d503114f6b48ba5c60dd965ba0675fb53e53"}},{"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":"headroom/evals/batch_compression_eval.py"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4877af0eb87bd47eb119adee1d46c88b98dcb1838881b91dfa05f88b08d544c"}},{"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":"headroom/evals/core.py"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"b684f000ada11bd4939349a1a9c1316c0b6e6c724b34790b7fcbcad05ff2eabf"}},{"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":"headroom/evals/runners/before_after.py"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"7294f84d9db894f087729acfea2e0af4aa7a0438fcf1a7fa3e1dea44bf81d22d"}},{"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":"headroom/evals/runners/before_after.py"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98b83d54cfe6948d64fcebdcea37e3d8368b233a9f6964e423150b43aa3b1b2"}},{"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":"headroom/cli/init.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"534533e7161f6b56ba462fcead67476adffd0d5dfef458dfd07f3d6fb1523563"}},{"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":"headroom/cli/learn.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c984a428194620278b44627935258891e41b100162ae1a22139fda940c7900d"}},{"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":"headroom/cli/update.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"12959f5a07b887792bc15187f1fcb508875d36f460ae35bc76f455466462d8a1"}},{"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":"headroom/cli/update.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f928411cb17060abb04335d0cbf9e60b2903b312c604c4a5b18bb3257a404f7"}},{"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":"headroom/cli/update.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c594bfd5ca65274fa7de740b46d6dcb7cfa2b53c415fe8774b93729982e6e9c5"}},{"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":"headroom/cli/update.py"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e37722babdfcc4ca87636c214a98d1306d6137025c73c8120ef81f1b54609be"}},{"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":"headroom/cli/update.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a3a5815e0a3c5dc8e26b93b35da7e8ac18c42624261187e769e91d9842dedd7"}},{"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":"headroom/cli/update.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"72f9b0bbc04d2d41c3da7ab0605d0cd570d0dc59137043bf653ab5828d4c537f"}},{"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":"headroom/cli/update.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"6567532d8e98ae4a92162f9ffa889701f516e99ffe13ebea7bfa2f065a55ab43"}},{"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":"headroom/cli/update.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe1c53d782b5edac4ddd467051a076eec98241378762eb51be14e9941151a9e"}},{"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":"headroom/cli/update.py"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e45ecbe8008dd1368551adfcdd696b0e9b56a915c658ef784ea4000a7d8487e"}},{"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":"headroom/cli/update.py"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf54a42dbcdb71be0abf592473dab01aabf70a15f4a2912abddc1b68c349e2b"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2722}}}],"partialFingerprints":{"codehealthFindingId/v1":"55e1bcb0e73e93294dfa1663c5eae331736235835b90f835551856692a98bf83"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2727}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f042c7bd76c10d23d98b998c929d228230408095be7c017f36e7ced30987fb"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2735}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd61ff3254f407389dbf42d8003f965c62df15cb8e29a2271e3b1eb535129ba3"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2739}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a105414a23355d77321becea75b3cf838315f0c177c8fbc17ac71e82e7dcbe"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2745}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdebaaee0dedb9264eba1c19c9f6e87fdb0f8b88d07ca34ce5e5ec7da5d7c95"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":2776}}}],"partialFingerprints":{"codehealthFindingId/v1":"16870b1e063719f6546b2186ee6d6d1ea0fcb08ff25dc72059f39a4462f70fb0"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":4615}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf56693dc438db88fce31997a7910aa3fe206f15df26bc88b91e00bc1eb49cc"}},{"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":"headroom/cli/wrap.py"},"region":{"startLine":4721}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a0113e8c94a3f91b0e561684bd829c8e6f24dbf963e7bbe8e3064039656e34"}},{"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":"headroom/ccr/mcp_server.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d621519a73afc29f19861ae4a5ceb8e94af02c00f0942c39ace6e54dbffc334"}},{"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":"headroom/capture/network_diff.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a04d935a414f6299c7636349b9b51aa445f08c6f884529d90558d8b2799f932"}},{"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":"headroom/capture/network_diff.py"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd06f1155e806d336ef8153aba658f4fe69c1a7776e6c7e13f754fd113f14b85"}},{"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 \u0060close()\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":"headroom/cache/compression_store.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"fac785a87f92de46512e70e794c9dcd8e946b88e154b78708535463ddc81da2a"}},{"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":"headroom/cache/compression_store.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"04789ee1571f704a6ba467b8621fb8ea87b3aeddcd6cdc0dc0952bd8252929ba"}},{"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 \u0060close()\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":"headroom/cache/shared_sessions.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"219b5c7e052dc135be2ab1456deebe49335314eb0bc6c3e5c3da3eda396e0dcf"}},{"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":"headroom/cache/ttl_observations.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"19246463fbdf8a888278d46d4707746fa609598c95674e017c5aa03754abd2ac"}},{"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 \u0060close()\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":"headroom/cache/backends/redis.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5fcdd115d920f28aa71def0ea1e3854245532fe3bb6d3c2a79655771c301e3"}},{"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":"docker/differential-network-capture/mitm_capture.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1240139f6259e35a3cc590bc6dfb3f0c4edc50bb9eb6d57e285be8f23cc8aa4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b5ed608abfdd6957c604f7dff02b29e6d04f3c6abbe6ff5a5d8c3fe9e676e2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"deploy/beacon/worker.js"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c58bd88670522923c8150d78b29af3b69ed8f11e06c3f6d27ef94bde591013"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 582 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":"headroom/transforms/anchor_selector.py"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ba3a3e0a19fc24033b2b90ebd5e565165209383b545ad0d8a77767b0c35211"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3131 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":"headroom/transforms/content_router.py"},"region":{"startLine":3131}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a04a056ff4d7787e41e846db95b93292c616f662258daab7a85506ded942aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 219 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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"14476eede30adc6e02c230041967a19ed3907dffbb07559e504b463ee50b9ca7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 252 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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18b34b4a9eada04312c232e1d2ada9e96b2977e1a61fbf4a372c11abd25f526"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 260 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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"adeb52db32e593c2ab954bd2f72d0a79de965faa45ad95a51eb8e095e780bea3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 292 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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"d57bfb9c9346d73e5c204cb769f100ecfd46d9cc0d6bccc1e77d59334b3354f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 298 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":"headroom/tokenizers/huggingface.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7fec0751ef8abb9f9564c78132e9c466d55161b41f912ff782baaff8ed2aac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 213 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":"headroom/tokenizers/mistral.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ab4f7488ead443c3fbc31b33379bdbbe0a7b02f654d5f7acce01dd1d2b81a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 225 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":"headroom/tokenizers/registry.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1133fa5d359c265d47e0d0797344105c2e7036998c1cf79fa3057f065ea8217f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 396 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":"headroom/tokenizers/registry.py"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"50be1be69dfb8691cdec6f76926c1a4f399c9bbdb4122275a6cb899a39db4bdc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 629 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":"headroom/telemetry/toin.py"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"82cb223eaf4388edb300f92d663abfaf54934da38d3ff21dc4016a1a290bb379"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 212 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":"headroom/proxy/buffered_ccr_response.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d2d1d72300dbd2f1f4f68646e22bcfd24bebe66f7d72816eaa9045f14b8a18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 257 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":"headroom/proxy/buffered_ccr_response.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2dc2d3405e47262eb738ef1151c511557325167e18a4f19a335640d72d16061"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 298 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":"headroom/proxy/buffered_ccr_response.py"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92a0c08482866686f59bcfab1926de3d033122d1c5f95d98f9ad9482bd34c44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1848 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":"headroom/proxy/helpers.py"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"741bd74ae710396132bde54538c7a3d33747c0b0fd376ef44314cf12d74fa61e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 255 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7c75bfc08901ede3ae36488925954056e81296ed9ddff6e75b1e0daebc9127"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 308 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c5695ac4ad3ce6493fef6d1b813f3b7acae1b16f3b2f0f787718975350bd08"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 327 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"892d16b59104ce1a8e6d9b263fd755d460badac368a41bd8a558f882f316758d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 408 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"359f9cd7444d422d8b436b5661d845d2b176d330099b5635a3d6c8d8a5f83bcb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 455 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec6d336cdfee5cfb554902fd1851cf96d47f03179fc3e8c456969c1cf2e12d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 457 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"266e44b3d9063432df2ac97ba7821164bf3a60a55d30fe746652626877e25303"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 489 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f885865b88abe3461f9085e84e779238d9c71e238b0cafc9d04ce847a704880"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 494 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea697ac2a38697f4ff7418de04f1639b5d5ef584540f1e498ede74869b7eec8e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 875 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"23924a7200d9a8a1457f2b8c6827ddfb2c8c2fa9586d1a86b833877b6c624eef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 897 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b4c8fef16b0b618055c0ee5642bb03555ef64ee40b7e09d4f2bd4e4d15c05f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1212 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1212}}}],"partialFingerprints":{"codehealthFindingId/v1":"b141f927e47b27d2a5b89651c89d44664fd98c25ab3b9e7fdc5d64b353fb8363"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1246 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc694b5e2657055e9971f467e273365f516f3129aca09fcd595bd066a040d7c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1312 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8b24a64f0104c3bcd3c448de4055204ae91c2a53d9217a30b2ec0df6ca52f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1446 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0b3aad6dd97b6c1390aa2413ce6ed1480abd2a39a3e3f02f3748e4b300d666"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1535 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3d125445a27e5cd557db4778e74af5d7775705dc6de4da056b9cf2f611e76d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1545 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6478e30428ea6f3d06a62d09bc3996ce0affe61b424c6e7ec60b63295ae369e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1647 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb62f7e758a51c21f966829949cb9fa0a00519962f5a0f3209e3173582b6daf6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1735 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1735}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ab1dcf45cc33bfb7b3e3fd83a32798bcc8897f5441ab63eb5a38409b86ae2e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1770 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cfe27a3b062221c4c6a9fbb6aaf3b9b6cf9ef87d94724e32d89f1877c97d75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1802 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1802}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4624405a6ba564577167f878e314904916d07a1665f8a629233e4a0852ccea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1855 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1855}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc660a5bf75a4e138becf0a30513e3255947fa5a7ef01348b1d9acee7e11f85b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1896 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1896}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b26f5201bee99a386d2d4a6e290435b264af6350a0f6845a92f46242f9c3f34"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1900 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ac3123aae6eb653ec49db1104440dcf39c68541fd5fb3a0e2650e813088c98"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1963 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6f9cec0c42b8c7594e16f7169d1a49c4aafbac8bec2dd5a383d7bce2c1f115"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1967 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1967}}}],"partialFingerprints":{"codehealthFindingId/v1":"315bb242b21f72d75676a6339f64b56b0d56de4d280f905e9aa6436ccc22628a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1998 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":1998}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ea68bd73698ffe7284adf32699fc3b054067c0f56b484e066032ee70a4a696"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2002 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2002}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f510b7ceb86435f7b95d3a72052a7a9e7c439ff20e84cd540dfaabe11d8cf2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2047 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4a9f43c34189611669cb89a614d6b3c162c268d5e42520af39c947af0a6f63"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2053 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2053}}}],"partialFingerprints":{"codehealthFindingId/v1":"478e22d155fd0fbce8049858ff612b78a6c5c4fa2220da2c20c81c90b43be523"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2109 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f343d2a0d29b752c6f65488dc36e09ed5eb156bc97cfd7761c8e1886021afa8d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2113 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2113}}}],"partialFingerprints":{"codehealthFindingId/v1":"b970901135d14998f80c4fbd1b017916d44dba790187cf4d3573f366b1b297b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2158 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":"headroom/proxy/memory_handler.py"},"region":{"startLine":2158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c16f38d9ec4afe4fc0a26e44899dbc571569a9bcd9322a66bfd8b8b01986746"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 839 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":"headroom/proxy/outcome.py"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"53da44d6526da46c2a8006228cedbae4d61fb2363e547773e08090d53588389e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1564 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":"headroom/proxy/server.py"},"region":{"startLine":1564}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1c5f1d40d9dfa293379b3e2c9b6d4047829085d5d91139308673c1c4cc692b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2259 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":"headroom/proxy/server.py"},"region":{"startLine":2259}}}],"partialFingerprints":{"codehealthFindingId/v1":"b74c74cd21a9a5250f5514e7777582ec736a0492be0fe31172ef92557e8f09d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2261 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":"headroom/proxy/server.py"},"region":{"startLine":2261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06b9bdf80902b0e259db0eb7ece087d45fdcdcbe5558da6de21c3522d8b5a5e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2321 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":"headroom/proxy/server.py"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ed6ca5c0e3c67ddb30e6612012d27f2e802c94fb4cf2a6b1f2ea3996577fad2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2322 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":"headroom/proxy/server.py"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"30731de48ed6716afb3f0cb4747c95d219eb623a994f9419b969fd1409342b78"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2323 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":"headroom/proxy/server.py"},"region":{"startLine":2323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f7d9a4d79dfe33a6edf72c247d1ee4c7b060046123b83fd64c7e1b14fb221a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2424 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":"headroom/proxy/server.py"},"region":{"startLine":2424}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb8db3a70a77b26bbaf99a766be8a58512e4bb58ba8c73c135ab096b494232d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2472 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":"headroom/proxy/server.py"},"region":{"startLine":2472}}}],"partialFingerprints":{"codehealthFindingId/v1":"77958c98da1e028e1bf0bda8bff69a0b1148372c5c8caa5dd5787a6f6578bdb1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2490 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":"headroom/proxy/server.py"},"region":{"startLine":2490}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6150f93f69e8cce023fd7df0e2a9c7197f54087bcf5b4e752429ec2d8438e45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2493 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":"headroom/proxy/server.py"},"region":{"startLine":2493}}}],"partialFingerprints":{"codehealthFindingId/v1":"c744e21211ef71568b37f50120698c6d5858002ecbb097f0611ec9b6ac3dc685"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2511 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":"headroom/proxy/server.py"},"region":{"startLine":2511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca4f302fb23c5e45b04b7be6475cec773e3f776659cff97161af05adafc629f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2615 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":"headroom/proxy/server.py"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa26a48a3bc1241d8aaf05f6840950438eeb65238930db97b1762b6849f664d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2616 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":"headroom/proxy/server.py"},"region":{"startLine":2616}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b7e527a837885bec2e008df3d06244869600cc1bde0ddab4c5207d6607f9b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2617 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":"headroom/proxy/server.py"},"region":{"startLine":2617}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c6e803f516bd49c341a70305b380b08543ff00837ac56da7e0094e92d0a6caa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2622 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":"headroom/proxy/server.py"},"region":{"startLine":2622}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8471cc4b463ca617540bf6bd0a8b5857f4f8905e98ac45435c4ebf24ec180d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2623 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":"headroom/proxy/server.py"},"region":{"startLine":2623}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dd13f7ac91e02074fdb490fd6bf9390e74f055c0c500ccc997c1133f8665c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2624 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":"headroom/proxy/server.py"},"region":{"startLine":2624}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1159ffafe8f5947f4018961c9bce13fbf5da09a6e2673d9b50decfebe99e302"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2625 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":"headroom/proxy/server.py"},"region":{"startLine":2625}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9ee91840c59cb2140e214233579dd290da95fa4c1343047f9417b2800ba2f1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2626 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":"headroom/proxy/server.py"},"region":{"startLine":2626}}}],"partialFingerprints":{"codehealthFindingId/v1":"4323bd726d174f74154e35e6e6616ef3904ee912f5e15f983b8adf4f78bff014"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2630 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":"headroom/proxy/server.py"},"region":{"startLine":2630}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df87d64183a61a5c0064d281833dba32764b443a1dda2cb45ad9187c0c120cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2632 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":"headroom/proxy/server.py"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf4dec55445d66987e5c4880edfbcce120f994e2e52810d0543379a199e0779"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2633 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":"headroom/proxy/server.py"},"region":{"startLine":2633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0af1a388f8a2ffb97e00d7329eb41b1557a861cfdaa9e2a3d605bfcc0a7c39"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2646 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":"headroom/proxy/server.py"},"region":{"startLine":2646}}}],"partialFingerprints":{"codehealthFindingId/v1":"572c11ac1e750c2c9a993d3dae4754efd3dd232275bd0ef4fe87fa105ff5e05e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2647 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":"headroom/proxy/server.py"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9efc01ec40807cfc86783c8099bab60f3655fa99e2f2ba9f8ccafdba126f84"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2652 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":"headroom/proxy/server.py"},"region":{"startLine":2652}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e34bac3762fed7465cf0b41272e473fdbd351b0d9ab4b902328170321cb4eeb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2655 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":"headroom/proxy/server.py"},"region":{"startLine":2655}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2817c5fbff26b935011b7b62328ada33e67da25d56a664030b3e38db5875d45"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2844 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":"headroom/proxy/server.py"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8c61781c5a1b30c8c994e6217910ad5476e85ab98dc909129083a180402e19"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2899 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":"headroom/proxy/server.py"},"region":{"startLine":2899}}}],"partialFingerprints":{"codehealthFindingId/v1":"595bb407df04afd7708040b68540bc750792e9b8e898aece45a97a47d59c32f8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 180 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":"headroom/proxy/stage_timer.py"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"17570b246023757db4fd616856f442124a317b9e8c42d1ecd8a0d76faea25773"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 182 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":"headroom/proxy/stage_timer.py"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c3ee27ae237e02498d5fa5f385ef8c33ecd3337b0c1be7f41c6ba39b2c4ee94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 190 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":"headroom/proxy/stage_timer.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8826f95a3c11fff24d7c97512a296cae5c4f7dfeda29af24382115563eba942"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 533 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2becb6b9dae3e8b7ac7d68e33ebba12ac928fa0ee8925a86d05dcec9c6cbb7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 536 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5cc3f51c7b8d5cc2bde861d4c98da72a6cf3d79310058dc81c81fb844f77b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 557 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b5ddbbd83c0be439a01e2623eac099c01cdb1110a0186610fdcc12031f23fd7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 619 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"690c0d081566d6d56005703fccf23d26f6f43f6ce0c6a0343de501ed5068a4d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 634 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"6174a34f2a2b6ec149ae3890b63fb53302952bc30a599b604e9d5642029678d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1360 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7475fa35f3276227c8d9d10d271efebb91d4e24d5d4928ced92baf14df18912"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1821 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":1821}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5e69e176e07ca5e8fddfd544468905d069be79f15050e28f21dbefcc3cc9a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2031 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"6152b524a0aaca47de21918429a5a95e945bdd129823b28f9870fa7226c8d895"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2089 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c537fd67de4f32bc3b4bb7ac34606e5401aa84b92a37d7e161f0ff27500cbc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2354 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2354}}}],"partialFingerprints":{"codehealthFindingId/v1":"29630e9e2ee6df8f1dcaf4cc35eb39e6659a1534ad52ba616b5bcb005a00f659"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2363 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2363}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d62e725f96f0efbf929d42a5250dedc6246cc5596b4d4b6c4d57c862911cf9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2395 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c89462b767fa96f16c90c92a712e7aa597cb27a7a653e58e3afd8d5304a0a6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2966 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":2966}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fefb9f0c6f7aa1b73ce97822ff194e54e06b8a3caa0c45829b40c60ff2aee0f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3070 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef85ad95174765465a50c08d5c5fafddab19588dd20707dfae7825143ed3b3e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 3078 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dfef5340326fe8d266f0d139d20b55919bc66ea83c94a14873da95015d98598"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3160 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3160}}}],"partialFingerprints":{"codehealthFindingId/v1":"da27dc985de9f35550dbb8a506483749574b6aa2981b935321523b3f7f9d91cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3237 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9a46d93831908eda6580b0065e9be64bd0bcce4d0a3232d68392b051861ca1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3273 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3273}}}],"partialFingerprints":{"codehealthFindingId/v1":"3301a88eac0be26de9a728c0e59c4aee9b4f6f261132c925037f59b15fc2a97f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3289 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3289}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a63ff83cd4c1d142af976341cd15b807bddde44ece58c69e6b5f32ffbe9cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3328 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3328}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11b128e6e1decc814f8e904e9f2da13413eb694ea4652dbc033694ed97593db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3333 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fd02d45be6bfed86036e7a53d92e97e0075064c829e7db63ff00c2a2a5e7f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3380 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3380}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f4f53b720958f84e05cca8fb18dc3b223ad4a38a67af5ba54d7094bb928d101"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3422 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3422}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bdd9108069d2283cbd020b6a29ba1a60a5f2a4bc7ecc60e81d6d516d8e0d1e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 3429 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3429}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee934e1925d7a387ec1ceed61097a0b28461da06531109d44bcb6ea9896cdf6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 3481 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3481}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c65cb3ba0c787046caefe7716df92a04ad5319737c0a9e89ea94a54dc5b4950"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3514 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3514}}}],"partialFingerprints":{"codehealthFindingId/v1":"a521cfa20849625109a7a061326ebd667e99cb0da9d66ca6820ad744718c7344"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3567 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":3567}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0971e33e481a5269e9bb305853aa0b207c45253359385edfd09af3bd5f2403"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4153 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19583514981fdae2d692f38bce8f1f75220d0def55d4b5397f7c91b5bdca5ae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4441 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccadfb31146e2be7a2540879e2ff9c9be12b16972ca992ace890c6c3becb03a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 4509 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"403940de371d864028a75b548355b79c63a40782b6073e3c93dae0a4636f9f42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4600 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4600}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26bbff8ff7eec1a438131a6c18ee990080977bbc2566130284bbc47aeb0adc5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4606 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4606}}}],"partialFingerprints":{"codehealthFindingId/v1":"955ef3b54584181129c259cf55b2499a304b91b6879276d3e2fd272ec098d9cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4616 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62527cf1f08eb451e4d664614203baff3e82257cd7fc56f8382df2bee8f6642"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4630 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4630}}}],"partialFingerprints":{"codehealthFindingId/v1":"276cd582d7d339bc5b7b41c5f8aab6c57de495d2868162cda512374ab9a54440"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4944 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4944}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d60ef3118f357580ed5232a8a42b3e4f2317b369de3e9d21e3368dd2fd3784"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4949 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":4949}}}],"partialFingerprints":{"codehealthFindingId/v1":"932f3348de9147d6e15a7d23e5f4d6398894b32de57920588206f592cbacfca4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5038 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5038}}}],"partialFingerprints":{"codehealthFindingId/v1":"db18ee72de975744969c2fd8c0ae4ad4a3bb927d4ce21c20707c0ba197300a1a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 5042 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5042}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8244bdfb6a62aba0f13c15abeb5311eb3d44141a0393262be4dd3f5a8b24ce7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5095 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5095}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e022be381dba0afcbf598e61518f057fb9b0d29896d39274922c7b09abcfb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5101 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8a09d99387336c7c464c24ba7f4fdbd5a18e0d4e8323771e8e20d8bea819ce"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5113 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5113}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a01298de97af7a7447430e3255e5b7ad1fc8f159bfe2ff999340b2eaea314f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5143 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5143}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddc4b02160fd0d1616c728770b5791e26f4285328e7e58a4e719b86d8db82ac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5205 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3696595eec0dbb4417860d129c2cb2557018dca2410a4fc03f99a91a71f938ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5216 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5243f89512b017a07ffcbc767c0b3e1be6d1562a13bf6733875b4792990bef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5261 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5261}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9e07467b8ed61dfd98282fb26cda1ca1d84e1d1ccbc0a3b105df20b15fb9cb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5267 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5267}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e93fb360636bea867316df750c14b14b13e638170ab4aa22e1fd187d720a69"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5272 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebf72b17c7ec86c28714d5f400ed71efe048d29a401485cb5c8817b0c89a88d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5290 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5290}}}],"partialFingerprints":{"codehealthFindingId/v1":"15621ad8e9cb609428c18fef8c898211ce74e80abee5bcfb8fc88bbaff67c3b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5313 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2cc67d287dc9ec364df9f339f91ae8e71b8413aa23c8dae138542657043d96"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5319 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d617bb7beb6e394044dbc960e32555336c449e8c0f42fff21f81ea24428c938"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 5325 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5325}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bca1a57124b8f211b720d09672d8c78b7b3ece92007beb502165a1dffa2528"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5339 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5339}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f27682190b857b4c8f85b38236a5f705e3a9d02f2f67ab0b465f6e537a999ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5368 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5368}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91095f8bdc5b5de7cf9a3b1195238997b23fec7d2b59c50d5ca4f7f1c7b868a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5434 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5434}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ca08b840a5d3346b9c7d8b1188ce23a625bd70cfa5ba7806c6ab5fb85e1cb8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5439 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5439}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b530ea1002170a0ff6575edcacb81408f3f521215c5bef6dadc76fa9c67e16e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5445 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5445}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e14655ab9d6b994573470eb9d790c5bbd9d7e16d5a71a404cb3a2742f75b50e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5553 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5553}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae20dd590f41006fd1e5e870ccdca5e67734c5916baaa65410694b72729b2b7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5597 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5597}}}],"partialFingerprints":{"codehealthFindingId/v1":"986fe4405b77cfc304d0ca6809745aad72a118c958eb84b960952eba502ca425"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5828 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5828}}}],"partialFingerprints":{"codehealthFindingId/v1":"257c4027217dfe1abd8e88ba5d214a38bb18f8106e08672b6ac329cd88d45899"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5844 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5844}}}],"partialFingerprints":{"codehealthFindingId/v1":"002014caa8b6fbb9c253357d96f2696eb20c0ff7e5e71cd25afe03d5ff873352"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5871 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5871}}}],"partialFingerprints":{"codehealthFindingId/v1":"b090fade5235d92ae586cc4fc1b4071c143a21b68b44b72b2d3e079f7d20a98b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5927 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5927}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8e6dd8a65d95d7c74564c637b077d9a71ac7cb6529be4fe9fc1a326c632fee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5957 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":5957}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fa1c4ae404ae4ec8fdf83479e3c2af9cd0a2c84a5283f3ad0f9135124dbcfa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6022 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6022}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3b29761ed1adf2ff9b01f44451e920b5967de5a2106f347c46d77255f3fd0f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 6031 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6031}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e8703cdb572d24a9ab3a436733325ca0e435bf7bd0b231671dc7c7a5d64d01"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6213 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6213}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cd537fb2f73fef87ba884d9664224b02034b946c5c07ff053f734eadddb3da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6354 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6354}}}],"partialFingerprints":{"codehealthFindingId/v1":"884894e676337e8002cb2ca79d2f72b315289a4c3f055cc023aac9afb78e263f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6357 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6357}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe2ca4e307a2a1e7333f6fc60a7968bac9f5512f9972b71c5b0bd3b5b4f2c7b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6466 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6466}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e8f24d4b65a66e572bfcff500a96867e84dd1b54a6802121635ef9296d03d3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6490 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6490}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b85d0d2e74bb15b8981b5b742db8e4e489e9e605afa000f0744002982a6041"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6511 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6511}}}],"partialFingerprints":{"codehealthFindingId/v1":"df47a6321e2636dcad9111f793de1466fb5f2bc313cd7bf1da251c765f55e411"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6518 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6518}}}],"partialFingerprints":{"codehealthFindingId/v1":"a404d78048adaa99572c99c9808c9c0912633c7d3466870c75f842ea2d58fc75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6588 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6588}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fea02c5d9af0e744ad4eb6386c176f9908819ea5b21ff89138d0efed095457c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6606 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6606}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d23e617c730cf3096bc80f94703533d1cc07486fdd7e265db11de56b971c6f0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6774 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6774}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f5e22025bf8efc390a8cdde17ae22f1a2e857fc71806510c10edd581710f69"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6893 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":"headroom/proxy/handlers/anthropic.py"},"region":{"startLine":6893}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fd754c6a1cc75904d03dec36bf9e635ff6e506210488173526c4e549d75aa8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 113 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e53a460941d5269661bf85fdba1e61cbec16dd54b31d388a882aee02b32066"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 121 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc8563c81ca6c92046d0d81c183ee0caefacb7cdaac973405f83c6446b16a16"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 149 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edcdc2d91c8b6b3323dfa88550945ce4b763ebf577e4f06ba9660b7242b7b70"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 219 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d28d41c2247d3848bf26c718985e87b9b2ed5a966e763b64917453a2287598f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 251 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd94825372f74ec89bd7769feb39a9da1480574e86fb72565156f95969662c29"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 305 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb97162c47d591b5b88116a8974876331106efaf6bcdc11b88e77279b643a740"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 312 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c35b8dbdab34dacfc7f848220e7f78b5af68b823b16622276146f6ecfe29c49"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 363 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0556dd1d64ec8aba0f383c70d927bf3b3b86ff129a031f2adb243c696ffe07"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 383 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a208ad3c7eb2780ad3dfd46dd7bd13f62067ae2b717440e5bf9959428e958e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 675 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"956bb6a8a67ae77fad578d76b8acaf9395bef9df1bae1475654f070e0120de9c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 807 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dde5e3822c0f9ab4b50a0afd2369d5bdcaa1214957c82463e4c879da2e3d44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 907 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"5980d9d98cb3c30a6b379eb5c122ca5af24f4869c28a392b3dff9a7368056618"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 928 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":928}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dc78506b377fb2e9f46a730a28298b9c090cc49f69bdc9a19b782bf60620a1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 944 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a443d803545ac0feeaa2ad6bea2ae2847d9658213e8e546ff352b81c4638a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 965 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":965}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8018cfb03541dd76864fbf9d40c14c627140b9e243f07587d1290a54134569d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 983 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8e2362ee60c21f468cd47cefdb096b734f6bdcdd4503918eb0164986298ef4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1036 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f9867b4b6cd83101f2a67ddcde54d93fe0dc6f376a3a0b75a8a1b21c67b597"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1077 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1077}}}],"partialFingerprints":{"codehealthFindingId/v1":"c519e2544ee441e30d29de4b051b5d05fbe05b507ee477c00b3f8ee8a09508a0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1097 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c5a42cb9b011677d06b57ec2570326a0a45986cf3dc2fdb350b9a21bce641c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1100 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0bb420fcc27714bf6f0c5b0ffb9703b2e31b00f0f4d4c59aa2508ac3ac0f75b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1127 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"94431693197037b394fbdbf88c739af1f37c428e29ae8df604850d919c8897f5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1130 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90e11efb336202f01c7b31d3dd4cc976df45db86cdcaa2cd110b8a7d6f5eaee"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1149 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a61816d87237854871c6a167a9e9d8121ce1a74c3fb571d4771a262791acb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1209 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e908ce4363119415c1145a91e05b0629cb3cfbb8083ec0b42ca2acba8188be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1234 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5bb38732fc4a28c2fa5b9a58590ee122a6128995e2375a4c4600b20c4d968f4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1248 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":"headroom/proxy/handlers/batch.py"},"region":{"startLine":1248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23e2b9bb7b8228aa26c5e17ccc28398fc9ee8587dbe912c98c8a6b30980dc34"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 748 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f784d8c2c3c9aeb3fb95bf7ec371cbc761fdd980bbed030ed29d18d41c636"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 782 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f97bd811853ec44b7a2a950507b8af48ef470e0fa46bd02147daa8a0d037865"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 786 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb93036252c48c852eebb308ea2de856383327e18179a97fc3301265c258234f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 864 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":864}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f1dcdf095de376dbb19a678798e43086c964cf3428860375f8a216d10cae5b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 877 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71c6aa475786cfe4196d958b1bdd8762938a13df4a91af68d6075505f41edaf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 882 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"9551a9eee592ec099f8fcd29ffc01963d76f05c09fc250fbc99bc0561fc6ed78"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1046 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ee9d7e3412fc990dfc8bd3feea972213a71906642202761d2a45ccb4cdf828"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1209 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfe403ba246c39c5ccbfbecc780850d033e1d4dbf0bf34bb703cf2c26560c7f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1214 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"819852c2d023bac6d2a6c2aa625729bc2c63f082b847a2a1de6ed4002118b3e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1364 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1544c39cbc85a6fc2a305d581406cb89ab42e0b8f106edd40992802ca9a5d70"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1393 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7da5fcc1fd05846fdd8a7d44124b0296efc98e91ab927b943e267b59a250e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1396 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc146367d36c44f2301ea9a59a258f5fb91bd5f5a83ec9627c15ff98776fbc7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1592 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bf390b0ccb88e8cf391fe44123936601b6901300dd4f88333d52fc4644c68bd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1613 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1613}}}],"partialFingerprints":{"codehealthFindingId/v1":"389076ecdec088a7d7541f225037ed41168e0b2109111260af6fbd27a1aaa119"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1663 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab2e6042126c4e0275a4e2ba0150eea84963527aa0869526941f8d02e222768"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1695 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1695}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb31c391e04bc49b742b2e361125984ee1599d729252d4183d985da15dafe32"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1700 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":"headroom/proxy/handlers/gemini.py"},"region":{"startLine":1700}}}],"partialFingerprints":{"codehealthFindingId/v1":"37dbacf52322563612fe6f6f43039b9044538149c04530c2e57a99d150b223a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1549 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1549}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7af2c0742a5225414a8f286eda324033d115178d7464a2e1cdac7888813a8d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1575 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1575}}}],"partialFingerprints":{"codehealthFindingId/v1":"302701d0babb636f026486263a66e3f0bcca83f96b67013341216e48fd68e126"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 3575 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3575}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a0d7f94d4e91e99141c8e16452a2208b8b8807cb3efd837c1d0c29fe76ba8b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3814 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3814}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf0650ba64ab1ba8e03a1d86bb2af7382dc6fdcdf0dec0272be3f574167c4e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 3841 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3841}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e8e861a2bee69fa45673da2aaa3ce2d20e58e8ba7eefe69e09954f4c0b7b0e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 3850 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":3850}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3addff46db0c3d33e3f8b4bb55042f3d1bf1b73dbdda625c952c55edd92176"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4030 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4030}}}],"partialFingerprints":{"codehealthFindingId/v1":"491bffb1dbe487beb4f37bc36b6ce343c81c5e45efa331a76763f94bb22f27e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4221 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4221}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d225e6052550eddc21c4673d4da91d0aea798879310009095f8ca74b049a092"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4367 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4367}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1594f27a6738801bddd61164bbd5b74563aa27f2073dee0076d6d7cfb55964"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4414 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4414}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4343b425ae23bbdca325b39a803b857152576e6524356c76765d5a6b4883b3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4523 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4523}}}],"partialFingerprints":{"codehealthFindingId/v1":"707775a26552d204277c51686013b80f5cf0a915bf6fe20d44e08b141bf5fd3f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4578 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4578}}}],"partialFingerprints":{"codehealthFindingId/v1":"675f2bfb8fba8dad83b513aa1ac464bf3d246da50d00c7b4040eedf032a4cb38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4591 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4591}}}],"partialFingerprints":{"codehealthFindingId/v1":"3139a7c30ec2b5177f0ded7d37663080fdc6b278aa0bb585bc2912f8a82fbb79"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4725 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4725}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1606b4344867a7bdf2acf81360ac1ea7c5c814eee422496d839c3a736edc75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 4764 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4764}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6cd1f02d90bc9285c0d06a5ab433a842008a06b1091abf070ba830b79d49d37"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 4766 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4766}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ca3ea69dc54a46fcf24111ffbf2293f128ebb97c186c679cec205b733569aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4800 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4800}}}],"partialFingerprints":{"codehealthFindingId/v1":"47624336f0e21bc03a0d83971009dc98ab2c88b9cc61febde248eb49396e727d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 4840 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":4840}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e0ed0e85dd57264fb69a340ff768e37e3ea74ec249cab692ff000fc55f1c6a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5139 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7d5dcb8573680e833b7cd53682cc958396608967d90af046e5c0c3d137fd6e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5245 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5245}}}],"partialFingerprints":{"codehealthFindingId/v1":"910dacf099dcc82e4af7c2ead00b91e5f0b1d546268c2b6136d2e84854370c26"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5275 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5275}}}],"partialFingerprints":{"codehealthFindingId/v1":"2054b241e43d3cddca6af559b13f47068aa72edd8fff9103937d5bcbc81ba867"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5322 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5322}}}],"partialFingerprints":{"codehealthFindingId/v1":"7323da4885ea04b003866b4475702a14a5723c5e333222aed8c224c123aa0399"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 5329 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5329}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a3e3d15be33f23b48460b72f4289c03845a19cb0af020d80435cf06a0579d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5466 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5466}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4915145abf2c35104fe1a806c2264c917c46d472c3e1ece1820cd83a5301fb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 5476 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5476}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0bfdf3e3e95c091f067da27937a3f557ecb1005a060cb09a4bd82a250e72c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5515 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5515}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0284420164ffde20c56a56f027f6b2bea900d95a310bf853fb207df57af204"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5686 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5686}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b502078d49691cb6607601ead3fe13233d97b99205e3cdf18cb02ddba74853"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5766 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5766}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecbaca156a6b63a2116a975f0d9cf4cafe2bc55ae213afae02279072486f262"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 5768 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5768}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d5cefb5cdb07c64d6c3dee10844981d1064751a4b978fb81b52871002d73d1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 5801 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5801}}}],"partialFingerprints":{"codehealthFindingId/v1":"9193409c156ad1f5f4e5ce680e2d0c2fbd95e08aff49f1f5530cd94aaaa5f07e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5870 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5870}}}],"partialFingerprints":{"codehealthFindingId/v1":"94573d7f7e9c186f7fc479152d11c6947bf373cc81c385e4aab9b0e15a4515a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5876 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5876}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee5abd4954845440291b2349cbe8c3e41cb710e693d270b62c85b9d3fedfef0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 5887 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5887}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f5d5ecc71cac453ae6bbe9408a3e00976c474ad8787ff81de9557e34cb57ed"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5915 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5915}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b781292cd1aaaf0915cea73124c923b0540ce884e8fa5ba873c07b77c79b58"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 5927 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":5927}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bbe0e0577fc4225775a82a14358fa18b1c6f109d6f5509bffc08ecde240aa3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6014 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6014}}}],"partialFingerprints":{"codehealthFindingId/v1":"b677a20c6eb187c36c53e27edf1aac94b6ba611c7bdc6052cd94fcaf9dba91c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6019 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6019}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e4e6eae24b7dd2a5950697d6ceb6b5978ad45f7ab7c9dde018ad625cf2f20d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6102 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8190cd894cab8d5755db28986c6aa156feb62937098c356d9013d5e2940955"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6235 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6235}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8d480dbb669e271bf8b8c8eac303ccea2c0cd51f3fc1e682c3fe8af5cbb5c5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6542 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6542}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa5f9fd7058abfa2b342c95e2a895eda7be9f01cc64365ca1b76cbfaed4ddd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6726 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6726}}}],"partialFingerprints":{"codehealthFindingId/v1":"e628861a0257c0d477451a2491a2cfe5c03e3483c9fbc1f2379065c5418782b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6732 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6732}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a3f64e8a4c39b41a56eb11ed06b7788e0fef7c32401cb505f9b83162f6c25a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 6857 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6857}}}],"partialFingerprints":{"codehealthFindingId/v1":"985be5e5ec558bdb4d3460b4974dd3cf065e3ef5ba551aa101d456fcaa904aa8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6861 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6861}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c8378f70ac63843afd12f25426b305f2d842c2917ec19596135886d5779250"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 6871 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6871}}}],"partialFingerprints":{"codehealthFindingId/v1":"7044cfdc0b0240adca3e94f3c229c17291b764176377066f1906267491e1438c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 6972 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":6972}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b0f89d81ec2dd159657cb185b08743d74bf19ffaa273667014f11aed07f5a3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7106 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7106}}}],"partialFingerprints":{"codehealthFindingId/v1":"bddd35b69322823e2b3ac1e42b94ddf56321f7022b8dec32605e1347a81b459b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7377 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7377}}}],"partialFingerprints":{"codehealthFindingId/v1":"1067f7a88b94d6cc786e295ee2d44a1840fdd9af7cb9a738cd9d170fe63327fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7390 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec077b5cb2b2b88a84f16f49990ea32b7feb4f73845ee5097602f71937a4ec8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7412 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7412}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f06f21851154c829dd6535919477c09f0548d8c0be52ee1165e0522eb13a64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7446 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7446}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0316c409596975d2cc9b2f8c6be47d7fd600a3bf429fe15c1bfe250dbf420c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7482 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7482}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad9abe3db4fa8226db65a6e9e1e608c57f11708c6c3b08864a556eeacb156dd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 7486 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7486}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec49218c3f8733331aefffe7a39668ee7b4dbbf66c7f6846a958c2a84768f346"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7563 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7563}}}],"partialFingerprints":{"codehealthFindingId/v1":"4050f192c009bb60858284a70ac2c0fcd951a1742770be32b2be5a99357a2c4d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7568 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7568}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b327d8ed875c5c603904b93f05c8ae5ad104d0fe9cf1757df19c17c5852be9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 7645 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7645}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd1da01b3eb5d0ada01223fe476e3a24ee2ecf8c7ed4856aef8bccf78b39fd3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7673 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7673}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca0c324a2a3a0cd5e0074be52de85efc8e93902c95f7fc1754de0af0bb36438"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 7706 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7706}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d31ce57065326603673554133ee0adbc8904c0b9d890aae26f6ae8bb050f1e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 7969 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":7969}}}],"partialFingerprints":{"codehealthFindingId/v1":"476d9007e50bde4d821c7e9b45d791e72d3277dc7cafe4b75dfc548267f2eef2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 8015 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8015}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92fb81e7a978c0737ac372280c2e2f1b98377cb71cf4b3a481f1790b21f6eca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 8017 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8017}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec672b3cf545e5b9aa7ef62052b7f2b8c8de5e135aabdb37e524a388421f5e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 8091 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8091}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0c8c7412a9fabb448b0aee2d1c92cb53992d280cbf1f55860dcb256017019a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8155 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fca140970ff9935c02a4c4bca2a6a2b3fb7d1cba8b4e033e6d5d0b6222494a2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 8232 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8232}}}],"partialFingerprints":{"codehealthFindingId/v1":"486bb331a5002755b34d96ff9bb61c0592688068c2f7cfb5001d32fcf4ddd71c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8280 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8280}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcb8fa3cbac95eb1f3e07ea25f1d72dc19fbfc731027a19096dbd22b42f9bb3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8458 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8458}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdeafb620c81b8bf11e3e6a5190c1bc607dc297d1569ee59a1cc5a5eeaaee98"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8758 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8758}}}],"partialFingerprints":{"codehealthFindingId/v1":"2265c2a521405ec6654d58457163efdcec088858c54c7c15d00216d4dc04bddc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8813 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8813}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46521ca2d963794e71e2c42243757ff54bc732d136397b35a0629dfbbb22a09"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8837 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8837}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b7f564ca85d4c9531db101a32e8de9e7350e58258b17c0599a4f559c1b8aac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8855 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8855}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db00deb5e9721254c764c50170845fbe453b9d7a01ad380843e137bb3232412"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 8931 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8931}}}],"partialFingerprints":{"codehealthFindingId/v1":"b02600fd559f5954ab4562fd633596b2c035a66ed36d41c83a5dc22e8da39011"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 8943 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":8943}}}],"partialFingerprints":{"codehealthFindingId/v1":"3026197c69df54461e738c5c4f2968925791424f1aeb9ecd54431fed98863881"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 9123 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e33b23a1e07a712e2896c3d5be68e4cc4fa32b28996c42a5589f8e699a72d7a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 9793 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":9793}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c30602364e70a4db61557b902a8f7d43a888323308dd4d0450dbac91474e227"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 10178 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c2abdfd988c83546654aa15e070ccade96a96ab46989705412340b8145f558"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 10216 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b699ead14333ebc3ee23c4f35d709c47f9702619c585771002a3a61367de7e22"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 10253 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7727729ed3062d29d977288388e4df7727f915eec66c195e98b15d3e5d07a799"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 10287 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10287}}}],"partialFingerprints":{"codehealthFindingId/v1":"220f0714d6997b5417d0ed2339ec810f78a9f12f6b0838864768049ac8a6ae41"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 10426 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10426}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dd05ed019271c48159a340115af5777e87627ca3db24aefed8fb7b50987395b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 10440 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10440}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8a938a11fed637a32a7a888f487a3ec5c86ab64eddfecb10644563925173aa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 10502 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b696793aacf54efce33ff5f5c810794ae45744661cd6c80e6e2867fa629f508"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 10701 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10701}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e5255f43fa2c1df64a2dec2cca7a3bdfc72f7dba427c2f5b336bac70656aa2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 10899 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10899}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1cfccd49c54235fd08424b6e21d711282c4b68de61e88a2057bd574fc333e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 10921 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10921}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8230657ab94dff5975680332228d0f83ad614fa84865eb01804b00c0cf1fa6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 10986 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10986}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2585deb103801620242f1ae085d6340b6c994540d74b33a1ef4f1765a5f8f86"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 10994 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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":10994}}}],"partialFingerprints":{"codehealthFindingId/v1":"043a9b7c0bd48fb55c48a44f4ea4a349bd08b442f01d401acd06104a17aaa34c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 381 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f48ba7f6e2877dee3a15e8f9d893a785b55cd8924b9ef0d3309d5d1c2814c0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\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.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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a86c913dd0f627ccfc6b848b9cba8753f2689d31d38da689852f0e24f20b46"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 645 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f75e8ebc39e19a02cd124cd4c9c2a0dfc973b763737b662802680355f2c170e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 668 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08f143cb6c5cf1788a82f342a1b87589e1381a6c4f6317e4e939f9d095b9e18"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 673 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5a44901dcd162b9f26fafc4f24e9f7fa353995313d51a8109f09a14cc243e1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 678 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"2084c09b6bccfbf3fd4327cf7636e6c99d7c2510a56f42f85b22011e045c87d5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 694 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2945b0effcfc411ca3964bad4da9e0db3ac7e77445d021ace74dd67de58daac"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 721 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1aff431186e7cab0f926ab1faa9d10e481d498f59594564583abe1f2a84099"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 740 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff05a66b0e7366866c29e5187f6c0d29cfc668e0c81a188b124c470714b849b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 753 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c27d6dac39613fe24d31c11fe44464bec0e621f2aa989a4736942f5a4668c9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 797 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"a970086f80c2669da6f7ec2a013d7361b842f3412b46dd766c235aef92fd3420"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 805 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"da13711f497090f5306f0ce8146bf2b2a55b496ba9acbb635d58d6e98a857194"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 877 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"62864750a9df72ebd5169d4bac2fa3515bfd072ddf1d6bdff32bb7e615f33dd1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 884 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aaf3308f0ca341f3407f5bf7dc3b12855e708c85120c048c3cb6f0712869a8b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 964 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f465cdc29d3b7fab10b16d01915954716320b545bab47e5f87dee7cc4afbc68"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1067 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"de746e0944e8f6f0039ab8bad0765e9bc584765aab10545bf5c029f7e7b07dec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1492 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e2227ced9a9c247346eeb6e04aac4ddc93ac107da2a63acb5d64970972d122"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1515 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"e984724ae788286d18ad4b72e56eba5acd68b4289c8df4846f109ef99056e39b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1539 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e931f181941f1260015701ae2640d6f752f5c875096db66113b3289279daa3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1937 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1937}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db3a42f2389cbd71e73d77f1b8cf6bc6506823cb84ee7be4e4a1c95573ab0db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1981 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1981}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea55c87d0b1c1f9df503ac43b4505972bd64191f38e331587eae9153b3b8cd4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1995 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":1995}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c5384f16ff0f78eef9888e6229a1107763d0c4e1459f4f5d80ccc02fe59562"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2076 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b37cc0b2507402db2ac8c5139d4cec4da47c282961fabaf35cf4c826925811"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2087 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2fd4811cbb6b35164bc725caa7515babe2fe6d7a073d92f1baac0714f2644f1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2096 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2096}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9d2e293b1a700709bc67c12b8726444134de1fd72c2ad36daa40c52e4e43b6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2102 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbf15295efec8a003529dfffca65bd6c39d4b865c5c72acf27300bc6db758db"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 2129 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2129}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb42260f4ceb42beba302d6c715c451f689993ae3e7cbe1e27e9fde48d32a94"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2362 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2362}}}],"partialFingerprints":{"codehealthFindingId/v1":"9953220aedbd5beaff358abda5bfe325be84d745100d57519c13f36ed2df0a92"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2374 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2374}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd84bbd2486dcd06ca9f63f804bee33e9289b905216be2f2404b95cb7230642e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2420 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2420}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f09c89653b883cd013e8a53a4c5d240870e5581ab8ed9914fd4643188933625"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2602 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2602}}}],"partialFingerprints":{"codehealthFindingId/v1":"6847e0b17fbfe46727c2bc3c08026abd92b2eb4973dac2ca2c5894a3b50876eb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 2679 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"de1fa56ec6285e6dfd27b5fc8fbe58aea9049d9a08c822b40c4b0d204cf8b78f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 2723 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":"headroom/proxy/handlers/streaming.py"},"region":{"startLine":2723}}}],"partialFingerprints":{"codehealthFindingId/v1":"85badb9f94bc4bccac506d24c4ae2dce42eec20529248292eecfe7728db6f570"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 459 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":"headroom/providers/anthropic.py"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"117e0186bf0baf287f3004eba52e388ed11cb2e482b9275d25d25a0589d9a3da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 467 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":"headroom/providers/anthropic.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"833bf15f256d96ce1738e19ad445c953345281a26a4af4efcf19277a2bdead54"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 472 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":"headroom/providers/anthropic.py"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"944999c64cdfb6cb66ca37a41e4b07d94b435c45bb843bd43976d6110d82b9e8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 501 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":"headroom/providers/anthropic.py"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49c09cf6094a1e4360da5959021d709d0c3aed729122d25c59ac4ec19cc0538"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 503 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":"headroom/providers/anthropic.py"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"007b6d0252ded9126722d2cf0430555e8076ab2409fb24adbfcadfaafa01d224"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 887 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":"headroom/providers/anthropic.py"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"76a4ca39105150330b9bedf9d97cec92b81c9a4d001ef128f7b27a2c9f5c358e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 916 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":"headroom/providers/anthropic.py"},"region":{"startLine":916}}}],"partialFingerprints":{"codehealthFindingId/v1":"8313adfd733d7b7857810cb2e73507b8064b7d86e9207ec8eae246d7da3a7573"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 143 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":"headroom/providers/cohere.py"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ded48962a37168f3c53f93baedcc1e6c7a93acefc389753e04ae68c7bb08591"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 175 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":"headroom/providers/cohere.py"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1288c431dac837f6762d56d370b420dbfdd3d5d15e07c741a78b540edcc4e0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 291 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":"headroom/providers/cohere.py"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7829528ff31ee2cd879ec84e95f8628625ba318b31b6d8ad33de1e921f550eeb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 148 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":"headroom/providers/google.py"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e12123f501c9aac701fd6cb8c3b69bf284e764cc8fd5061d994d89084c6c14c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 162 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":"headroom/providers/google.py"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e984b9ddb7a25b39482c08909922ae96679d5790a1d1fecc70cd42ea0d4be5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 183 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":"headroom/providers/google.py"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"05421d61a6cb39d8a2f9c573b6b90c5db98d05eb861f5e1142c8718cd6dbd40d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 103 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":"headroom/providers/litellm.py"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2721cf305f587f4a2ca676443900b350b184b773974b902eed823b06e9dadc89"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 114 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":"headroom/providers/litellm.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe16b28e55ff304827b2fee8428e9a36f05bcb9d82247ac2d88053b06b87092"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 132 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":"headroom/providers/litellm.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"33378cac4d520f2b9f1fb215b3ea93cedb7b9e3c5fd7d20eea258b5d91b80988"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 208 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":"headroom/providers/litellm.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c60b56e6be79b7d894b3a408232bfb90062eeae4296a88d40cc0ea7f885130"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 229 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":"headroom/providers/openai.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"8786171fe3156e5c42c3365b080cda7918ca003e5e26a568b311f36a2f7e5be1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 260 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":"headroom/providers/openai.py"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d533680c6a12f221d5fb03c177e309da2422562ebf5bba089f6e79db81dfc6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 262 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":"headroom/providers/openai.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f80c3203372b5cd18c3c262ef2edf910dd4d69d23a9432a75a5acb7077cd3f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 610 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":"headroom/providers/openai.py"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"618db145ce5dc3c11476bfeed13cefa6013d140aaf41ac935825c08628a61d64"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 648 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":"headroom/providers/openai.py"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bbb65677c546533a8336afe2b18a84f74a40103971e1ca3a2d0a03ffdb91e7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 202 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":"headroom/models/ml_models.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd99bf877a03f16d569c366c22d83a1ee31bf1cc75f0d2a3f4e94a695cc2473"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 215 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":"headroom/models/ml_models.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7ce3f886b52c1a4323725d5e39a81bab9d0cff293cb2619928db0e1443ea2e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 246 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":"headroom/models/ml_models.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2820eb528aeb4a491f611d644457b028c96a8d5ec8cc5eb6d193a5efb17c380a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 267 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":"headroom/models/ml_models.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc89f117816c0bb7bf1ec7c120fe45feac547ce0e4a2d29591bbcfc2d4069f2b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 294 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":"headroom/models/ml_models.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef9aec96f115f930782d0b0d3b0b423e0812144c95104882b8faca630dc80c5"}},{"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":"headroom/models/ml_models.py"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf901e83242d3b2ad38890a667677b3bf7e12ab9cbb24031b6d421d4ae61a42f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 338 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":"headroom/models/ml_models.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d8a794cff97209e032665eec2b69764e591e4ae0cb20f615162a9011146d29e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 363 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":"headroom/models/ml_models.py"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"e429b59156d6853e094e47bf541069e4d65fd9407cccb0824726c5904e329a36"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 116 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":"headroom/memory/bridge.py"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a12b6877562a1702d1b9e888291d0fb20ed6e431c86956313692644a01c4fa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 132 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":"headroom/memory/bridge.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea884a196b13dba5feed67798f7e3d036864d13feb7514741045b0982cbbe9e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 191 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":"headroom/memory/bridge.py"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd214cf61368003a45e5e7f91b213a41743d8083a155fb3e7dea965b132233a4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 205 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":"headroom/memory/bridge.py"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"661996898f2ee434fbdc202804c660d32c340fbc2e1a1e3fff1a569088d2ea26"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 225 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":"headroom/memory/bridge.py"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"5306ac8e6104af86dc1c360d23fddb0b5139a8726fd4c7abc0fc33403cb9077f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 234 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":"headroom/memory/bridge.py"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"796f3fd735bdd6e8b15c54a83088fa99164e8cfeeaea25851f80b2495de9d963"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 263 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":"headroom/memory/bridge.py"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2b245c3e5f01729517efc00922c8c023257d3e47adb52c30a316b624bd24a4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 395 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":"headroom/memory/bridge.py"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2ee54e75fd1670c9979490cc1323b67ce9d9aa741f2c87c6573d484ee3922c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 557 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":"headroom/memory/bridge.py"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e0241c7482d4fd5848098ebb2c1f7aa2e1bef88ad45d47aa0e5c750f9e920f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 652 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":"headroom/memory/bridge.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e25469ba8253d0687026d71d3ed4e91308c6cfbb48f9365978e6d597ac5a7fe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 210 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":"headroom/memory/core.py"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d9c9fb4df7ce24679b228e7cb1fd3af3d94ad4c86e2b3691d4bf387590ba3d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 275 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":"headroom/memory/core.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"116aa937e41fd2d1a7157a8f7b2b869e4aa3bf449a9d1afcb2a8b4230ce948f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 605 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":"headroom/memory/core.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"f537482eb78792cb02a944e06f7fd2aee2051ad1f4c740b99910b344a89d7723"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 730 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":"headroom/memory/core.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b0811c7c66e509160e581bff68d81419abdcaafab89fc39522de1ea554552c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 894 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":"headroom/memory/core.py"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdfbd025b925340319883ae1e36768e7a08cbcfc2417a280f9cb0a9be8c149c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 156 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":"headroom/memory/inline_extractor.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"622809775c8fb8be54832080089c9d5d5d0c9b71e3e2016f0b79b28fc99a9eb2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 151 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":"headroom/memory/mcp_server.py"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97a4d2d70beffa7e0a6335beeb57ebc9c84c1d76d81e634371b4045066ae9d2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 189 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":"headroom/memory/mcp_server.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"18d812c75fb171b9690b2f73349029c67b8c45b6ce4dc08cb7cf77f18c935be6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 327 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":"headroom/memory/mcp_server.py"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3394a40129acd79cadd55e082b36e6f9aac84b4ab6a128e065eb11811117c2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 338 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":"headroom/memory/mcp_server.py"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5b85a5f5665d60c4b9c17e835ccf0cafcaf23ea73b357651154f63f61cb4a5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 381 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":"headroom/memory/mcp_server.py"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"60147275cea6a3e2f0b975dc0f4d6dc9cb37995018065d96bfbeca6ab9d11c4b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 199 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":"headroom/memory/sync.py"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cc3cf5540c4a8452038c93a0ccdb74ba9b97faf5dc57ed721b39b6838e0d28"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 228 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":"headroom/memory/sync.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"908b3cb2854dc29a1f9f6797ea08e5a7b0e3c1baa66ad8bc40417760fd843d72"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 281 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":"headroom/memory/sync.py"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f34951d0592f20ed7c3876805703dc156b3dc635607ff8741d5a5600c851b5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 339 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":"headroom/memory/sync.py"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac05ce6aa0bf361cbef8f646ad6f0ce48874ad9a81b15ee65c8157adb74c12d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060exception\u0060 at line 315 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.exception(\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.exception(\u0022order moved\u0022, order_id=order_id, status=status)\u0060 with structlog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/memory/system.py"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"300bd1dd846b8306aefb51b6f30f94a929db97fc710dfe450fab81fd1130d1e2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 411 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":"headroom/memory/system.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f73c95d9cae2770401383d8a7430ca07864da2183a78e55b59a230e930fec4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 485 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":"headroom/memory/system.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e4c052ac88ca1bb480cef251f2ed8c3fd1e5dd81118726b61b221acf8c6bbf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 543 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":"headroom/memory/system.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"6900d2f67ed668cd5de2fb241c80aa46f517061a8b634e55d3f3a493321758b7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 600 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":"headroom/memory/system.py"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"82c0046acbbe0ddb19721c5c74c1285586470a7479640d8fae81bca950a2663e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 276 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":"headroom/memory/wrapper.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2907f862b8eb82c14bc6d9861dba0f82c35ce76a8be0e5ae7a1d36789c4c8c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 237 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e3a104450151e716d450f2b3e196fb64069db8df2d6105e8425c10bd186a03"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 242 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e221e878375a26a4695bdaa29cd9bbf7db51adb836ac627a8f2f135eeb324a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 251 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19f43145598f8e00ba5a738123c5b11861a8048c55e3dafa67e591c2c69858e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 468 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"335448f942cf95daf396533a93230f926159285b31efaf70cb6df52a7e5f9b9c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 473 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f915f71671cd6120fa3c0e75f5689f9955e47429b445e4f14d64058c6cdcc93"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 482 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":"headroom/memory/wrapper_tools.py"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c748706377a3f59bc66107cf862239ce83f6a1bd51ce90181f7f22e026df31"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 399 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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c267d3f1e7d3170b56399a8ad3ffe7b21ce68e09be0d5e6b6eca332195a14ba"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 601 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":"headroom/memory/backends/direct_mem0.py"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28e95783a975dfb98ed00ef8d1764df80ec7524b93b9e2b91ac827bb791284c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 216 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":"headroom/memory/backends/local.py"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c489a67b63277cf062d1aae8efbbb2cb5ff68fe4337a18ee0f3d05b5446a7c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 344 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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c7e834aa3d026e3d9a5b4cfe645ad54cf12fee9e50762c7ec9e2558f54ddda"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 802 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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4b174743d23408e2800b0dab714d1a5bc7852f59127234422a8f040456e70c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 1035 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":"headroom/memory/adapters/embedders.py"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"562040dcf171f62d35b13f3a4e24231d9c572245c088ed8187997ad2991131b8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 74 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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd686f03658b0ef0128455bfdb5df4e40aa9b889fd5f132576db08d1d6f57f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 85 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":"headroom/memory/adapters/sqlite_vector.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bca9ca05a84b472e9e5a9505a9e27bd7899f498169bd833b743dcd44a31ea12"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 137 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":"headroom/integrations/strands/model.py"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d8f6ae013de483d89110407c388ae48f3d1c79e880f19790d4050721f4def1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 337 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":"headroom/integrations/strands/model.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76cf771d5df8e5e6d2b350b66b63ff8f2fdd0a5d459c1ec3b9d98e770b69206"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 407 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":"headroom/integrations/strands/model.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fd6c4a8a671068ef6c47bba731caf08444243aa6e54cefc3027b65db58b7f9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 467 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":"headroom/integrations/strands/model.py"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5162804a35364d31c4374723d4d49fa7386860e91cdcc7639e9f4b1f26120bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 62 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a36a38628002c8ae1f007a22ecd17acc4c11f3f61e0ddd2367e5966f28d4ba9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 68 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2290d7a3e2137647c9714cdef7b54ff021b1ce9c0b48c3d0488fad77b82608c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 71 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3702ac1ab49208166130595ca3615224e49d7bc2af82bb1fc057a452b060dde4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 74 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"faabfac0cd2f809dae151d52ce75395f0cd3e79e60245d024ff81849cd897659"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 77 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d334ddbda10ce2c364752ca8446bbf3d2c013301a63356b024dc2f0a4771fd"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 85 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8550454fcec09dc4812964991aad64b2d7f59db185160f436b6f9191fef5af1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 88 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80e6aa5805ede103401f5d943fba882e202ccffeb6eda3ed0825fbb8076abcf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 91 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9687b1b3d33f58775e7126e795c3f8487cc0a83a2cf74c9de6f95f9f0133864"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 95 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8be897007018f0995a922d84ded0a115bcd14423f54144a23694bf196bd32d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 159 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":"headroom/integrations/strands/providers.py"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a24a7a8f9b72dd82e7d664d601a34800cc5aeae83aec6652d0b27809a1815a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 214 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":"headroom/integrations/langchain/agents.py"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e03c3fd68708a5fdc46de44aa3c36ea6fd69274039c2fa2e5a641f8ba1117c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 215 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c37ecc5f4b1bce3ad3d4a9de5cce6405f4e254c997682fe1aecfb9521164498"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 404 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07cc3139f541cac0ed6e20a92cd864c1ba7bac967e5bec2db1c89b0c9c1b563"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 432 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d9e43665882d8708bfe25d0523f7f9c1d07ac9e9c8df236b0b1331297e5897"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 465 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"646e45854e41ab7f84158e430e0af62c71dd9bbdee08869939164c8d668835e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 516 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d946435665532adf4f80893c2001a30dcbe9e470c172fcbd99f4dc61b5234b2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 659 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c7e8cf4399e68bfa45895babc1fdf6771bc44a7ddbddaae8851ebf835c223e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 694 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.log(logging.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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"1258701f508b6329228af8de1bfc3d91af563bb241a021e1e4c8f087b94d8ce2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 729 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.log(logging.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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fa5f4607508745e62dca9f838dcc17d7432c2833cfb2ee1014f345521379b7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 751 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":"headroom/integrations/langchain/chat_model.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"463000d71f57d5295c5854e4bb8dccb166cc1401b58255fe533c9f6db14c6ed6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 155 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":"headroom/integrations/langchain/langsmith.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d070c16ae2f33fae4c09e464c6c2f10ad15e147127eeb38e0fa619e6384d909"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 189 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":"headroom/integrations/langchain/langsmith.py"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1cb400c42eb7051742d5cfc53446e599fd577276e00988e17393d87a9d6d9f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 254 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":"headroom/integrations/langchain/langsmith.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1aee302abd401e55a8fbf9b78f6b0ca46aa840206589f7f17e4c63a6789c1d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 256 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":"headroom/integrations/langchain/langsmith.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e0eaadc3090e67b0e8e3f949b8a6e673f697279424f6d4f865442be65d8ddf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 155 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":"headroom/integrations/langchain/memory.py"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5c63b255b695ad630b429f3e4931cca58032414ae9599b2b67d9af8b6288b7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 101 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":"headroom/integrations/langchain/providers.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b478504c82a977de8bbe4b61d56c1e062a13edba4070c65acc13c5b6ec0ec7e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 111 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":"headroom/integrations/langchain/providers.py"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"343660f471a9fc2c58ad49a9b02c2ecd365d1e740acbd85ed7f15541474b879d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 117 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":"headroom/integrations/langchain/providers.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b53b1aabfb1e897c802309e3ac41bc0b0554570b6933717afcf11c41aded14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 235 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":"headroom/integrations/langchain/retriever.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8765d1fd23d37ed644f5f402445ab4d19bd2087e2149079e63eedff4db4b373"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 120 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":"headroom/integrations/agno/hooks.py"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdaf49b7aedcf18fb8f5dac77132b2d80c7380e7f4c2cb4032c4a782daf53afa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060log\u0060 at line 269 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.log(logging.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":"headroom/integrations/agno/hooks.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"216ac7e0fb874ccac96efa46b052c6643e6b0def8431b79e9e6e4a54194d4086"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 265 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":"headroom/integrations/agno/model.py"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"91fb2f6da3f4c538c316da955f15265f981ba90daacdec5893f4146961f232df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 510 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":"headroom/integrations/agno/model.py"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d3a34a9c3f1941de7d82a374f216abed9930fd5a3714e56c90e2a719c5fb38"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 637 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":"headroom/integrations/agno/model.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b60d6aadfd4248e38df168a074acc257e1e781fedbf0216509d1adc94166ec"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 656 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":"headroom/integrations/agno/model.py"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5883b39f203fff539299cd2cc37ca4c705f01274e6f70a8995393a6909da75"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 678 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":"headroom/integrations/agno/model.py"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"057bcba8395f58b87405091be6881fa68fa17f57f5a2530e9f29e7b03105b48b"}},{"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":"headroom/integrations/agno/model.py"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb85fe9d694852186368dbbee3eca3b3be13022029a0c3e1eb27a7f5be99785"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 89 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ac2eea26361bad6e26f1b6b64408c5873413c884fbefa445cd6489d52251eab"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 95 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3371468d0c485c55600c85436975b9f6b9c94bbe7010e02e5f72a87e89fb4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 98 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6634d4f36f82faca02936530250a42768e40f74daa48be421ae9741702c6675"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 101 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ad2ee70c015b243cdbbe39e57cb8a83ef1ad9a4e7d4952d8d538d97df87a44"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 104 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a9fbdfd31ece828f542b91898ee33bde6cd278d2cb651d4bbf78270d678fe6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 112 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56930a40e46fe78a3e7b6880f50c1410209ddb8a364ebb2cb631f19c3767600"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 115 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3105bcb58b4f27da516c90ebae6d39e0f1b2166aeda950aa752e49201bdca59f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 118 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f8feb8f533df1cbff78748bb5b67e885ee8ab48a60b70c831b1805445a887f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 121 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f7422b0ab9d60081eb0755c98812daef70e44212b1670043e9f0de545e3e4f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 125 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"395eab74a2d6a03555c938ebfadac016a0ac0798c86d35a06b8d6628dcdd3929"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 149 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":"headroom/integrations/agno/providers.py"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d90875625be52e9f20f12159a846078775982ecff04e762bfeacbc8969333c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 649 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":"headroom/image/compressor.py"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75cf275da25cc68a6b7000b214f377aefa5e145e69988c7cf455272de55c652"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 668 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":"headroom/image/compressor.py"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb793804f656b9f167c44316e4da4fac9ab569e33dc24dd64ede9d5f3d29b5d9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 719 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":"headroom/image/compressor.py"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"60397e807e8ab7f378cfdefd23756d03e0d086c6dab066ba706d38e8543cfc80"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 724 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":"headroom/image/compressor.py"},"region":{"startLine":724}}}],"partialFingerprints":{"codehealthFindingId/v1":"92929c68e8a0f60f5ead44b2d35d24efad9dc6ccc84b814b4cde418971b05626"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 751 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":"headroom/image/compressor.py"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f21e44cc0f377ed4f0ae994e21ba107b85feae63b9c7f2acf93d827fba18737"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 761 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":"headroom/image/compressor.py"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d55e694b359e966de7257036def0f2e632f39b479fb73612c9e2e0c3b132f0c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 768 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":"headroom/image/compressor.py"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d73d1724a4ab95c2a0655aeaf5de009862133b107275e47ced34bda64b3703"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 791 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":"headroom/image/compressor.py"},"region":{"startLine":791}}}],"partialFingerprints":{"codehealthFindingId/v1":"022c8c6d370e6f549eb067e5cc614e4d954fda5a4d3b77d728b2586e7d9d723a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 152 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":"headroom/image/onnx_router.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83da522b7670acaca5d863aedad786a51eb53cc761dd8ad5b4b2fd6453c1286"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 179 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":"headroom/image/onnx_router.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8f8443840d48545d35dbdf399556961f319093fffe4938896f76697572ff5c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 224 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":"headroom/image/onnx_router.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b4f9b41b225b115d3d68eb42b2bceb8fe6c07572692c3bf68e2752e9b2e60c6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 267 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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e187140a04d6c775d108a4c7e32380ce7d990e1dcbc2877d18fc8d08a45ef5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 375 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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"410e641a0500e9dd03d831ede8bb1b132bd0f5bec78ffdc82512a2188c4b0852"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 394 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":"headroom/evals/comprehensive_benchmark.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a238e2162f0837a6cbf1b86a3693cb10f0bbc122b97c58ba718f4cdc188625df"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 87 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":"headroom/evals/cost_tracker.py"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a722a1e26399b2a423e5956aceaf210883426ed840773c102b87aa0cc41811"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 453 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":"headroom/evals/html_extraction.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e7eb80c493e99aab52462f37031745bc34a1f2c23d32286a3b55d01efb57db5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 481 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":"headroom/evals/html_extraction.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cc6b0ddd5dcc5c8a17531b2af73c13a97c7731be666a79700a785b996271c4"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 485 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":"headroom/evals/html_extraction.py"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"485619308c56df754902697060c3ceb5ea5c13dd0db16879c632c400f27816a0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 490 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":"headroom/evals/html_extraction.py"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd97fad5f94e4d11991d7dd96ba6aaf691aed5467279c9e232526589a8f79b88"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 167 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44e9499f9c407125744241b3952616997863511c4c210d435d7dbe2a6d306de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 206 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fa8782cdd3eb0dfa72732a6316599181ab4260f9be07a50fd56786e6d3ab87"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 293 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"94408eb639a9b5e0214cd31dd4438ae01d9151e57315152c34a1b5b09cdf05c7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 305 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc20a6395784cf8b51b9701eba17ae574a509e4ddb4f55c863512ed5997dbb13"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 352 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2695d4dd31e15b1db75ad80d21bc43caa0ca8e12b63b09d4085bf9876121ddf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 379 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"9489dc1c2311be4a4e3e94eb0fdc57d1767949b253340df722a4ac62e71165e5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 478 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69cd01e6883a961dcb0a25ff2c79c378a1f204bcaa6c91b162d61782c17f303"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 479 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"943c122eb0e92e0278a464c357f8d722e973a0b64feb37976f6cdb18691f86f6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 481 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c8881617f7ce895a9d75f3da908981394dad71c6865957d164d6d238be126e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 495 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"362b54849766b79a87688ded8b935839839845fe8b01938adaabfe2b44a0f6ea"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 496 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"19730a990811a71b998a1bcfe8eb51019576cd6ae6f4956d3ad511a8113581e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 497 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb122302d5bd37021ebf6ac920dab797dd79873763868b000eae20799d73eb5"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 499 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":"headroom/evals/html_oss_benchmarks.py"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46dbb85d2a462930b3277d81e1d29be72dda3cb5d980006317d2ff2510667f2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 256 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":"headroom/evals/suite_runner.py"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea65e88ac58d675c8c83feae1415ca144453302aca50d3e9a15e8df668dbcaa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 276 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":"headroom/evals/suite_runner.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8547de8e374f99a5819a7bfbc7cd4ec9edea735c455f3b21acfd0305399f7c26"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 287 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":"headroom/evals/suite_runner.py"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"896d62d3a9bd6be682b3ad34c8c1cd80152b729ccdb8f1f1dd04d174a819cfaa"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 293 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":"headroom/evals/suite_runner.py"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"8435d9ad28effd4eaba2bd9c0db821d9f2a1e5be0bc16aedbf4ebd1467245bae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 605 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":"headroom/evals/suite_runner.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ff54db8f44ad88b40d66e387dbadd3f9f2ee8b9f0bdc0d6a234f515add85e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 235 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":"headroom/evals/memory/judge.py"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee13979121254cd106d9d3b2897d42773acbe4b6048cd29585680609433c6e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 240 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":"headroom/evals/memory/judge.py"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a04238deb70759265fa4186e5e5a39ee0ce197f0efa03f125d28f587dc3bbb8a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 233 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":"headroom/evals/memory/locomo.py"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"197b92f790a46598bbea48597e89330d02c788784d79c719a5324be518befb6f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 239 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":"headroom/evals/memory/locomo.py"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3ff3f5c48108ac8917e777abe26b9c506d56daf3fa415a1d10f18dece3808a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 289 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":"headroom/evals/memory/locomo.py"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3f58a703350a36093990d7f5d0b5a55e5374e8ea6ecea266d8a12be1516856"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 301 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":"headroom/evals/memory/locomo.py"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde6fbcba5c5bc01557ebb6c3bc70efe613f62034523fd68b17bc73ad1fef0be"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 349 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":"headroom/evals/memory/runner.py"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b320e26510f051cd8d8d8de6e21e4ae382703e918b034705a6676c50ec16848b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 403 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":"headroom/evals/memory/runner.py"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7dc0da1d55b76fd22ab2d262982e2885ae4b2be9f2a231ca759889ce538363"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 456 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":"headroom/evals/memory/runner.py"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"667493d52d93116a42a94851fdb3337b94e96e58cd7246e05a1e089942a91db7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 564 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":"headroom/evals/memory/runner.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0de79e64fd35b9775155226e757b2dbaaa8887ac143d95e04727af6db962d74"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 691 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":"headroom/evals/memory/runner.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3194caabba2a3eeeb1a6c40829f41bbc7c858863ddea18e504c520e2209e16ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 700 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":"headroom/evals/memory/runner.py"},"region":{"startLine":700}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedcdc202eb112ac81bcacc007832d1e8bf8d54a922cc76ddb5388f48f38875b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 707 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":"headroom/evals/memory/runner.py"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae3c5b42ec66fd4e4eea5f467d5d0d26669172505a59b41d011b31cd548b879a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 725 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":"headroom/evals/memory/runner.py"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f804528871cea7ddaaeb51b2bdfcc5c75f9baefe7a2f4fb0a284272d6f56c82"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 741 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":"headroom/evals/memory/runner.py"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f0409ef737661bdb3bd7583cda65655cff9d03a5b3859f554a1826ce0bb68d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 752 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":"headroom/evals/memory/runner.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5de126a138164700d000736ffaf1ba57ce31991f1141568a5387324765dbe42"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 753 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":"headroom/evals/memory/runner.py"},"region":{"startLine":753}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcb61057d9b315ecc9dcd7e9c59f715ffafc6d130702ed2aba68990d4140865"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 794 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":"headroom/evals/memory/runner.py"},"region":{"startLine":794}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c3b4b0c5b3dcfa59aa1b482cf39bb3e74a65075a753dd774d71134c39f32f3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 369 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9735d84be34a108a704e0f99c12ef3558d96f4ea62cbc24e799355bc098101a8"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 378 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb90db7d31fc463760eff9f17ccf01dd583ef6fed734543af0012a44b83a2f95"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 399 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c5ebac33e282223f41f0e53b7cbfe3a785e337ba2796246c8a749dfe741ef7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 405 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a5465b97c1cd8bd6ee588e7ac7b6f7b165255400e88c5aa0be8f0024cfd0dfe"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 419 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef26882d46e95455995b9c9e35ae14375e46d96495325e1bcd1aa62b16b0da6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 420 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"adcc2eafca9ae758f29385066d4eca7e0a735b22a5f28ddbcae62660ca410536"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 523 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"085af34f4f4c59cd8c6db2cc681b3597dc4997aa7348bf772f2a853128f0a4ef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 537 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5e3a2113f3b4b0841a1f522f3f0eb2b47c66116da8c2a5c48811d89c596a9d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 595 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"96657ea477749d29256c6122559e70f98aa94284a7c7e177dc65b4782903e6ca"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 786 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6837aac5f06a56b7a3b392ce4871f6a805f8d281dc7f4e98835c6c5b7f5877c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 825 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"baa0447fcfc07b52015cff21fd48a059fad4547a1384a9d616c3990e3f8f46af"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 894 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"103002260375b543ebb97b378001993d025f884cc5a65041509172367b4e59da"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 1026 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":"headroom/evals/memory/runner_v2.py"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca6679b44da195b2db6bf4ad36e0e423b049db262fafc54ed897c569c1a71c3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 136 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":"headroom/ccr/batch_processor.py"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d60b1dbd44a68a6782a0f374637397650e19dd5cfcfcc7c0970b97b22f21c1"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 154 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":"headroom/ccr/batch_processor.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c60999564d13b292b64fc3547d573b81208564016aea222af58b0e60c541cdb"}},{"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":"headroom/ccr/batch_processor.py"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7f85c911169e4a697d944e949e80bdeb4bcf7c692bd05fbae9534a299fbb58"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 146 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":"headroom/ccr/batch_store.py"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6690fc5db2a4f6d62db812df31aa5f1d9bce66dde0f68fee15b953ecdfbbae"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 168 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":"headroom/ccr/batch_store.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"de6e9fe1999665fbd43afa73cb97d137b70bb28c25c8cffe2eaa9b6a9c65a12c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 202 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":"headroom/ccr/batch_store.py"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da79206f3c969078ded61a6087a14d6c6d0ff704327b2f1342a694425328ec2"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 226 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":"headroom/ccr/batch_store.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f022aafc5a043878d4aca63de61f6e862b3544a4bd2defa88c66833033b0898"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 231 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":"headroom/ccr/context_tracker.py"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"962d763eac8aa8dcd1665fd50eac9bc0fcd0b8837ebef513bec1d1d96d3339e3"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 538 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":"headroom/ccr/context_tracker.py"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d38646b230665abfa7e3b6b46f8dd0854848985746e01f358e3ccab057453f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 543 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":"headroom/ccr/context_tracker.py"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee15557490a78d3626903d06b4b166989649a2bc0803938353b1ba75303ff9bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 59 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":"headroom/ccr/marker_resolution.py"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa9c3b3ba3d60ab48e460cbfb12f2bd0c72b0772d5f60c6923437f73730c0bf"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 901 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":"headroom/ccr/mcp_server.py"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"9729913dfb8250073f2a159dbffec1c916c9af6311c042e5c1797b0287857bb9"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 294 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":"headroom/ccr/response_handler.py"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2a2f3b7b2509af2789bcf517e6052501400a0eca0ad35cc62399c5d6acb9cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 553 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":"headroom/ccr/response_handler.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b822932304bb3afa069decc71f40d888e5422a6f2b59e1cd972310195494b6c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 560 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":"headroom/ccr/response_handler.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c74f0acb4b6a0d08afdcf613d186d47d3f0019d5a6a7b182b5bc26ea635cef"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 608 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":"headroom/ccr/response_handler.py"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08a0089f7cdb0495b3f607f4b6be9b935b052eea1f8420bd316a7163b1a50e6"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 787 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":"headroom/ccr/response_handler.py"},"region":{"startLine":787}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3563b515710879c5c97fae1e1a4e2e8f713ff816e558c0969906c55b358b750"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 824 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":"headroom/ccr/response_handler.py"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"8551f2ab58f646471c4c08af9ce08724cb5be1c799400012320aacd8a5caefda"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 484 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":"headroom/cache/google.py"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"761c20b2130d963368d3ae76e508f995db760d81d54a05b42907d5f0b354edfb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 504 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":"headroom/cache/google.py"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eca87483a6e668894fb1f9c51c8d80d5e732526da28f571c196a3e4396cff09"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 537 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":"headroom/cache/google.py"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"f447de0c42303962b260c8608698e7818374ca7670c57debfdfaebd8921dd927"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 586 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":"headroom/cache/google.py"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b7cc4653a4dc054d2f84de3832e5b2daa0c79a941fefb9dac17e9782fa3ccc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\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.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":"headroom/cache/google.py"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac665577687f0b34e252f870f6b606e9563a8a3434ecad2a7caed3f2e229c0d"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 615 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":"headroom/cache/google.py"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e2054c7e38ba66f84e3da7af6bb4def1905220ba27afa26820acfd7d2415fb"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 647 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":"headroom/cache/google.py"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"37141fc0c34faee69131350528e0bfd914eb85d0fe076f853b83eae29e710d3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 730 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":"headroom/cache/google.py"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca219fd31b791639b0073f5a7ed48d4f30f161187360bc49a6c2a7febf4da71"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 897 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":"headroom/cache/google.py"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef89e799bc84c0d9252f815a4377ca4f13e275f556430d79ee01b6ecf8aaa7e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 900 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":"headroom/cache/google.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2cef7eb6f5f6f18eb825c5832352fd174ada204ed216b46b2d827194890e82"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 63 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":"headroom/backends/anyllm.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"4057bdf615f91451db2a3297b96743827427c91904eb35e0d8f68b587156c66f"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 264 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":"headroom/backends/anyllm.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a2c489ad5ef8cde9742d448416a67fbade439b82b430b393ea9843fd510a3e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 276 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":"headroom/backends/anyllm.py"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deb95aa498d0c9e3905faf7dda735868700e613679496d67ca7712a62cbbf77"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 471 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":"headroom/backends/anyllm.py"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c14a086c85510f0f77b209b245a630ac236bf167806269343981223a203c91c"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 506 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":"headroom/backends/anyllm.py"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"2791fea76d47822eb1d7797ca7a4078a4dbfa6245f9738d13c547109079952de"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 565 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":"headroom/backends/anyllm.py"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4cda97f6c97126cae51b2b58842e55545c6d318a8428dcf6734e793eb37a14"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 641 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":"headroom/backends/anyllm.py"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a249d58a937bbb737ab21fe46fdae396ec6f3045923a9a3c7fa5875701d2b9e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 308 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":"headroom/backends/litellm.py"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"585a19de15bd7ac0e1b16169636f27165119caf93a49a3fe7d3f172aba361390"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warning\u0060 at line 310 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":"headroom/backends/litellm.py"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dec8792d91a6e856e522143e4a2e129f9e5fc6b9ae1413b18e2bb2505634d0"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 900 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":"headroom/backends/litellm.py"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af300fbe91d4273f539af869e6cdc989f23af64b88e6eb729ded0eb6095ab10"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060info\u0060 at line 914 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":"headroom/backends/litellm.py"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae09e538d9cecd64d65c14dc8d9916e93d74a8484cd79c9768275b5ac52b37a7"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1346 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":"headroom/backends/litellm.py"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"44998fda39a0b787193cc958012ccf6787285579142bdc9a8bc7d7da5a05b697"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1365 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":"headroom/backends/litellm.py"},"region":{"startLine":1365}}}],"partialFingerprints":{"codehealthFindingId/v1":"477d56488635e2789981e46b6f8204f27423b98cb59f33ee0b5c43ec5eb60584"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1800 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":"headroom/backends/litellm.py"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f1cc2a566dcb7a60d2a76343ca5a2b7547dff72d54eb032d5cc6e3748d939a"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1875 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":"headroom/backends/litellm.py"},"region":{"startLine":1875}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacaf4c3cbdb60f8730f8c2b22b344a63ee8d2814b347ae0d94678a75c364455"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060debug\u0060 at line 1927 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":"headroom/backends/litellm.py"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5ee19a9919514a02e52ef7cfe45ce0670af162548a5546d5925db8cf7b5359"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 1999 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":"headroom/backends/litellm.py"},"region":{"startLine":1999}}}],"partialFingerprints":{"codehealthFindingId/v1":"b60c5e402824f7fd6c263eedf99c8a0cb5f91f3290a5b48f5e71fab9e90179cc"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060error\u0060 at line 2107 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":"headroom/backends/litellm.py"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d025a2097012f82c75cad80ec0d86c8a3e752236ca468db176b2669b2740ea3b"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060warn!\u0060 at line 412 is handed a format string with \u0060{\u2026}\u0060 values in it, so tracing records one finished \u0060message\u0060 field \u2014 the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Record the values as fields beside a constant message instead: \u0060warn!(order_id = %order_id, status = ?status, \u0022order status updated\u0022)\u0060 (\u0060%\u0060 records a value by its \u0060Display\u0060, \u0060?\u0060 by its \u0060Debug\u0060, a bare name as itself), which a JSON subscriber, OpenTelemetry or a log store keeps as queryable keys. An error goes in as a field too: \u0060error = %err\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/transforms/magika_detector.rs"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcf8b824dfc7695834a8a08959cfb43fc54a105edb3f4f4cd5fdf7083dc20ff"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~0.3 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 3 assertion(s) across the 9123 source line(s) of the 58 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: sdk/typescript/src/utils/stream.ts (2), plugins/openclaw/src/convert.ts (1). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/log_safety.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c40d0012a6478d1512df97b3054c0aaf9edd8af81918364f1f665d9201bd669"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This Python code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"headroom/transforms/content_router.py"},"region":{"startLine":1351}}}],"partialFingerprints":{"codehealthFindingId/v1":"173de5cd02427fc99dcc814ea3c87c2ace80b56d3f91a1810125afc692711994"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_ccr_retrieve_items\u0060 returns \u0060[]\u0060 when \u0060(json.JSONDecodeError, TypeError)\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":"benchmarks/ccr_regression_benchmark.py"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"221e7e2dbcd9c926fd31466e6dea5496d03f179e03e0089a246b76d9f0d84880"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_estimate_tools_tokens\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError)\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":"headroom/cache/anthropic.py"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"30dbcff7ea1d4619146f60cab89705cbd5b9e470546b52aac0cc47e191410020"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_compute_messages_hash\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(TypeError, ValueError)\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":"headroom/cache/semantic.py"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e7b5f84bab2d018c42673ac0ccff8d0bae27edfbb5d2bfe7a96b299e819c490"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_held\u0060 returns \u0060{}\u0060 when \u0060(TypeError, ValueError)\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":"headroom/cache/shared_sessions.py"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb82018891ecf32395a26e8f38e27b6d25ee30d5e9db9df2ca3870294870a287"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_body_bytes\u0060 swallows every exception into \u0060return b\u0027\u0027\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":"headroom/capture/network_diff.py"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"be50ad5a90e76fd4fbd72b466fe44c601ec1f48abdfe56e3e3748e830b9d099e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_safe_exists\u0060 (in \u0060verify_ownership\u0060) swallows every exception into \u0060return False\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":"headroom/ccr/tool_injection.py"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c77a420b5fadf5db68b5aef81396601a502187707134879980def9673e306a2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060settings_env\u0060 (in \u0060check_claude_auth_conflict\u0060) returns \u0060{}\u0060 when \u0060(OSError, ValueError)\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":"headroom/cli/doctor.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebc5cf0243ac1470ca5b4ba1895038bdb2f114e92d84e4eaf517441594b4590"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060get_version\u0060 returns \u0060\u0027unknown\u0027\u0060 when \u0060ImportError\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":"headroom/cli/main.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2d1687fbbc613b7abffa46474f6ffae3dbd7c5fca571cabae2b2873e85d44d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_wrap_marker_ports\u0060 returns \u0060[]\u0060 when \u0060(OSError, ValueError)\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":"headroom/cli/port_discovery.py"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f33a1391d1cdff486a0473940ae5511bada8800d8f3eacc7b2278b480ea9be"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_marker_started_at\u0060 returns \u00600.0\u0060 when \u0060(OSError, ValueError)\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":"headroom/cli/port_discovery.py"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d12593789bfc61e212effa8ec420b0e24d8e61730721ecbf9e2c43a2937215"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_read_wrap_owners\u0060 returns \u0060{}\u0060 when \u0060(OSError, ValueError)\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":"headroom/cli/wrap.py"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d47f63d95b227568b2f01ed9a84242d9e8f0c17aeecc8e7073095910b118b9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_stop_local_proxy_for_unwrap\u0060 returns \u0060\u0027no_pid\u0027\u0060 when \u0060(TypeError, ValueError)\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":"headroom/cli/wrap.py"},"region":{"startLine":4677}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd46891221ab8cf8b1d5e5a80b7a120acb98876077d4dc4df79b7b10f2927c6e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060extract_json_schema\u0060 returns \u0060{}\u0060 when \u0060(json.JSONDecodeError, ValueError)\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":"headroom/compression/handlers/json_handler.py"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b64cbef8300c04c3b32fdf61f5c6ca0c605149ba363f4b091f81112daafcb84"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_enterprise_hostname\u0060 returns \u0060\u0027\u0027\u0060 when \u0060ValueError\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":"headroom/copilot_auth.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b60316de0fb50983131762bda933f61dd63dfb1eaa493e661b04fa8af3c2593"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_configured_url_hostname\u0060 returns \u0060\u0027\u0027\u0060 when \u0060ValueError\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":"headroom/copilot_auth.py"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"920437ab7ff120a57f289617561f9cfd3be76615ce213f3666f2a2966dcbbb7d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_estimate_tokens\u0060 swallows every exception into \u0060return 765\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":"headroom/image/compressor.py"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb410cdf5707ae6c9c62a03fb651485ed55f0f77d014da758ed3c5083b22ab81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_safe_int\u0060 returns \u00600\u0060 when \u0060(ValueError, TypeError)\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":"headroom/learn/analyzer.py"},"region":{"startLine":1214}}}],"partialFingerprints":{"codehealthFindingId/v1":"086687e9c52b3af8a2d4b20ebafa2002e5e308937d915b9e289f95c4bb82247c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_all_memories\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":"headroom/memory/backends/mem0.py"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1838b730e68f89805b20e3889342ae617ceb53884f38c1f7be4e756bd84934"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060query\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":"headroom/memory/backends/mem0.py"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c462bc8b490090a53829d5d56ab0d9f18245c18a4e9eaeef5918b69f1a2cf08"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060get_related_memories\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":"headroom/memory/backends/mem0.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08ba1237b94ae236ab0259a3c8070c6c7f6b785e7ed7f8a27a744f739f78b72"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_decode_perf_savings\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":"headroom/perf/analyzer.py"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2f0a6093ed665523c0ba8957274b5c3fe985cad397e8308ce86ad9e68d0647"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_format_toin_highlights\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":"headroom/perf/analyzer.py"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d2b7912f918d73e783ef8bba1156196b61997848d4e8921374b2de1191af9b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_coerce_int\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError)\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":"headroom/pricing/counterfactual.py"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7565a6c65861d6fed957d7289ee2e84aa2975a29d6d39b924c73fe69f38c5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_canonical_cache_rate\u0060 swallows every exception into \u0060return 0.0\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":"headroom/pricing/counterfactual.py"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38e8bb4fab67697b291ddb78428b43820c6af2b01b52fdbd962b8215a486cd7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060long_context_premium_avoided_usd\u0060 swallows every exception into \u0060return 0.0\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":"headroom/pricing/counterfactual.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab4b59584c3bca8a164347af5c03a6c96f92c4f716f65731050aa85e47dc523"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_gate_view_host\u0060 returns \u0060\u0027\u0027\u0060 when \u0060ValueError\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":"headroom/providers/claude/runtime.py"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"85be0c20c7c7523fa43813a60c2ca5a6ff16ebe183a36563ab45f09e7cbaba39"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060unrouted_vscode_profiles\u0060 returns \u0060[]\u0060 when \u0060(OSError, ValueError)\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":"headroom/providers/copilot/vscode.py"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"667614abf00fb3d90756e09f4b99fc5405cea0f6261462a4c581b366ada55ade"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_registry\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":"headroom/proxy/compress_turn.py"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"548e5f752cca80a25da2ede553550537bc0c1ed31fa47c88a2a8e5d985fffe71"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060credential_scope_from_headers\u0060 swallows every exception into \u0060return \u0027\u0027\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":"headroom/proxy/context_guard.py"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e330865ec037a762265b520fcad2a42e4d4d84bea7f8762c5f9e6c10076637e0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_sse_event_type\u0060 swallows every exception into \u0060return b\u0027\u0027\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":"headroom/proxy/context_guard.py"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"122e405c65f86d1f9448687f99619f158d6ef22ed77a08af7df08f138546d2c4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_long_context_threshold\u0060 swallows every exception into \u0060return 200000\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":"headroom/proxy/cost.py"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9878e0afbbcdb0dcd79b4049ae48093b33ed0960779b48210595dcbfe87bc01"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_read_header\u0060 returns \u0060\u0027\u0027\u0060 when \u0060UnicodeDecodeError\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":"headroom/proxy/forwarded_headers.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4683c6395418ad78df46e52fa6b93e780c948c7331af70abde5f54a6fe74044e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_openai_response_create_frame_input_tokens\u0060 returns \u00600\u0060 when \u0060json.JSONDecodeError\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1882}}}],"partialFingerprints":{"codehealthFindingId/v1":"9101c4966024bcb219bec78f4b624a2f6241fe20a79c106d8495851956de995c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_extract_codex_handshake_headers\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":"headroom/proxy/handlers/openai.py"},"region":{"startLine":1970}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6de8b0e23f325a4eb4a38aa27462f36ab17158af64224c9303db867eb98d870"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_min_chars_to_rewrite\u0060 returns \u0060500\u0060 when \u0060(TypeError, ValueError)\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":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a6d7a5d07cdc43642beebf1640a36ba0b01afe71f5ff220a02a28f092e8053"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_max_disk_verify_bytes\u0060 returns \u00605000000\u0060 when \u0060(TypeError, ValueError)\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":"headroom/proxy/interceptors/astgrep.py"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22a4b79114edf1ecbfd422a66c549b34995049f86fd26105df3ea8b31a55984"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060estimate_input_tokens\u0060 swallows every exception into \u0060return 0\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":"headroom/proxy/model_router.py"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a17a85f613d5bf473edefa08840d50f989614cc7de21e9c41b35865d61cedc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060output_holdout_fraction\u0060 returns \u00600.0\u0060 when \u0060ValueError\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":"headroom/proxy/output_shaper.py"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f2c375a2dc7f5d552ce0b095d732272c7cf150ed7fc0d8b2fadbe7e8203e17a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_coerce_int\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError, OverflowError)\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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df279b9057fcba31ef8f6a120a0f28ce7ee01bc583e254a0b6bc71f6845db53"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_coerce_float\u0060 returns \u00600.0\u0060 when \u0060(TypeError, ValueError, OverflowError)\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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72ec9a837a06deb1bf22a596a748c319d3bef368b7b2fd46d9024558fe28572"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_coerce_signed_float\u0060 returns \u00600.0\u0060 when \u0060(TypeError, ValueError, OverflowError)\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":"headroom/proxy/persistent_metrics.py"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"020d94ad76b90e70c149f1358ddb911e0fe86d9d398756bb9329929b67fe327b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_provider_of\u0060 swallows every exception into \u0060return \u0027\u0027\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":"headroom/proxy/route_advice.py"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dfe414d3018a2612758149d689eda3a18004e413a86f60ddeda9f058e23aff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060event_count\u0060 returns \u00601\u0060 when \u0060(TypeError, ValueError, OverflowError)\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":"headroom/proxy/savings_attribution.py"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8a4c7c746418975f98c63022755b1843d8aab2bef952a2b59d546b3042eee2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decode\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":"headroom/proxy/savings_attribution.py"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7dd4c3759360e0c6543b19fbc1584b1b191076fab931ef50f06b2cda2f973c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_code_syntax_breaker_status\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":"headroom/proxy/server.py"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64dcb3817425cca092e3f1004a949431d3e6e0d59679bd694efcaca8f0e958f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_get_header\u0060 returns \u0060\u0027\u0027\u0060 when \u0060UnicodeDecodeError\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":"headroom/proxy/tenant_key.py"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3cb2788857ac4713d065e61b11a641c81227438759ff3c46352daf51322cbb1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_decode_der\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":"headroom/proxy/tls_diagnostics.py"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd509808ab959dc3db97cbe0969bd0f994c9e84a6d743a1e5d341875a998772"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_int\u0060 (in \u0060gemini_output_tokens\u0060) returns \u00600\u0060 when \u0060(TypeError, ValueError)\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":"headroom/proxy/token_counting.py"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a7c1a4d6a8f389e20b151c2ab1b1a95c6ce2e2972b17da221b55b60888898c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_nonneg_int\u0060 returns \u00600\u0060 when \u0060(TypeError, ValueError)\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":"headroom/savings_ledger.py"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"985bdb2a58c685965195e8904f1a8c14bc7dc766ae06c9de3fdc6daaf9fb5740"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_read_transcript_lines\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":"headroom/subscription/session_tracking.py"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ded5d5ac47f57951a0fe44ece5ac4d8cd3573c55e9bbfec95f43b44e16aa14"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_load_timeout_seconds\u0060 returns \u006010.0\u0060 when \u0060(TypeError, ValueError)\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":"headroom/tokenizers/tiktoken_counter.py"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3bb246857d37427ac3536be79cd489939d7f350ac5baef7b0fb75d20d4bcb5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_compression_deadline_seconds\u0060 returns \u006020.0\u0060 when \u0060ValueError\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":"headroom/transforms/content_router.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79ebae84b2711b6a7689ae9a65a7025808cb507dc483ec00022b86e4e67d075"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_compress_workers\u0060 returns \u00604\u0060 when \u0060ValueError\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":"headroom/transforms/content_router.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"899293441a6774a57c5f2b905b16b5c8b05ce5e6ef3e59e9af832486b4478e84"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_adapter_bias\u0060 returns \u00601.0\u0060 when \u0060(TypeError, ValueError)\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":"headroom/transforms/content_router.py"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"c79a169fffcf299539b609733b1379d95d0737e61a73af399581bef85532cae5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_tool_call_command_text\u0060 returns \u0060\u0027\u0027\u0060 when \u0060(ValueError, TypeError)\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":"headroom/transforms/content_router.py"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56067aab430bc3ada06c24313d6da6ac520956a6f905078a6f581d45b50e172"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_mcp_result_min_chars\u0060 returns \u00604000\u0060 when \u0060ValueError\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":"headroom/transforms/content_router.py"},"region":{"startLine":2302}}}],"partialFingerprints":{"codehealthFindingId/v1":"9256e4f8f6005612daf46456351e6b53bfe626f49114b33f02722ca7549ac8ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_shell_result_min_chars\u0060 returns \u00602000\u0060 when \u0060ValueError\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":"headroom/transforms/content_router.py"},"region":{"startLine":2333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ef01319d531bd7cb78b233d9866d067cd8b3edd5ef785b339a2dd2f4b3e9bc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_request_deadline_seconds\u0060 returns \u006020.0\u0060 when \u0060ValueError\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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"696af3e88724739c15cd75bee70c4869bc422d546205f8acb66ad3dbfc315e6c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_model_device_type\u0060 swallows every exception into \u0060return \u0027unknown\u0027\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":"headroom/transforms/kompress_compressor.py"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"19be5138c448cb14c6893ff88108ed122a553f0f0b3803e96d09f6c0b5520fff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_scan_protected_rows\u0060 returns \u0060[]\u0060 when \u0060(json.JSONDecodeError, ValueError)\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":"headroom/transforms/smart_crusher.py"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9a91b6024077364fa91a921e8859b37cac1f3de147ccb2dd73ac43b74bf8fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060count_text\u0060 turns every \u0060Err\u0060 into \u00600\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. 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 arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/tokenizer/hf_impl.rs"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"34033b165589a884fae8758bf98effacade40a9ca6e7755e03c82aea9d21d32e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060hf_endpoint\u0060 turns every \u0060Err\u0060 into \u0060\u0022https://huggingface.co\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. 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 arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/hf_cache.rs"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a2baa2990696c2e9a1654bee87ece75884b80bdaa95e8c8f3775f2a9e68b75"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseRecent\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":"plugins/headroom-snip/hooks/snip.ts"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"88386e2a04bda99620a33aa5b5dc82b80a53c1b895f21b09d59de3f982973494"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060token.starts_with(\u0022sk-ant-api\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060token.starts_with(\u0022sk-ant-api\u0022)\u0060 also satisfies \u0060token.starts_with(\u0022sk-\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"crates/headroom-core/src/auth_mode.rs"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"41adaf7713506c7e1104c3659f3eb24a5d5307a64af5d804fab645c21a14aeb5"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-276","guid":"4e27da05-61af-1d5c-aeb5-9f56b6ede3e3","name":"Incorrect Default Permissions","shortDescription":{"text":"Incorrect Default Permissions"},"helpUri":"https://cwe.mitre.org/data/definitions/276.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.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-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-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.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-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-611","guid":"1afbae66-ea29-2d59-aaa2-134e3ae2e85a","name":"Improper Restriction of XML External Entity Reference","shortDescription":{"text":"Improper Restriction of XML External Entity Reference"},"helpUri":"https://cwe.mitre.org/data/definitions/611.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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"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-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"}]}],"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":178,"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."]}]}