{"$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":"D38","name":"OSV Dependency Vulnerabilities","shortDescription":{"text":"OSV Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D38","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"UseCaseInputsAreLocalCommandsOrQueriesRule.check (cyclomatic 23): UseCaseInputsAreLocalCommandsOrQueriesRule.check has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a62924cb0a5e38b40412e964a5fe93085d697f7e1677f8708f539427d569eed"}},{"ruleId":"D1","level":"warning","message":{"text":"UseCasesInjectUnitOfWorkManagersRule.check (cyclomatic 23): UseCasesInjectUnitOfWorkManagersRule.check has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f1bc318abd05d7e5de5f1b36e6d677dc39e3ebd0a88868a04c7ceac5546270e"}},{"ruleId":"D1","level":"warning","message":{"text":"UseCasesDoNotImportOrReturnEntitiesRule.check (cyclomatic 22): UseCasesDoNotImportOrReturnEntitiesRule.check has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c4ef94078e958704ca0e525df627e2e8b7e2ee38ed4d9076e035df227a1656"}},{"ruleId":"D1","level":"warning","message":{"text":"TestsMirrorSourceStructureRule._test_support_structure_violations (cyclomatic 22): TestsMirrorSourceStructureRule._test_support_structure_violations has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddff3c1ad17ebee8bfb28e7f67f9e0e1541f257712272e23683638719b31ea7"}},{"ruleId":"D1","level":"warning","message":{"text":"EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check (cyclomatic 16): EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check 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/specx/testing/architecture/rules.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf2c404e3efd4244268809fce0fd23ecebeda41c771c970a994cf439aa394a6"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesInjectUnitOfWorkManagersRule.check (cognitive 63): UseCasesInjectUnitOfWorkManagersRule.check has cognitive complexity 63 (threshold 15). Drivers by points: if/else 45, loops 9, boolean chains 5, ternaries 4 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into 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/specx/testing/architecture/rules.py"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5352ccc24544be6c0d4fc7fcd70fe8b71b7b97c7de912ff2179fcc34f6215d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesDoNotImportOrReturnEntitiesRule.check (cognitive 51): UseCasesDoNotImportOrReturnEntitiesRule.check has cognitive complexity 51 (threshold 15). Drivers by points: if/else 33, loops 12, boolean chains 6 (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa3786603760ea43c0a1b5df6ac941c3b9ca8c50bfb587273ad00b9d6b74c76"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCaseInputsAreLocalCommandsOrQueriesRule.check (cognitive 46): UseCaseInputsAreLocalCommandsOrQueriesRule.check has cognitive complexity 46 (threshold 15). Drivers by points: if/else 32, boolean chains 7, loops 7 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"799ab99eaae13a37f30a2095bf68f862c7be8f72620638efab4daa874918df3f"}},{"ruleId":"D2","level":"warning","message":{"text":"TestsMirrorSourceStructureRule._test_support_structure_violations (cognitive 46): TestsMirrorSourceStructureRule._test_support_structure_violations has cognitive complexity 46 (threshold 15). Drivers by points: if/else 36, loops 8, boolean chains 2 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e48f76afec276cbab2f896ba8299fbadacfdafc3e07aa606d4c0ea392072e31"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check (cognitive 41): EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27, loops 12, boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a86aee943ddfe666aae685939f51bb6b6f80632c51f123e5e666320bd75eff"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadServicesDoNotPerformWritesOrOwnTransactionsRule.check (cognitive 40): ReadServicesDoNotPerformWritesOrOwnTransactionsRule.check has cognitive complexity 40 (threshold 15). Drivers by points: if/else 23, loops 10, ternaries 5, boolean chains 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fefbbdd3c9d4f131787dad537d3fd7a9f692e76dd41b9b94354b819eef2adc"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesDoNotOwnWorkflowsOrOtherPortRolesRule.check (cognitive 38): CapabilitiesDoNotOwnWorkflowsOrOtherPortRolesRule.check has cognitive complexity 38 (threshold 15). Drivers by points: if/else 28, loops 9, boolean chains 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6efd122b1453a157692c1ed264d98d2c265ceb91f7dcb58b051499a6bcc48bf"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesDoNotInjectRepositoriesOrInfrastructureRule.check (cognitive 35): UseCasesDoNotInjectRepositoriesOrInfrastructureRule.check has cognitive complexity 35 (threshold 15). Drivers by points: if/else 25, loops 8, boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaea9d069178694339801b4392be3b65a0cb702160c26ef2ffdd67f9a4407016"}},{"ruleId":"D2","level":"warning","message":{"text":"LoggingDoesNotInjectLoggersRule.check (cognitive 33): LoggingDoesNotInjectLoggersRule.check has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23, loops 8, boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b50357959c4c1f21e1ba8480134e215c879861cd04a78e31016d72bf77872d"}},{"ruleId":"D2","level":"warning","message":{"text":"PublicRoutesUseFullAPIV1PathsRule.check (cognitive 29): PublicRoutesUseFullAPIV1PathsRule.check has cognitive complexity 29 (threshold 15). Drivers by points: if/else 23, boolean chains 3, loops 3 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55e4d726e7528393804be987ca3a1dfc6f1225d66acd57e399cf61296960ee0"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLiveInExpectedPackagesAndUseExpectedSuffixesRule.check (cognitive 26): CapabilitiesLiveInExpectedPackagesAndUseExpectedSuffixesRule.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, ternaries 4, loops 3, boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef216bb76534ed0b601fd87af8593a493fad45f9d4cf7895da27faa1cd67adc"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewaysDeclareExternalEffectsAndDoNotReturnEntitiesRule.check (cognitive 23): GatewaysDeclareExternalEffectsAndDoNotReturnEntitiesRule.check has cognitive complexity 23 (threshold 15). Drivers by points: if/else 17, loops 6 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bca919513aea250e1cb82a06a24d3a226de580f3333b1bc8fa0fd0af1bea82"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryUseCasesDoNotCallRepositoryMutatorsRule.check (cognitive 23): QueryUseCasesDoNotCallRepositoryMutatorsRule.check has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, boolean chains 4, loops 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"037935c9b6134c7c6f9fc11bb2379349d61399fe8f86d830ed3cb155f80a2260"}},{"ruleId":"D2","level":"warning","message":{"text":"TestsMirrorSourceStructureRule._unmapped_test_violations (cognitive 23): TestsMirrorSourceStructureRule._unmapped_test_violations has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19, loops 3, boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"816ab6b050bb134d223ee8be8571b8574c6481a38c63b2d0b6336b2787d58abb"}},{"ruleId":"D2","level":"warning","message":{"text":"ServicesDoNotOpenUnitOfWorkScopesRule.check (cognitive 22): ServicesDoNotOpenUnitOfWorkScopesRule.check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, loops 6, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ab55f5cd057c545bd628b63583c903a489bf54ae02f2fa8992cf325495b83a"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreInnerPackagesDoNotImportOuterLayersOrIOLibrariesRule.check (cognitive 20): CoreInnerPackagesDoNotImportOuterLayersOrIOLibrariesRule.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 4, loops 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d71f7a8fb0ae9b43bc6a5c40a9687e2bfb9ce33553aed0df26ab8df0be111d8"}},{"ruleId":"D2","level":"warning","message":{"text":"PureServicesDoNotDependOnIOOrRuntimeStateRule.check (cognitive 20): PureServicesDoNotDependOnIOOrRuntimeStateRule.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11, loops 8, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"702c6d9e552457ac5334ca9c2c953d94409bc8a3a94b40d2663bcd55bb5b00c0"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayPortsAndImplementationsLiveInExpectedPackagesRule.check (cognitive 19): GatewayPortsAndImplementationsLiveInExpectedPackagesRule.check has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b38b2a68dce179ef31776f9041facde008d2e69249f3800e97f5369d3181720"}},{"ruleId":"D2","level":"warning","message":{"text":"rules._class_injects_diwire_container (cognitive 18): rules._class_injects_diwire_container has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, loops 4, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b8b0908d32739dc3b2149df17343414d7beac2b04eac0320ad279e02b33af6"}},{"ruleId":"D2","level":"warning","message":{"text":"DeliveryControllersDoNotImportInfrastructureRule.check (cognitive 17): DeliveryControllersDoNotImportInfrastructureRule.check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, loops 6, 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/specx/testing/architecture/rules.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"47e4733487977f63e7eddc9cf2406c7cfd52e2927dded5aa502200f09268d6db"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassesUseSuffixFromMostSpecificFoundationCategoryRule.check (cognitive 17): ClassesUseSuffixFromMostSpecificFoundationCategoryRule.check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bbff9c767adbb952c0cbd47955262013ea8c11a9bb9a74f64797d364b423ed"}},{"ruleId":"D2","level":"warning","message":{"text":"context.active_repository_names (cognitive 16): context.active_repository_names has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 4, loops 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88b790a5e93236a10e47f23c4d749d12976052182ba46ad329754573813cc7f"}},{"ruleId":"D2","level":"warning","message":{"text":"IOCContainerDoesNotRegisterActiveUnitOfWorkRule.check (cognitive 16): IOCContainerDoesNotRegisterActiveUnitOfWorkRule.check has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":2074}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ec4873f2a8e965a346c15e2565912bdbc1c3833ac5f43f538d2e407d2232cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: architecture/rules.py: FileTooLong \u2014 2222 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cc90afb6e24c8596550a1d275093219075655cac6a5a2d755b43d3ac9fffaa1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: architecture/context.py: FileTooLong \u2014 614 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bd4ac8d7f3b659d3a2803dd68742bc5327c254c6038838bdfbe889a851fda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): .agents/skills/specx-tests/references/render_architecture_guardrails.py:34-52 | skills/specx-tests/references/render_architecture_guardrails.py:34-52 \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":".agents/skills/specx-tests/references/render_architecture_guardrails.py"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baa2a4177eb6905790a54c87a70c957547c989e8e591dc5b933ace19a20fead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): src/specx/testing/architecture/rules.py:1548-1566 | src/specx/testing/architecture/rules.py:1567-1585 \u2014 both copies are in the same file, so extract the block 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/specx/testing/architecture/rules.py:1548\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":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1548}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd783a9e4fb994c8417925193249fd82cca76057152f7acda389ce5a3a4bff47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specx/testing/architecture/rules.py:1041-1055 | src/specx/testing/architecture/rules.py:1122-1136 \u2014 both copies are in the same file, so extract the block 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/specx/testing/architecture/rules.py"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde5b747f62d4950aa92d22dbe782c94b0b49994974389be8ef37697ff363383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/specx/testing/architecture/rules.py:1722-1736 | src/specx/testing/architecture/rules.py:1740-1754 \u2014 both copies are in the same file, so extract the block 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/specx/testing/architecture/rules.py:1722\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b09b682b4e831e8dee84af158fe03abd0da671fdf9d877e59d19c1abd4ab821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): src/specx/testing/architecture/rules.py:652-663 | src/specx/testing/architecture/rules.py:1046-1057 | src/specx/testing/architecture/rules.py:1127-1138 \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. 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/specx/testing/architecture/rules.py"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ac02e911a4fb9e19edd418d674e97b3a10b58c6802586970a5b16a357415a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/specx/testing/architecture/rules.py:986-997 | src/specx/testing/architecture/rules.py:1107-1118 \u2014 both copies are in the same file, so extract the block 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/specx/testing/architecture/rules.py:986\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb3416562fc7cb65184c0fce5ba1691e9f7cd9f625b4e5d420dc6d3ccfdeacf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): .agents/skills/specx-tests/references/render_architecture_guardrails.py:63-72 | skills/specx-tests/references/render_architecture_guardrails.py:63-72 \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 \u0060.agents/skills/specx-tests/references/render_architecture_guardrails.py:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".agents/skills/specx-tests/references/render_architecture_guardrails.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c784b2315a42f9eae45c0fc0a942113a94603c4ccfaa34c3d65e346978e6afed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): src/specx/testing/architecture/rules.py:245-251 | src/specx/testing/architecture/rules.py:400-406 | src/specx/testing/architecture/rules.py:775-781 | src/specx/testing/architecture/rules.py:1933-1939 | src/specx/testing/architecture/rules.py:2004-2011 \u2014 all 5 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":"src/specx/testing/architecture/rules.py"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff6fa3119732f5356284b7d437fca349184e54c8a95e5852db6e62b3e3210af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): src/specx/testing/architecture/rules.py:337-343 | src/specx/testing/architecture/rules.py:1863-1869 | src/specx/testing/architecture/rules.py:1899-1905 \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. 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/specx/testing/architecture/rules.py"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee1652412a6636b85b6fe42797fd1687f997bde09f16ae54de63f01328f8db4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/specx/testing/architecture/rules.py:2361-2367 | src/specx/testing/architecture/rules.py:2378-2384 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c82d5c9c6e92b8915c763729928f7ec1b75e8b88fbf9eb073b062a91f6edf14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/specx/testing/architecture/rules.py:1864-1869 | src/specx/testing/architecture/rules.py:1935-1940 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee028aa9cbbc2c7223fe8ef562955c576924d584e7351e6eb5117b5814aad6e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specx/testing/architecture/rules.py: src/specx/testing/architecture/rules.py changed 7 times in last 90 days, max complexity 23. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"431132ed4d56820dd2ae1aac9e0949158b231ae24b28768e9a75ac2a49b46a86"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}