{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"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":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"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":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"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":"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/uow_use_cases_inject_managers.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eed324f130215c686c7ca1d29bc6f783891d9e3b414538a67d1f5dc58b2fff"}},{"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/use_cases_inputs_are_local_commands_or_queries.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc796e26049195eea05e85dc7184776dc108fd9e0f47be00bd97e49777750e65"}},{"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/use_cases_no_entity_imports_or_returns.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"b489b675827de6333b46971ba3158142d60b471f5deb384f4ab5ad4e0e5e7078"}},{"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/services_effect_no_owned_transactions_or_delivery.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fcdeb6636f7220a17708ade69a4aeef8dc027788a48fe4bc4a8841052e3c7f"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesInjectUnitOfWorkManagersRule.check (cognitive 63): UseCasesInjectUnitOfWorkManagersRule.check has cognitive complexity 63 (threshold 15). Drivers by points: if/else 12 (45 pts), loops 4 (9 pts), boolean chains 5, ternaries 1 (4 pts) (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/uow_use_cases_inject_managers.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a153bca6dec5f687dd4de6e75701fc2759e719d85163e8b29300bb6c0680bef9"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesDoNotImportOrReturnEntitiesRule.check (cognitive 51): UseCasesDoNotImportOrReturnEntitiesRule.check has cognitive complexity 51 (threshold 15). Drivers by points: if/else 9 (33 pts), loops 5 (12 pts), 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/use_cases_no_entity_imports_or_returns.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fe6bd239ab098f2fb124a074ca5c95954aeb8bb7e9007948ed3c4936f261c3"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCaseInputsAreLocalCommandsOrQueriesRule.check (cognitive 46): UseCaseInputsAreLocalCommandsOrQueriesRule.check has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (32 pts), boolean chains 7, loops 4 (7 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/use_cases_inputs_are_local_commands_or_queries.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7d9f1cf899f943f493a0ba44e871798bd858f06cd711a037e071462bbb0b6d"}},{"ruleId":"D2","level":"warning","message":{"text":"EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check (cognitive 41): EffectServicesDoNotOwnTransactionsOrImportDeliveryRule.check has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (27 pts), loops 5 (12 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0af27f23c16f0ded5a05d744d0c3e71f659838161dc7cfc2899133bbdf31b2"}},{"ruleId":"D2","level":"warning","message":{"text":"ReadServicesDoNotPerformWritesOrOwnTransactionsRule.check (cognitive 40): ReadServicesDoNotPerformWritesOrOwnTransactionsRule.check has cognitive complexity 40 (threshold 15). Drivers by points: if/else 6 (23 pts), loops 4 (10 pts), ternaries 1 (5 pts), 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/services_read_no_writes_or_transactions.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"530990f47e72105b7a4eb4186e835c112a2615b7c063fc9625393cbddd6c3218"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesDoNotOwnWorkflowsOrOtherPortRolesRule.check (cognitive 38): CapabilitiesDoNotOwnWorkflowsOrOtherPortRolesRule.check has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 4 (9 pts), 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/capabilities_no_workflows_or_port_roles.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3890c57be43c47723828dc3d9ac1b04e9ffc2e5e47d579773fefb028eda4ca59"}},{"ruleId":"D2","level":"warning","message":{"text":"UseCasesDoNotInjectRepositoriesOrInfrastructureRule.check (cognitive 36): UseCasesDoNotInjectRepositoriesOrInfrastructureRule.check has cognitive complexity 36 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"120f5d37ed45f3f35523a7899b9b08f869b28ef53b217da55831ff7c864e8681"}},{"ruleId":"D2","level":"warning","message":{"text":"LoggingDoesNotInjectLoggersRule.check (cognitive 35): LoggingDoesNotInjectLoggersRule.check has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (25 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/logging_no_injected_loggers.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"22653ddeb94b10a787abec07479ff659eaf524e56e9783c6f9756b91456386e1"}},{"ruleId":"D2","level":"warning","message":{"text":"PublicRoutesUseFullAPIV1PathsRule.check (cognitive 34): PublicRoutesUseFullAPIV1PathsRule.check has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (23 pts), ternaries 2 (6 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/delivery_routes_use_full_api_v1_paths.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b4118d3fdf58987e995564a387a8366d5d3773bddecca19777b437d0e25849"}},{"ruleId":"D2","level":"warning","message":{"text":"CapabilitiesLiveInExpectedPackagesAndUseExpectedSuffixesRule.check (cognitive 26): CapabilitiesLiveInExpectedPackagesAndUseExpectedSuffixesRule.check has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/capabilities_placement_and_suffix.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"69fb999cf62d98fbca6a9deecb0384294e46e205991e9963e7e8dd563f6648fd"}},{"ruleId":"D2","level":"warning","message":{"text":"DeliveryControllersDoNotImportInfrastructureRule.check (cognitive 23): DeliveryControllersDoNotImportInfrastructureRule.check has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 5 (9 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/delivery_controllers_do_not_import_infrastructure.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5b8e3424bf01a98c0ed75f9a82444affaffd77570824a8115d9b548e83a23d"}},{"ruleId":"D2","level":"warning","message":{"text":"FoundationImportsUseScopedPackagesRule.check (cognitive 23): FoundationImportsUseScopedPackagesRule.check has cognitive complexity 23 (threshold 15). Drivers by points: if/else 3 (11 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/foundation_imports_use_scoped_packages.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1c394947b0e3ded333d17431e440ea1606ebecadd6e31e907f6f816742938a"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewaysDeclareExternalEffectsAndDoNotReturnEntitiesRule.check (cognitive 23): GatewaysDeclareExternalEffectsAndDoNotReturnEntitiesRule.check has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 3 (6 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/gateways_external_effects_and_no_entity_returns.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"38feb51930a1ef764238a881c28617bd4b294cb1707a742c6de06353b9db2085"}},{"ruleId":"D2","level":"warning","message":{"text":"ServicesDoNotOpenUnitOfWorkScopesRule.check (cognitive 22): ServicesDoNotOpenUnitOfWorkScopesRule.check has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_services_do_not_open_scopes.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"25eaef666d763411ebb684d56efaca545c0302f5c2635a4ce75bca0e2260b7d2"}},{"ruleId":"D2","level":"warning","message":{"text":"QueryUseCasesDoNotCallRepositoryMutatorsRule.check (cognitive 21): QueryUseCasesDoNotCallRepositoryMutatorsRule.check has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/use_cases_queries_do_not_mutate.py"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8618439fb73ab2b5d14d0c8a93ab8b45de9644fd6a4de7a99007ff81068682"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreInnerPackagesDoNotImportOuterLayersOrIOLibrariesRule.check (cognitive 20): CoreInnerPackagesDoNotImportOuterLayersOrIOLibrariesRule.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/core_inner_packages_no_outer_layers_or_io_libraries.py"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e6af7f1f52d8428d814e91ab487bc5a17c72993b6c70267c298c07b439ceec3"}},{"ruleId":"D2","level":"warning","message":{"text":"PureServicesDoNotDependOnIOOrRuntimeStateRule.check (cognitive 20): PureServicesDoNotDependOnIOOrRuntimeStateRule.check has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/services_pure_no_io_or_runtime_state.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7426fa67f65e1f44b913bfffe914e86180ff2bdb9c6e1f3ff7b5988f7cdc3534"}},{"ruleId":"D2","level":"warning","message":{"text":"GatewayPortsAndImplementationsLiveInExpectedPackagesRule.check (cognitive 19): GatewayPortsAndImplementationsLiveInExpectedPackagesRule.check has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/gateways_ports_and_implementations_placement.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b123c8a402e08bd0fb0d3af5e3bf9433d20763e8f7796f5f3ce9420722d6f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"_shared.class_injects_diwire_container (cognitive 18): _shared.class_injects_diwire_container has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/_shared.py"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1c7f8426594bd31e8404ee2d6494d4ff14100616213aec18efc5e3fe58fefd"}},{"ruleId":"D2","level":"warning","message":{"text":"GenericBaseServiceIsNotUsedRule.check (cognitive 18): GenericBaseServiceIsNotUsedRule.check has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/services_no_generic_base_service.py"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"339f3375f33d31433a526de6750942186ff2bcf50cc838a4f542c46b88981735"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassesUseSuffixFromMostSpecificFoundationCategoryRule.check (cognitive 17): ClassesUseSuffixFromMostSpecificFoundationCategoryRule.check has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/classes_suffix_from_foundation_category.py"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec9a964f0824aca66c5677cc85a312836e3e3486f3a86f71dff9c52e97437a5"}},{"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 4 (9 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f88b790a5e93236a10e47f23c4d749d12976052182ba46ad329754573813cc7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/_shared.py: FileTooLong \u2014 770 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 270 over it, 1.54\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/_shared.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4261fd7288b92fc20e13969b277249078255b03a8f53014c1b81afbb137b1ef6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: architecture/context.py: FileTooLong \u2014 752 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 252 over it, 1.50\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bd4ac8d7f3b659d3a2803dd68742bc5327c254c6038838bdfbe889a851fda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:33-48 | src/specx/testing/architecture/rules/services_pure_no_io_or_runtime_state.py:34-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:33\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/services_effect_no_owned_transactions_or_delivery.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdf9cce9204416bf4f78ebc668a30aabdf45c34fda7657d4000648fa48ff500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): src/specx/testing/architecture/rules/capabilities_no_workflows_or_port_roles.py:70-81 | src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:55-68 | src/specx/testing/architecture/rules/services_read_no_writes_or_transactions.py:50-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:55\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/capabilities_no_workflows_or_port_roles.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3077d733340e5c44bbcf5ad57c9c84ee72646098a70a51a0a119297e91d1f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specx/testing/architecture/rules/capabilities_no_workflows_or_port_roles.py:79-92 | src/specx/testing/architecture/rules/uow_services_do_not_open_scopes.py:38-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/capabilities_no_workflows_or_port_roles.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc178e8fc0fde3183ca423b33c85266078823560af6eb1b3b3a673a80f2c40a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:35-43 | src/specx/testing/architecture/rules/services_pure_no_io_or_runtime_state.py:36-44 | src/specx/testing/architecture/rules/services_read_no_writes_or_transactions.py:39-47 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/specx/testing/architecture/rules/services_read_no_writes_or_transactions.py:38\u0060 calls \u0060repository_mutator_method_names\u0060 and \u0060src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py:34\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/services_effect_no_owned_transactions_or_delivery.py"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5223038fa6d37c1905f6804f1c6af48c1066fb0bae62fcc7246020d9ed1b7b4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py:30-38 | src/specx/testing/architecture/rules/use_cases_return_dtos.py:29-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"45c1bf73934324d1813bf230ed21b039ae611feef9e3fbda77591336fff6a421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 6): src/specx/testing/architecture/rules/uow_use_cases_inject_managers.py:33-39 | src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py:34-41 | src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py:29-35 | src/specx/testing/architecture/rules/use_cases_inputs_are_local_commands_or_queries.py:32-38 | src/specx/testing/architecture/rules/use_cases_no_entity_imports_or_returns.py:34-40 | src/specx/testing/architecture/rules/use_cases_return_dtos.py:28-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_use_cases_inject_managers.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb498d334e3ce194d7330ef896692348e1080a1bdf6e34fa179a9de4cf0c545"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): src/specx/testing/architecture/rules/_shared.py:321-328 | src/specx/testing/architecture/rules/_shared.py:338-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note 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/_shared.py"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98cce2086dc2b128e6b50872e2875c321305d25d76cf0f7f53f894b9df762ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py:31-36 | src/specx/testing/architecture/rules/use_cases_queries_do_not_mutate.py:41-46 | src/specx/testing/architecture/rules/use_cases_return_dtos.py:30-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/specx/testing/architecture/rules/use_cases_queries_do_not_mutate.py:40\u0060 calls \u0060class_definition_base_index\u0060 and \u0060src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py:30\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_use_cases_open_at_most_one_scope.py"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bb7319fae3c1e221690662f9a25cd7a292917cd36023a69a7e9cd88b41f301"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): src/specx/testing/architecture/rules/uow_services_do_not_open_scopes.py:29-34 | src/specx/testing/architecture/rules/uow_use_cases_inject_managers.py:35-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060src/specx/testing/architecture/rules/uow_use_cases_inject_managers.py:34\u0060 calls \u0060class_base_name_index\u0060 and \u0060src/specx/testing/architecture/rules/uow_services_do_not_open_scopes.py:28\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/uow_services_do_not_open_scopes.py"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb8dbc8333b417e80f17d409b83d17e3c012682b7da65444b8e2f9ea22f401a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): .agents/skills/specx-tests/references/render_architecture_guardrails.py:33-74 | skills/specx-tests/references/render_architecture_guardrails.py:33-74 \u2014 before extracting anything, compare \u0060.agents/skills/specx-tests/references/render_architecture_guardrails.py\u0060 and \u0060skills/specx-tests/references/render_architecture_guardrails.py\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".agents/skills/specx-tests/references/render_architecture_guardrails.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67704b261755605d4612bd989662c5f27546ffe23486c999c72306319b97bd04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/specx/testing/architecture/rules/tests_mirror_source_structure.py:72-89 | src/specx/testing/architecture/rules/tests_mirror_source_structure.py:91-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specx/testing/architecture/rules/tests_mirror_source_structure.py:72\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/tests_mirror_source_structure.py"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"1baae9240173f77007eca5a2bff25ab672a070be6c0e4684018a2d6f3a0fac4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/specx/testing/architecture/rules/tests_mirror_source_structure.py:246-259 | src/specx/testing/architecture/rules/tests_mirror_source_structure.py:264-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/specx/testing/architecture/rules/tests_mirror_source_structure.py:246\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/tests_mirror_source_structure.py"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b347cdea9921119f5a1942e99263cfd87653dd4eb6ae62bf7f1f29b6694a4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): .agents/skills/specx-tests/references/render_architecture_guardrails.py:86-92 | skills/specx-tests/references/render_architecture_guardrails.py:86-92 \u2014 before extracting anything, compare \u0060.agents/skills/specx-tests/references/render_architecture_guardrails.py\u0060 and \u0060skills/specx-tests/references/render_architecture_guardrails.py\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b6e589b826aa6cb7cb9cc6140713d637cdfaa66d6891c1859e73897e7596b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specx/testing/architecture/rules/delivery_routes_use_full_api_v1_paths.py: src/specx/testing/architecture/rules/delivery_routes_use_full_api_v1_paths.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in PublicRoutesUseFullAPIV1PathsRule.check at line 27. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-27..2026-07-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-27 18:39:50 \u002B08:00\u0027 --until=\u00272026-07-26 18:39:50 \u002B08:00\u0027 --full-history --no-merges -- src/specx/testing/architecture/rules/delivery_routes_use_full_api_v1_paths.py\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/delivery_routes_use_full_api_v1_paths.py"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93f657a2c037734671f8e399201c6f3a7a1f20e12d9f587a1414864d19963cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specx/testing/architecture/rules/logging_no_injected_loggers.py: src/specx/testing/architecture/rules/logging_no_injected_loggers.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in LoggingDoesNotInjectLoggersRule.check at line 30. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-27..2026-07-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-27 18:39:50 \u002B08:00\u0027 --until=\u00272026-07-26 18:39:50 \u002B08:00\u0027 --full-history --no-merges -- src/specx/testing/architecture/rules/logging_no_injected_loggers.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":"src/specx/testing/architecture/rules/logging_no_injected_loggers.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b11123a1ae3716e01691daff98eeacd9ff450ce8f1507254ad8dc234aedaaa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py: src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in UseCasesDoNotInjectRepositoriesOrInfrastructureRule.check at line 33. 1 of those changes was a fix/bug commit, and the other 1 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-27..2026-07-26, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-27 18:39:50 \u002B08:00\u0027 --until=\u00272026-07-26 18:39:50 \u002B08:00\u0027 --full-history --no-merges -- src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.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":"src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d538db836797eb302c7c077e07e0a77b0a8687a0018cc038b56eeb66369e62a"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 2 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 86% of the 2528 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6ed059458dc0d864f79fffc2c8cd3f09ac2213f256b255ba1e07734350228541"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04b89ea0814b52fff820f35be37fc255112bec8a197c9b57385fe8ab5d545b38"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"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"},"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"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":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 8 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/package.json"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 92 Python production file(s) this check read across 1 module(s). Each was searched for its ecosystem\u0027s logging libraries (Python: logging, structlog, loguru) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"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/deploy-storybook.yml"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060docs/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/package.json"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6698eb8153a71468b04a82fa3b13ea83ca8eee87a1183c9dd1ddc54743514738"}},{"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":"P8","level":"warning","message":{"text":"Schema created by SQLAlchemy create_all() (no migration path): SQLAlchemy create_all() builds the schema from the model at startup and keeps no migration history, so there is no reviewed, repeatable upgrade path for an existing production database \u2014 a renamed column is dropped and re-added rather than migrated. Adopt Alembic (\u0060alembic revision --autogenerate\u0060 \u002B \u0060alembic upgrade head\u0060), so every schema change is a versioned file applied the same way in every environment."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/sqlalchemy_no_schema_bootstrap_calls.py"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed85f0788220b73580dcf9a66dfeb0f29c5c9412ce4d41fec7cd67e40f9cfac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060alias.asname or alias.name.split(\u0022.\u0022)[0]\u0060 appears character-identically in 2 files \u2014 src/specx/_internal/python_ast/scanner.py, src/specx/testing/architecture/context.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/_internal/python_ast/scanner.py"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"574521575ccebc5b5603c2d8d6700e6469f613f5a2247f5c84d42235a598a6fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isinstance(child, (ast.AsyncFunctionDef, ast.FunctionDef)) and child.name == \u0022execute\u0022\u0060 appears character-identically in 3 files \u2014 src/specx/testing/architecture/context.py, src/specx/testing/architecture/rules/uow_use_cases_inject_managers.py, src/specx/testing/architecture/rules/uow_use_cases_no_direct_repositories_or_infrastructure.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecd5b10a365c1f0b61234a3d0ea8c1666baf2502494b6f9868609882ec63449"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not isinstance(child, ast.AnnAssign) or not isinstance(child.target, ast.Name)\u0060 appears character-identically in 2 files \u2014 src/specx/testing/architecture/context.py, src/specx/testing/architecture/rules/_shared.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d557149073f8676128cd6c1f50abad72f5f3711b9d4c5d2879d0b409be767c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not path.is_relative_to(test_root) or path.name == \u0022__init__.py\u0022\u0060 appears character-identically in 2 files \u2014 src/specx/testing/architecture/rules/tests_fixtures_do_not_bundle_mocks.py, src/specx/testing/architecture/rules/tests_mirror_source_structure.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/tests_fixtures_do_not_bundle_mocks.py"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"30613d11213bcc1f612e99b50265c1ca7771ca6d44c2a04c5351e81bdbf9c56f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060path.name == \u0022__init__.py\u0022 or path not in context.ast_project.files\u0060 appears character-identically in 17 files \u2014 src/specx/testing/architecture/context.py, src/specx/testing/architecture/rules/core_inner_packages_no_outer_layers_or_io_libraries.py, src/specx/testing/architecture/rules/core_scope_infrastructure_does_not_import_delivery.py, src/specx/testing/architecture/rules/delivery_controllers_do_not_import_infrastructure.py. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/context.py"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a571072985747cee0baa2460678377952af1fb1b3c2b40272cda03558b762e"}},{"ruleId":"X28","level":"warning","message":{"text":"Index access outside its own emptiness guard: This condition tests \u0060chain\u0060 for emptiness and then indexes it on a branch that test does not reach. \u0060chain[0]\u0060 is evaluated whenever the guarded half is false \u2014 which includes the case the guard exists to anticipate, \u0060chain\u0060 being empty \u2014 so an empty \u0060chain\u0060 indexes position 0 of nothing and throws. This same condition already shows the intended bracketing: \u0060chain[1]\u0060 sits INSIDE the guard. Either the guard is load-bearing, in which case this access escapes it and crashes, or \u0060chain\u0060 cannot be empty here, in which case the guard beside it is dead code \u2014 the condition is wrong under both readings. Move the parenthesis so the emptiness test brackets every access to \u0060chain\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/specx/testing/architecture/rules/_shared.py"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efe648088b126571779d2581606ee87aed913b3512b7e1968a4d7f3c86b6d08"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1352","guid":"5257f322-5cfc-6b52-bedd-0b9a526b4c7d","name":"CWE-1352","shortDescription":{"text":"CWE-1352"},"helpUri":"https://cwe.mitre.org/data/definitions/1352.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-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":"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-7","guid":"4c4af28d-49e3-2d51-b597-e1396c49658b","name":"Insecure System Configuration","shortDescription":{"text":"Insecure System Configuration"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-07-Insecure-System-Configuration"},{"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."]}]}