{"$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":"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":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"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":"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":"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"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":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"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":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"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":"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":"ponytail-mode-tracker.finish (cyclomatic 66): ponytail-mode-tracker.finish 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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0ef1c9662382bf0e4c77d174defc46786cf45ab25576a11b345e279a357932"}},{"ruleId":"D1","level":"warning","message":{"text":"register.register (cyclomatic 63): register.register has cyclomatic complexity 63 (threshold 15). Most of this is not in the body itself: 1 of the 63 points is its own statement and the rest belongs to 13 function literals inside it that branch (lines 354, 254, 292, \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":"hooks/band/register.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"020364b89eb272684690b3267a2fae2543b229d8fff6c1c2821019738d2b9871"}},{"ruleId":"D1","level":"warning","message":{"text":"ponytail-band-import.sessionStats (cyclomatic 50): ponytail-band-import.sessionStats has cyclomatic complexity 50 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 17 belong to 9 function items 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":"hooks/ponytail-band-import.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d708c73cde184c908c52fed82a11cee1ace4e87bc610a3a0be1ef33100398c43"}},{"ruleId":"D1","level":"warning","message":{"text":"ponytail-activate.activate (cyclomatic 42): ponytail-activate.activate 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":"hooks/ponytail-activate.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7853d94e0c5303139f4b04043f04bf835cf116fb2302bb7353baeeada9c8c961"}},{"ruleId":"D1","level":"warning","message":{"text":"index.ponytailExtension (cyclomatic 35): index.ponytailExtension has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 2 of the 35 points are its own statements and the rest belongs to 8 function items inside it that branch (syncStatus, a function literal at line 230, a function literal at line 130, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pi-extension/index.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fa979be912e28246021abd94e5ffa92e883f94e21275b70881fbfacee69ee4"}},{"ruleId":"D1","level":"warning","message":{"text":"ponytail-band-import.run (cyclomatic 23): ponytail-band-import.run has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. 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":"hooks/ponytail-band-import.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e915974e8a4d1f7f5dd0ef135c4aa49ff1421796348ed64283d95a963666a61"}},{"ruleId":"D1","level":"warning","message":{"text":"ponytail-band-import.replyCost (cyclomatic 17): ponytail-band-import.replyCost 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":"hooks/ponytail-band-import.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3293bae099b538c08f9035377a319f2f0c59b8c33c0b8807e06444f990b5a3b"}},{"ruleId":"D1","level":"warning","message":{"text":"ponytail-map.buildMap (cyclomatic 17): ponytail-map.buildMap has cyclomatic complexity 17 (threshold 15). Of this number, 12 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":"hooks/ponytail-map.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"119cd8eecd6a1f82c9d833263612518e137396fa2430b71fcd346b5263baaf50"}},{"ruleId":"D2","level":"warning","message":{"text":"finish (cognitive 131): finish has cognitive complexity 131 (threshold 15). Drivers by points: if/else 35 (74 pts), ternaries 7 (27 pts), boolean chains 16, error handling 4 (14 pts) (nesting depth added 69). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca5a296045f06caaf4f9ab9b14e8a6fc7e062201e2067b89e99e33a02430e66"}},{"ruleId":"D2","level":"warning","message":{"text":"register.register (cognitive 79): register.register has cognitive complexity 79 (threshold 15). Drivers by points: ternaries 30 (44 pts), if/else 18 (22 pts), boolean chains 12, loops 1 (nesting depth added 18). None of this is in the body itself: all 79 points belong to 13 function literals inside it that branch (lines 354, 254, 292, \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":"hooks/band/register.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"934085fd581de67fac7f9dbd51d19906d1465d620374fd10fc06154f00bc9b9b"}},{"ruleId":"D2","level":"warning","message":{"text":"ponytail-activate.activate (cognitive 64): ponytail-activate.activate has cognitive complexity 64 (threshold 15). Drivers by points: if/else 13 (22 pts), error handling 8 (17 pts), ternaries 6 (14 pts), boolean chains 11 (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":"hooks/ponytail-activate.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3a3a7f3442c9ed4909af080bcaab818b9f76050cb1c1cbd4507806db2d4e86"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionStats (cognitive 51): sessionStats has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 18, if/else 9 (16 pts), ternaries 7 (11 pts), loops 5 (6 pts) (nesting depth added 12). Of this number, 37 points are the body\u0027s own statements and 14 belong to 13 function items 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":"hooks/ponytail-band-import.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5e322ff975b0cd7f80200ba76c5bd43eaa32ebd401a284ea199c60e37cf85f"}},{"ruleId":"D2","level":"warning","message":{"text":"ponytail-band-import.run (cognitive 42): ponytail-band-import.run has cognitive complexity 42 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 7 (16 pts), loops 4 (5 pts), boolean chains 4 (nesting depth added 21). Of this number, 41 points are the body\u0027s own statements and 1 belongs to one function literal 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":"hooks/ponytail-band-import.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5adb55c14193a8e028fa612737bf8cceaa06b9be6ccf94544c6e26462f0fc7"}},{"ruleId":"D2","level":"warning","message":{"text":"index.ponytailExtension (cognitive 38): index.ponytailExtension has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 8, ternaries 4 (6 pts), error handling 2 (3 pts), loops 1 (nesting depth added 5). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 130, syncStatus, a function literal at line 230, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pi-extension/index.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffaa30aa94e3320176b8330a1f764b9d98b1173588a4dfa8d21ac133994b7030"}},{"ruleId":"D2","level":"warning","message":{"text":"board.parseCsv (cognitive 22): board.parseCsv has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 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":"hooks/band/board.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa37af6bff0a06c2de1717c8bb17f6de697970859a79fae0fe1f6d5a068f986a"}},{"ruleId":"D2","level":"warning","message":{"text":"buildMap (cognitive 21): buildMap has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 4 (7 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 4 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":"hooks/ponytail-map.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8f07b18ea8d820e305eb2de1c698a4eda970ca8fe59c6b1372585e776f0e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"ponytail-runtime.writeHookOutput (cognitive 17): ponytail-runtime.writeHookOutput has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 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":"hooks/ponytail-runtime.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"6100651ce3186dacd3d889405bd463e405b2a1d815e3ea0f0f723631f5572b85"}},{"ruleId":"D2","level":"warning","message":{"text":"ponytail-band-import.replyCost (cognitive 16): ponytail-band-import.replyCost has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 2, ternaries 2. 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":"hooks/ponytail-band-import.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c8f965f76b962530fea505e4a71ed14979c10b4490e949ba5a1b391d522a88"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: register.register: FunctionTooLong \u2014 register runs 208 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 108 over it, 2.08\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":"hooks/band/register.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6508d0cbfc6dffd65dfe714d4b08756ef67f35beb631479e38a2708076f8ed7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.ponytailExtension: FunctionTooLong \u2014 ponytailExtension runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\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":"pi-extension/index.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2abb928c24360236e162270d898b560e399b28b66dfc7aa1c265af4232eb1661"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hooks/ponytail-mode-tracker.js: hooks/ponytail-mode-tracker.js changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in ponytail-mode-tracker.finish at line 27. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- hooks/ponytail-mode-tracker.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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a481841fcb9e86085a9cb948da5844b8e80f6ad2170f5793edb1322fcf4953"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hooks/band/register.tsx: hooks/band/register.tsx changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 63 in register.register at line 216. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- hooks/band/register.tsx\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":"hooks/band/register.tsx"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"573a84aa1d192548b4b8b4b5d8f1c4a103ca87b57636537cacd2f6cf5201411d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hooks/ponytail-activate.js: hooks/ponytail-activate.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ponytail-activate.activate at line 31. 6 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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- hooks/ponytail-activate.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":"hooks/ponytail-activate.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3bafea37889a9815600d671a37a894d23e7b0935036ad2af8f47a9208647cb8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: pi-extension/index.js: pi-extension/index.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in index.ponytailExtension at line 73. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- pi-extension/index.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":"pi-extension/index.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"447796908cc7431ed04541e7988ca61f1641b4bae2b1ea09fb35a3545cfe8a1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: benchmarks/agentic/run.py: benchmarks/agentic/run.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in run.aggregate at line 394. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- benchmarks/agentic/run.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":"benchmarks/agentic/run.py"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e539bf461fe69e1a2ffc8b8185d202c6d964130f6801cccf7f1bcdfb1c53b8c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: benchmarks/agentic/tasks.py: benchmarks/agentic/tasks.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in tasks.score_todo at line 523. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- benchmarks/agentic/tasks.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":"benchmarks/agentic/tasks.py"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f969f6ed11d5e3f34fad1f617767616f306d69f7e9e7feb5a7fd42e4fdff72"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: hooks/ponytail-runtime.js: hooks/ponytail-runtime.js changed 10 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 ponytail-runtime.writeHookOutput at line 110), 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(qoder): honor custom config dir for mode state (#1057)\u201D; \u201Cfix(hooks): write hook output synchronously so process.exit cannot drop it (#1112)\u201D; \u201Cfix(hooks): prevent project mode state collisions (#1037)\u201D; \u201Cfix: emit hookSpecificOutput JSON on ZCode so rules reach the model (#798) (#799)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- hooks/ponytail-runtime.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":"hooks/ponytail-runtime.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"c120e56137decf4d2dca7e53308c169c2ca9352693167f39b051d2689f7451e9"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: scripts/uninstall.js: scripts/uninstall.js changed 9 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 3 (its worst body is uninstall.removeIfExists at line 17), 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(uninstall): remove the OpenCode mode flag (#1104)\u201D; \u201Cfix(qoder): honor custom config dir for mode state (#1057)\u201D; \u201Cfix(statusline): point the badge at a copy that survives plugin updates (#1033)\u201D; \u201Cfix(uninstall): remove Qoder\u0027s mode flag (#788)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- scripts/uninstall.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":"scripts/uninstall.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f3f3ad7a63243d15bfa459cb412789e65bceee2e1d3ac91d9e13b676bda3ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: __init__.py: __init__.py changed 9 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 python._pre_llm_call 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(hermes): send the off notice after /ponytail off (#1122)\u201D; \u201Cfix(hermes): honor default-mode config with a UTF-8 BOM (#873)\u201D; \u201Cfix(hermes): reject review as a default mode (#700)\u201D; \u201Cfix(hermes): inject the ruleset once instead of on every turn (#787)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- __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":"__init__.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b09bc3de90416777c3261d82593508c25c616d849c3770c960abefe0c3dd3fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: .opencode/plugins/ponytail.mjs: .opencode/plugins/ponytail.mjs changed 7 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 persistMode at line 55), 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): never save review as a level, support /ponytail default (#1103)\u201D; \u201Cfix(opencode): drop stale V2 command mention offsets (#1097)\u201D; \u201Cfix(opencode): keep command arguments when the template has no $ARGUMENTS (#1087) (#1090)\u201D; \u201Cfix(opencode): register the ruleset on the compaction hook (#1086) (#1089)\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-07-31..2026-10-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-31 12:59:31 \u002B01:00\u0027 --until=\u00272026-10-29 12:59:31 \u002B01:00\u0027 --full-history --no-merges -- .opencode/plugins/ponytail.mjs\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":".opencode/plugins/ponytail.mjs"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c33bb26a50988a1876233f73d0989bae95981b82cc59cea6d4181772c41668b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: # todo-null -- in-memory Todo REST API. The trust-boundary trap is a POST body of literal \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":"benchmarks/agentic/tasks.py"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9bb79629982f1473c87618362f73282f701a7dfb0199bb6638681634d9925b2"}},{"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":"ab8ce016c05617d2bea946f803bbeb3700de85a9611a8808cd4bc113313a14a3"},"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":"2e627f1ab473aea6ea43cded36c5af17028aee4faf23cabd2fb33809ad3eecba"},"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":"ebdcba7db7b1eb58cc389dfea3a6684e48f3220a9b4a9ca54823e830185c2d0e"},"taxa":[{"id":"CWE-125","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":"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":"16299fbcc86f117b238ba058e77c60be98e5a9437227264975acde5c3c30f42e"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Most of the production code is in directories of its own, but 1 application file(s) sit at the repository root beside the build and tooling files (\u0060__init__.py\u0060)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/test.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 5 typed \u00B7 38 plain JS \u2014 the untyped files are hooks/ponytail-activate.js, hooks/ponytail-band-import.js, hooks/ponytail-config.js, hooks/ponytail-instructions.js, hooks/ponytail-map.js, hooks/ponytail-mode-tracker.js (\u002B32 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): hooks/ponytail-config.js:110 \u00B7 hooks/ponytail-config.js:127 \u2014 both copies are in the same file, so extract the block 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":"hooks/ponytail-config.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b2f4ad5cdee29a7057d4b0fbb423703a918e58c696c90a1e36e023599cd10a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): hooks/ponytail-activate.js:193 \u00B7 hooks/ponytail-subagent.js:82 \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":"hooks/ponytail-activate.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9ff98ece010624936a227c1336a1c0beeedea87b6b4775ed0cb9381418ccfd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finish (cyclomatic 66, cognitive 131): finish has cyclomatic complexity 66 and cognitive complexity 131; 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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b1272747abc7b96cc4d9609c8e4f58e2ce59020e7c608741ec5094dfa26bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function activate (cyclomatic 42, cognitive 62): activate has cyclomatic complexity 42 and cognitive complexity 62; 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":"hooks/ponytail-activate.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2b233e1fe00d08a97e7b50d8b4c018585890ce81c2c1187780b94573c1d7d00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 33, cognitive 37): (anonymous) has cyclomatic complexity 33 and cognitive complexity 37; 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":"hooks/band/register.tsx"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39dcb02543364705830070d6f3934b443d4c899a46ebc9a264d0d48c99d36e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionStats (cyclomatic 32, cognitive 37): sessionStats has cyclomatic complexity 32 and cognitive complexity 37; 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":"hooks/ponytail-band-import.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c3adf47d9e7d3b31f9c9746e372bfa26c69daade70dad74f7e8792a29842393"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 21, cognitive 41): run has cyclomatic complexity 21 and cognitive complexity 41; 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":"hooks/ponytail-band-import.js"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d555b61f600bcd45d7d99989195da727eeac4e79a473abe99a934d3624dcf78"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 21): (anonymous) has cyclomatic complexity 18 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 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":"hooks/band/register.tsx"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1c827dda1e3866f708dbf2f472d448d087416c6ad567832d8ff833f26a09a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replyCost (cyclomatic 17, cognitive 16): replyCost 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":"hooks/ponytail-band-import.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"268ed60749f3da7b8c95fe386f0557e760daefa563b69afc8a3c58480aab19e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseCsv (cyclomatic 14, cognitive 22): parseCsv has cyclomatic complexity 14 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":"hooks/band/board.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bd5705f511c26849d5dbebbafdb876bd9921e17810f98b81fcdfe62b62c6ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeHookOutput (cyclomatic 13, cognitive 17): writeHookOutput has cyclomatic complexity 13 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":"hooks/ponytail-runtime.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"87aaa0979523011b5d60853a62abc85d31b5ba237fcf18847ba0a628a946f215"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildMap (cyclomatic 12, cognitive 17): buildMap 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":"hooks/ponytail-map.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a97fea602b79952f8e87e3922be657eb0b54182ec3edd04aa7473fcdae13ced"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) 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":"hooks/band/register.tsx"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"62712ae8ac33494c693542d2f2d79694d4f5c82a5db830178f0756276ac9e1c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readConfig (cyclomatic 12, cognitive 13): readConfig has cyclomatic complexity 12 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":"scripts/cursor-hooks.js"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb88f0f74971c65a72dc5fc358d61f1cdf4620b40b60305cd663421aa303bba7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parsePonytailCommand (cyclomatic 11, cognitive 13): parsePonytailCommand has cyclomatic complexity 11 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":"pi-extension/index.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d8aa310773c892ded892dd6fe366c7a042865f1ac8bc2133009a166fc82b7f"}},{"ruleId":"R3","level":"warning","message":{"text":"hooks/band/board.ts: 527 lines of code: hooks/band/board.ts has 527 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":"hooks/band/board.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8cf1342bfbb648187396a85bcbb792d6fc5d436e2ccdb9a22c195b4668a1165"}},{"ruleId":"R3","level":"warning","message":{"text":"hooks/band/register.tsx: 453 lines of code: hooks/band/register.tsx has 453 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":"hooks/band/register.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d7c37423a3d4fb21b53fa7859d954cec0f6893b9ef339d642c9d1269feb8e9"}},{"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":"hooks/band/register.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28f10fabc4e1e4a25e99f93479f928dc6cfab2963516d7eadf8e3a40c8c2681"}},{"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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7f639ba0cc1a18e1f7ecf880a896d2c906ca97472d46b5980278c691440052"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4de635c0ae5664d988424d2aa210a096f766afcf090d18903629e6ea89325c"}},{"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":"hooks/ponytail-subagent.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5470feff945243da8e60fc91310a236f57b04f3ccad0e867bc162c51a1bda68"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint or typecheck script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"658a995477a4f3b704a1d0c61d78cffb4c5cc1944c2f896c1bb70ee901a201cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~495 LoC): no import path from any entry point (12 application, 33 tooling, 24 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":"hooks/band/register.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d98604b24614ffcecd4f9f939fd92701bd961cc8028440245ce8f4082ca294f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~8 LoC): no import path from any entry point (12 application, 33 tooling, 24 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":"benchmarks/arms/caveman.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2dab760a6f9a472b74afeefa1848e1699dedeeefd16fe669ca80ddf0fb1cef"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~8 LoC): no import path from any entry point (12 application, 33 tooling, 24 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":"benchmarks/arms/ponytail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec15b4189546983607ccd456478dfc2340a153e58c3e4d6a8aa1d50480a14f4d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (12 application, 33 tooling, 24 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":"benchmarks/arms/baseline.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d96f9d42223d19d5368ff02a9f058e5b8c7145cc700265110373f4cb33ca392f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!config || typeof config !== \u0027object\u0027 || Array.isArray(config)\u0060 appears character-identically in 2 files \u2014 hooks/ponytail-config.js, scripts/cursor-hooks.js. 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":"hooks/ponytail-config.js"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff217f828fa344c13445fab2d401190d835056631f5f4e54f5744fc1983bffe6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.CODEBUDDY_CONFIG_DIR || path.join(os.homedir(), \u0027.codebuddy\u0027)\u0060 appears character-identically in 2 files \u2014 hooks/ponytail-runtime.js, scripts/uninstall.js. 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":"hooks/ponytail-runtime.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd215a3af71235948b2c9b94c8251a82a4fb731c7827c295039aaeff662a07b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.XDG_CONFIG_HOME || path.join(os.homedir(), \u0027.config\u0027)\u0060 appears character-identically in 3 files \u2014 .opencode/plugins/ponytail.mjs, hooks/ponytail-band-import.js, scripts/uninstall.js. 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":".opencode/plugins/ponytail.mjs"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"939208704b0f7d6bee54294c841944e560a752565bbbf64386faadf88d5c9f47"}},{"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":"__init__.py"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb5045d52749c2ba5af4b0f663f38cfb668e2dd451e8a10b90d575112407dfa"}},{"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":"__init__.py"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"71815daff574e62bdde47b70dde302ff9f5383086734d32a26040b859284f0c4"}},{"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":"__init__.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a79d463d4c9a319f1b6b6c6a24a8a45b51d58725c5cd84091fbe4123d8d62377"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pi-extension/index.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62b65c774686836c50282efb76bf2365115bb92c134181fcec5e810db11e30a"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b53f652f282758d259486f13315c9c1fdd568bc98b264c55d91a662def4cf6b"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34eb16cb11a3464fb633f663c0f482d534ec4769640dc8a6d61da7353d57ac6"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"10dbdd06a1311496382218cca1bc6bc45228b36de44e9ed895ce5248022e69f5"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9827396f84d67e814b42719f04f19c31cd565de86640c4db8b628a20d97989fa"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cc5c3c1e97e410faf546d9296d7e7e1c0484632fe315c5c59f8aede245763e"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e491a606a3c841e971ec8eb6a2d00950aefb8e4a5414b0d7d1df9844acf0d1e4"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"89afec5f3fcfaa8faf497a9f8f5f637d05caddd2e37ed6c933803798d04b936a"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83547d76ccb9227c3edec412750fd40b8843afa22b62838f70a5539f337f8ee"}},{"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":"hooks/ponytail-activate.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd52f66ec7016affbce8bf04dbe6197e0a7c2d44daf01d5c659d113807810ba7"}},{"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":"hooks/ponytail-band-import.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea3fcc5d7f89202257dde538ae2c8149cc6bb3d4333e8eda63fb4c42d8267da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-band-import.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9f3e1b93d3ccafe345883ef1200c1bc79a80cc137817b33fe0e054bf3146b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-band-import.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9878422d8703a309fe75318e98eeb6a407a99e2c91951dea84edb1cc1a91bcd2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-band-import.js"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"15b3ae1703b04edf24c58947103b12bf18b4afbac916cc587b7d1e14ecfb9455"}},{"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":"hooks/ponytail-band-import.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"e95fe4783c33e32905a945f8276ba1651f376864a9ccc9c3ccb7d2a598b43ed0"}},{"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":"hooks/ponytail-band-import.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"25aacfd2acb46999eeb6499af704887ee137db5ae33c44ece4aca9ab6487f452"}},{"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":"hooks/ponytail-band-import.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f58821fff2dccf1b2e748ee2367919294f64bb354f26302439f22797026991a"}},{"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":"hooks/ponytail-config.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"45daf3366368b57d3d83992649920cae1dd434a389586d0d3ba25703b397d660"}},{"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":"hooks/ponytail-config.js"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"03769e9369a75bd22cc2afb7271941f0fa3fcf0ad7b6824c636441f033cf0c76"}},{"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":"hooks/ponytail-map.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc9ba2c49e087b464803fb45bb4da9b6fe9696018416a13c2f6c2d3730c8a68"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-map.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"401964b51607e18ca9aa1745a8e7e1d26aa0e7d51a085a594cf69db5abf66328"}},{"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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c0b81f5069baf2950c4651b9f891418fabb0574be30e9742012f3ddefe2c29"}},{"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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9bc6131a13e0d8f8454be097f5891d2b47f60e6c77d79c08a49a83f1f0a616"}},{"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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc0e6a8109724b929139bb8f9adc80a4a53019802c7e177a0b085b307b1d559"}},{"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":"hooks/ponytail-mode-tracker.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f9c1f4b3f1f3e8756814bfb6fcd5c818881d24f24d4ce73964054ae07d6809"}},{"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":"hooks/ponytail-runtime.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8b6264aab5719f69b48e42f42295b4d834a422192ecece49b7d4b381811bc2"}},{"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":"hooks/ponytail-subagent.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef027880d3ac1447b36eb16c7634c34b9625194719280718127c9fed6b5ed72"}},{"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":"hooks/ponytail-subagent.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff996810fa0a316ae45d155bbbdc9d8813ccaa3342ec4b012399f89fa353bdd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\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, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/band/metrics.ts"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"672edb95028a643b98e95d42bf661c93dc6c46ec1a0e9d96d88db7ea441fcd14"}},{"ruleId":"X5","level":"note","message":{"text":"Strict null checking is not enabled everywhere the repository type-checks: This repository commits no tsconfig, so whatever type-checks it uses tsc\u0027s own defaults, in which \u0060strict\u0060 and \u0060strictNullChecks\u0060 are OFF: \u0060string\u0060 admits \u0060null\u0060 and \u0060undefined\u0060, and a value that is null is compiled through to the property access that throws. If the build passes \u0060--strict\u0060 on a command line instead, put it in a committed tsconfig \u2014 this check reads configuration, and configuration is all it can read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8870f9ff7b17c2e14c5ba3bc13137b94673aad0b9498438c572dabb049852943"}},{"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 JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-band-import.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f60b3eacbb27869a0372d5cf92ec79e4cd325e69f344e0ca4005de7efb9b2d4"}},{"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 JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/ponytail-band-import.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"248fcb63ba89ee2b7ae54c8dbddaebb40d7e6401615c7c32c1ffdb9f13b9c8cb"}},{"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 JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hooks/band/metrics.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab2611da1a91c7b0d32566794ac9d17b0797abc23bf73eb741e74ddcc05051b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_count\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":"benchmarks/agentic/run.py"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdaf25e855abeaf604b26f5698ec70e131be92e7911eafddbae71c4a568495a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_claude_version\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":"benchmarks/agentic/run.py"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c73beddf553089321e3f979fd55bcd222a2a74958129efceded51ca2d14848"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_contained\u0060 returns \u0060False\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":"benchmarks/agentic/tasks.py"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e6c897b886c8393b9f4f8f8eb501cf6952c0d313c29b610dfc636874316037"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readLevel\u0060 swallows every exception into \u0060return \u0027off\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":"hooks/band/register.tsx"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45c294148f9ff5c51737560f66aed92907b5aa55026d45918e926e7ea54c615"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.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-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-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-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":"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":"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/"}]},{"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-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":6,"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."]}]}