{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SagaMermaid.class_diagram (cyclomatic 59): SagaMermaid.class_diagram has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c76241f4161c6c20faebc1c28367518643a5ab5404fa73d242cf6ceab6a0f4"}},{"ruleId":"D1","level":"warning","message":{"text":"CoRMermaid.class_diagram (cyclomatic 45): CoRMermaid.class_diagram has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/mermaid.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b7279ffca178fc560d42ea122e7ce92fc65366fdf5adec106f3d4f6f666953"}},{"ruleId":"D1","level":"warning","message":{"text":"SagaTransaction._execute (cyclomatic 28): SagaTransaction._execute has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/saga.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b6bfa5f03d9dd338fe187bae5aec7e700ed1130d45d5af0086916d90f906b6"}},{"ruleId":"D1","level":"warning","message":{"text":"SagaMermaid.sequence (cyclomatic 16): SagaMermaid.sequence has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed32611174d3297bab3d1def44822b5465fa25d6b2644885e3df2e0a560fa163"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaMermaid.class_diagram (cognitive 169): SagaMermaid.class_diagram has cognitive complexity 169 (threshold 15). Drivers by points: if/else 105, loops 39, ternaries 16, boolean chains 9 (nesting depth added 112). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6780be506791b7cd3357d40569a8426a64cc49c0d1418ef4fe1e8ba8cfc905"}},{"ruleId":"D2","level":"warning","message":{"text":"CoRMermaid.class_diagram (cognitive 101): CoRMermaid.class_diagram has cognitive complexity 101 (threshold 15). Drivers by points: if/else 41, loops 31, ternaries 24, boolean chains 5 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/mermaid.py"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6822ef784b83bcc60c516d0b827c18fb45d94e27b648a16c748d7427d25b7c7c"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaTransaction._execute (cognitive 57): SagaTransaction._execute has cognitive complexity 57 (threshold 15). Drivers by points: if/else 52, error handling 3, boolean chains 1, loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/saga.py"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c89bfa2c552b18fca9d1f32ba392c0d3aa4a410be8c701f98d6d9dd0954ce18"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaMermaid.sequence (cognitive 38): SagaMermaid.sequence has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23, ternaries 9, loops 6 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6546633738eb4ad759cae9ba3078f82e181a169fb0ff9a54000229a3baa6083"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingRequestDispatcher._dispatch_impl (cognitive 28): StreamingRequestDispatcher._dispatch_impl has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15, loops 7, boolean chains 2, error handling 2, ternaries 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/dispatcher/streaming.py"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c84f644ef71e317a6f28deb6d7c18f59796cb29134bc902a4c692eb422ffb2e"}},{"ruleId":"D2","level":"warning","message":{"text":"FallbackStepExecutor.execute_fallback_step (cognitive 21): FallbackStepExecutor.execute_fallback_step has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13, error handling 4, loops 3, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/execution.py"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a44dea6a91a93277c44da020b1dc696cfeebef0391461ff1edac36b8a6ecd4"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaContextTypeExtractor.extract_from_class (cognitive 18): SagaContextTypeExtractor.extract_from_class has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/validation.py"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"107c09c9cfc38250e0519aa9c8d8a3de4d2f2d69e3300bb998907d893f89198d"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaCompensator.compensate_steps (cognitive 17): SagaCompensator.compensate_steps has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, error handling 5, loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/compensation.py"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"edcbe5374b4a3dada53c379af32642583a60bfa3158aa402b25ca7bd387e52b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextTypeValidator.validate (cognitive 17): ContextTypeValidator.validate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/validation.py"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b31861282eb9fee50a755a9655296c9c2aedaa5e98072cb090424f3984670e9"}},{"ruleId":"D2","level":"warning","message":{"text":"SagaContextTypeExtractor.extract_from_step (cognitive 16): SagaContextTypeExtractor.extract_from_step has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/validation.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"72229509c6962f2c9289e701171dae23c78bc9521529097a77432bd46ee7044e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): examples/saga_recovery.py:534-557 | examples/saga_recovery.py:699-722 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"928d3fc0cc442ab1c3330d06db20b9582b24b6d0b5908e95d45333f809ef7b38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): src/cqrs/requests/bootstrap.py:198-220 | src/cqrs/requests/bootstrap.py:339-361 | src/cqrs/saga/bootstrap.py:220-248 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cqrs/requests/bootstrap.py:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/bootstrap.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20a27fbe1a19e6da59e39be59d845b6ed5bfd5633f90b67a8fa3056b14314ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): examples/cor_mermaid.py:269-290 | examples/saga_mermaid.py:368-389 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cor_mermaid.py"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a82be3d73f91a7077ea5113b3c096b8582f6149253cc6c31facac0019d98c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/saga.py:337-356 | examples/saga_recovery.py:345-364 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga.py:337\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"52f06d3efdbd4f40e843aca91c4796f699841cac5eefdf0b5f2d5d2e4582bc02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): examples/saga.py:492-514 | examples/saga.py:618-637 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga.py:492\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea34b3f731c62a1a7abe9c749e2dd89a462422fce80565f7e5f5735c713e95e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): src/cqrs/dispatcher/request.py:94-112 | src/cqrs/dispatcher/streaming.py:101-119 | src/cqrs/events/event_emitter.py:133-151 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cqrs/dispatcher/request.py:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/dispatcher/request.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e2abb5c9f1b24cb61e36a932b05f78fd4f535c6e28df276b7a1c1603c338ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): examples/saga.py:386-404 | examples/saga_recovery.py:394-412 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga.py:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b47a2b3959ca232f60c84b0b5bfed6f795b4e83298bf9465f725940bf13b81d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): examples/saga.py:432-448 | examples/saga_recovery.py:440-456 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga.py:432\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25a6a5df477d7fddbe923ee6442d6f56c46905d84121ac74f250fddf4c93084"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): examples/cor_mermaid.py:117-132 | examples/cor_mermaid.py:151-166 | examples/cor_mermaid.py:185-200 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cor_mermaid.py"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6ac913dfbc25ca55179baaee65bb0596bb3854b629cbfb9e4af35f49ef34a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): examples/cor_request_handler.py:110-125 | examples/cor_request_handler.py:143-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/cor_request_handler.py:110\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cor_request_handler.py"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3e7ff4302796c9e57116657993dae050107b0cbc448548df31e1792c9e7def"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): examples/saga_recovery.py:575-589 | examples/saga_recovery.py:759-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga_recovery.py:575\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e01e306299762602e1ce1eaef87cf175b1cc62b2e93c239802494a9ae9ddeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): examples/cor_mermaid.py:229-242 | examples/saga_mermaid.py:308-321 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/cor_mermaid.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"2323fd08801ca8f42d3ce6614306dd89a75b7fb47dfe1857d4c2f29156bf74f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): examples/saga_recovery.py:605-617 | examples/saga_recovery.py:787-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga_recovery.py:605\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"488d86cdccf5e7f212bfa89b74a916e90c319d99b97eb3aa93029844fd490658"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): src/cqrs/events/fallback.py:73-85 | src/cqrs/requests/fallback.py:73-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cqrs/events/fallback.py:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/events/fallback.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f6bbda209172be3ca23f0106ead1a78aad9a4609e8215460dda9d2a3197aaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): src/cqrs/saga/mermaid.py:230-240 | src/cqrs/saga/mermaid.py:252-262 | src/cqrs/saga/mermaid.py:292-303 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d0a107c84c8f528dfcbd1b37a350b338e062c44ccbeb63bad9d9956886e641"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): examples/saga.py:201-211 | examples/saga_recovery.py:209-219 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead45909e151f6b0ea6a441364e173de4ede087cc5db222f92c984a299a4636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/cqrs/requests/mermaid.py:163-173 | src/cqrs/saga/mermaid.py:305-315 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/mermaid.py"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0c5f777fd859b0da7c5869377c14092799d4c0253975ea2ca62821afe7642e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/cqrs/requests/mermaid.py:201-211 | src/cqrs/saga/mermaid.py:340-350 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/mermaid.py"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cffa452f89c3dfc692e65cda732af69ecd716039b9fff9d2dd22c638adfdb0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/cqrs/requests/mermaid.py:261-270 | src/cqrs/saga/mermaid.py:384-393 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/requests/mermaid.py"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78d14aeaa3ab44f0cc1125e6c77ec4504c3be9a6a078043f148721f929c83be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/cqrs/saga/mermaid.py:132-141 | src/cqrs/saga/mermaid.py:172-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2bc3cb319a0747bba9015d23ba266fc430a24995816bdb34ef3b3d0fd0aa783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/cqrs/saga/storage/sqlalchemy.py:198-207 | src/cqrs/saga/storage/sqlalchemy.py:445-455 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/storage/sqlalchemy.py"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e95b60696f571ef52dcc73f9b9dabbec93f0673507635bb54096a8f36ec549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): src/cqrs/saga/storage/sqlalchemy.py:340-349 | src/cqrs/saga/storage/sqlalchemy.py:573-582 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/cqrs/saga/storage/sqlalchemy.py:340\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/storage/sqlalchemy.py"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c428a2bbd3f03d9bbbb7ad2b54538ea589e1e7af9a54416fb6c77b85e11d8fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/cqrs/saga/mermaid.py:99-109 | src/cqrs/saga/mermaid.py:119-127 | src/cqrs/saga/mermaid.py:156-167 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/mermaid.py"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"763d66f88d18e56bd9f6581d0a439401e247f3dd24b4182500332dc7aac7621a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/saga.py:723-731 | examples/saga_recovery.py:860-870 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f36f5bac551aad049de788bd505f2e4e2bc6713ffe4307d0e08f966d0c213973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/saga_recovery.py:516-525 | examples/saga_recovery_scheduler.py:458-466 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bf84924ca39f53f9b4dcccf3d202553952188cae48e132f21534d70f714624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): examples/saga_recovery.py:687-695 | examples/saga_recovery.py:866-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"84413cc1e4a60704a5889dd2231d39b85ab2d3abe9aab42fd60c9107d39299d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): examples/saga.py:597-604 | examples/saga_recovery.py:679-688 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/saga.py:597\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga.py"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e785ad25c34f8bcc5142d8596d600e60ee7721ef83d18dd3301bf86c3edb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/cqrs/saga/storage/sqlalchemy.py:306-313 | src/cqrs/saga/storage/sqlalchemy.py:543-552 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/cqrs/saga/storage/sqlalchemy.py"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdafbda32f50d3543c750881de6a0f8b63eb531e680f4651a0dc0e7af3f94513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): examples/saga_recovery.py:215-223 | examples/saga_recovery_scheduler.py:198-204 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/saga_recovery.py"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0271b3f19f71d1dccb440c65c463f4591f74a200193ecba18be797a600b68b2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): examples/domain_event_handler.py:121-125 | examples/request_handler.py:122-126 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060examples/domain_event_handler.py:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"examples/domain_event_handler.py"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8bd29cb258fab06385e94a5c15523a3eccd4496947e1e625446e6f1e8fe6a6"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: src/cqrs/saga/execution.py, src/cqrs/saga/compensation.py. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b8adfef7935666d4b285637e7aedbe0b3bc2b513bfb7aaafb5ef7e2c4aef8d22"}},{"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":"16461bdd32a9c8d06f3ff713ea951e3343292019892c9e65be28db8b1b073b46"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"9055486dba2ac3a527ca64ed3b1a12e34c5eb2eeb81741cd85ca926f3bb98bb9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"cca34d59a42d9a258f620dbb769924d9cd464f477458789d5bfdbd84eb4d1f78"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"4caa91f2713f48fc287ba863707ccf37591eb578d5fa7accad330cb4e7cb3474"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"d17df1d8cc44bd2cc7a01b31a4bc20e5b98a262f25cc9c5a8231ffce8295bcdc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0752d0df7434000fcabf1048e2de30a7a1a8b982b3db9a19898c4dec199856b4"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"}}],"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-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-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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":11,"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."]}]}