{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"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":"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":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX7","name":"Slice cohesion","shortDescription":{"text":"Slice cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/AX7"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"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":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"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":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"GuideController.matchGuideAction (cyclomatic 59): GuideController.matchGuideAction has cyclomatic complexity 59 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"28cf8b56353fa40e2eb430872938986e6ccdd0a21b6b30efee2b5cfab76b5c02"}},{"ruleId":"D1","level":"warning","message":{"text":"guide_memory.gatherGuideMemoryBundle (cyclomatic 53): guide_memory.gatherGuideMemoryBundle has cyclomatic complexity 53 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"a539197ad35bce8e75029266a29fc413887d614a040388d46a7111f568168d5a"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._handleGuideModifyTask (cyclomatic 39): _HomePageState._handleGuideModifyTask has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc25f62e2720a20c16225ba19ea00b5827a27b33171c85bc27c3862a55de64c"}},{"ruleId":"D1","level":"warning","message":{"text":"_QuestItemState.build (cyclomatic 37): _QuestItemState.build has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_item.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3419bfd0c900f8fdc5dd8c4f159b38d5545f785a61d8bd42a7d8e04665d134ae"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController.simulateAIParsing (cyclomatic 36): QuestController.simulateAIParsing has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1dac2f249bb89de459636ee14e55851cec1e1a1e499878a3e1b8363bbb6ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController.moveQuestByDrop (cyclomatic 32): QuestController.moveQuestByDrop has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0efbc8f05e38310078def4eda6eba09074593fa172ce4f6ce8c35009393734"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController.toggleQuestCompletion (cyclomatic 31): QuestController.toggleQuestCompletion has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"48501a4773b7cd88e198db3083807a0857a896a2daac3b54fdf9e61eac80c957"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._handlePendingGuideTaskEdit (cyclomatic 31): _HomePageState._handlePendingGuideTaskEdit has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5b14fffc4ec7e948a0fdfccb3cec3774c6f1e31a2fd0671f35d00450d35158"}},{"ruleId":"D1","level":"warning","message":{"text":"agent_planner.planAgentGoal (cyclomatic 30): agent_planner.planAgentGoal has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8e1a7000a9af4d28a9492cae7c0b3795469b2c87ee7f16ed8e8eebbd71eea3"}},{"ruleId":"D1","level":"warning","message":{"text":"agent_policy.inferAgentRiskLevel (cyclomatic 28): agent_policy.inferAgentRiskLevel has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_policy.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5031902c9dd6a8db846de62f69b717564c51283792207173198b25be5da789e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleTaskCapture (cyclomatic 28): index.handleTaskCapture has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 4 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 142, 235). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"739c8d8190972c80251e09d1093588e219f88ee29073acbc99959776cb686eac"}},{"ruleId":"D1","level":"warning","message":{"text":"_QuestEditSheetState.build (cyclomatic 27): _QuestEditSheetState.build has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"797ee42135375339abfbbc9ff61166098e25c1f56c4330200ac2806807590937"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 26): index.Deno.serve() has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"74eb39aa1aa299d4475eb43b224b492f85694521bdd5819558bc181a53dfd1de"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._openGuidePanel (cyclomatic 25): _HomePageState._openGuidePanel has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ec025238e4c2cb5d0a62cfe35a10024b88b323c1bb0174ba68216e92c16ca6"}},{"ruleId":"D1","level":"warning","message":{"text":"index.createAgentStepCompleteHandler.\u003Creturned closure\u003E (cyclomatic 25): index.createAgentStepCompleteHandler.\u003Creturned closure\u003E has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24d659ac81d8a5475638d9e6699e7bf55d6238c20b73a173b870a81c04830f2"}},{"ruleId":"D1","level":"warning","message":{"text":"refactor_home.find_method_body_end (cyclomatic 23): refactor_home.find_method_body_end 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":"refactor_home.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55b2ae3a5b9d9ab6c0359d369222b8c8ae5bae5da671952764dcd0ad3fd0ef3"}},{"ruleId":"D1","level":"warning","message":{"text":"_RewardShopPageState._openAddReward (cyclomatic 22): _RewardShopPageState._openAddReward 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":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"880f19d96e87eb7f2c114c5c2f5c7388d7acd5358f60711dd55211595119696d"}},{"ruleId":"D1","level":"warning","message":{"text":"guide_memory.isChainBreaking (cyclomatic 21): guide_memory.isChainBreaking has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f4d4c95e3777273702d1545237f0f1fa73dd92550d0465b870a50d27b917c4a"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController.createManualQuest (cyclomatic 20): QuestController.createManualQuest has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"b679bc096415cd0b9476c305d820cb5644aaef6353037c9684e992719b00a0fc"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController.updateQuestDetails (cyclomatic 20): QuestController.updateQuestDetails has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52e52bf1d9991e3b942e52b6561f974fa9f20f48dd3526909b8f784953396ef"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._runGuideBootstrapIfNeeded (cyclomatic 20): _HomePageState._runGuideBootstrapIfNeeded has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2743c3962c88fb44d373e6bf9d94b0458a17314add6f296d58f6eeb5dd6bd29"}},{"ruleId":"D1","level":"warning","message":{"text":"refactor_home.main (cyclomatic 20): refactor_home.main has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refactor_home.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4fee65448e50499a6b487e001870d30417a50904d03e8f01d8ad54989e3cf7a"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 20): index.Deno.serve() has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c6941707acf85f719c65ffaeec3c6cca9d0ec86d4353cd9fb558bbf56037e8"}},{"ruleId":"D1","level":"warning","message":{"text":"_MemoryCardState.build (cyclomatic 19): _MemoryCardState.build has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/memory_card.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46d6cf68e774ab5a1e3f0daab6ff17760345f995a6a0a2835c2fdce8096c985"}},{"ruleId":"D1","level":"warning","message":{"text":"GuideController.isGuideConfirmationText (cyclomatic 19): GuideController.isGuideConfirmationText has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e71206641f643c861a754d2c0d6251fc10c859ae6dbe4af2bd601f09c37b2fd"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._handleGuideTurn (cyclomatic 19): _HomePageState._handleGuideTurn has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba5319749c9061f4fe60edc815d7e1e160eab881bc979ff29f86ef95cd9b45f"}},{"ruleId":"D1","level":"warning","message":{"text":"agent_planner.replanAfterToolCompletion (cyclomatic 19): agent_planner.replanAfterToolCompletion has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: agent_planner.isTaskCreateIntent (cyclomatic 21) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8090d0216717ebf91a4b38b43a4456248e2a35143e4ea710af20103d9adf77"}},{"ruleId":"D1","level":"warning","message":{"text":"_QuickCreateDialogBodyState.build (cyclomatic 18): _QuickCreateDialogBodyState.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02b23ef66578b19579009919424aa11db95f717a953e160c8f04ea36b9fbd9a"}},{"ruleId":"D1","level":"warning","message":{"text":"login.html.draw (cyclomatic 18): login.html.draw has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f066b0b89924b4c5d262e06a750d68ade5121dcd0c1d222ab61035383dcad3"}},{"ruleId":"D1","level":"warning","message":{"text":"index.tryDetectMemoryAchievements (cyclomatic 18): index.tryDetectMemoryAchievements has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2b630b2fa3975af04e45cb9cb8fefbf017ad77cb24a66f1e6adf35912bc065"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController._syncMemoryFireAndForget (cyclomatic 17): QuestController._syncMemoryFireAndForget has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba85b1c0e352ac358a5b762deb5f2bcd70dd5950a8b4879474c54c1783d7cf64"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._buildGuideQuickActionAnalysis (cyclomatic 17): _HomePageState._buildGuideQuickActionAnalysis has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ec5edf8034090417cb1f3d811db2e831f1e9ea82cbec431755f23f8db3ae7c"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 17): index.Deno.serve() has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-freeform-chat/index.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"16073ec7994b736e32f009a8e248506a1b041e406f9cde0e4959815f069f7d1b"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 17): index.Deno.serve() has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b0c566bf2738ba8de4c1583579937b0232c5331eefc1fe4a7eb3bb2a26b0bb"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 17): index.Deno.serve() has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary/index.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419dd1d62f4caa6aee8f57df723dfd4ba9284c9be1da371f29430620605c3fe"}},{"ruleId":"D1","level":"warning","message":{"text":"GuideService._inferErrorType (cyclomatic 16): GuideService._inferErrorType has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e09119b658ed6aaa2bd23426e99b55f0532b37e6ac15da52e014b4453e8afa5"}},{"ruleId":"D1","level":"warning","message":{"text":"GuideController.handleGuideTurn (cyclomatic 16): GuideController.handleGuideTurn 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08199a6a9a16b87c09385e62581464a78ff585056045ffbca2c4d9c80335e4e"}},{"ruleId":"D1","level":"warning","message":{"text":"GuideController.shouldGuideGenerateSubtasks (cyclomatic 16): GuideController.shouldGuideGenerateSubtasks has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":2103}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e2685143b21baa9bcfae2ebced36c49d85e7b34bb793d25afe185034a514d8"}},{"ruleId":"D1","level":"warning","message":{"text":"QuestController._upsertDailyLogForToday (cyclomatic 16): QuestController._upsertDailyLogForToday 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":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d471aadcdea604c01aa63029de9fc0f97dfe531091f1490943700e1c46d7809f"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._guideCompanionCardContent (cyclomatic 16): _HomePageState._guideCompanionCardContent has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e687aa5737ce9cb636f03e068e3324abf287d67601917389d6ce23a1b07df54"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomePageState._handleDocumentRecognition (cyclomatic 16): _HomePageState._handleDocumentRecognition 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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"471ee3fb584676f34d9e0ed3b275a1cfc61f131a5f38a71897936a7b9bbb776f"}},{"ruleId":"D1","level":"warning","message":{"text":"_GuideComposerState._handleKeyEvent (cyclomatic 16): _GuideComposerState._handleKeyEvent 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":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"774e5f270d126a2b32bc9476772396cec8bad1e8a4d87851ff408bed3a70418d"}},{"ruleId":"D1","level":"warning","message":{"text":"_RewardShopPageState._friendlyErrorMessage (cyclomatic 16): _RewardShopPageState._friendlyErrorMessage has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0ae1d65671fcdf1c30234a1ec2d609c5e4d611a93d38c8f1ab0ed5a22ba6b1"}},{"ruleId":"D1","level":"warning","message":{"text":"breakpoint_helpers.generateBoostContent (cyclomatic 16): breakpoint_helpers.generateBoostContent has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"55456626b3bb99a5340c436278aeeaaf746651389efdcf3c8066930136f6f87c"}},{"ruleId":"D1","level":"warning","message":{"text":"index.detectPatrolSignals (cyclomatic 16): index.detectPatrolSignals has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7cc2e41af1b8979c927d44eb23e30e92866ca9dd2fce8619709d72bbb2b768"}},{"ruleId":"D1","level":"warning","message":{"text":"index.patrolUser (cyclomatic 16): index.patrolUser has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd195b5fa11da26bcee0cc2ddce86dc60659d66ce2a57aca305e81c3da60dd"}},{"ruleId":"D1","level":"warning","message":{"text":"index.Deno.serve() (cyclomatic 16): index.Deno.serve() has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-document/index.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9cc8e05812db8baf654ce646fdd5abb77f4cfd2fea08e1f205dceb2b3dcd2d"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.simulateAIParsing (cognitive 81): QuestController.simulateAIParsing has cognitive complexity 81 (threshold 15). Drivers by points: if/else 14 (40 pts), loops 8 (18 pts), error handling 5 (12 pts), boolean chains 6, ternaries 2 (5 pts) (nesting depth added 46). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cebcb7470c3279282bb01419d6c500128fa54fd0203b46d20cac9d6de527d0c"}},{"ruleId":"D2","level":"warning","message":{"text":"guide_memory.gatherGuideMemoryBundle (cognitive 70): guide_memory.gatherGuideMemoryBundle has cognitive complexity 70 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 16, ternaries 12 (14 pts), error handling 4 (7 pts), loops 4 (6 pts) (nesting depth added 18). Of this number, 57 points are the body\u0027s own statements and 13 belong to 6 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1665e6a266909414186023e0fa2c951281f80ea34176e47963455d95c6dda5c"}},{"ruleId":"D2","level":"warning","message":{"text":"refactor_home.find_method_body_end (cognitive 59): refactor_home.find_method_body_end has cognitive complexity 59 (threshold 15). Drivers by points: if/else 11 (39 pts), loops 7 (17 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 39). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refactor_home.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c29be8557aaac79b345ca6ab447d3ad453ab121d33ed82a1e22c99cbe667caa8"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController.matchGuideAction (cognitive 58): GuideController.matchGuideAction has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 49, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"82297ba8d261ace1d5289c90dac916ab8757ba74f29618d5f65a134fc60308fe"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._handleGuideModifyTask (cognitive 56): _HomePageState._handleGuideModifyTask has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (24 pts), ternaries 9 (23 pts), boolean chains 9 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"84477580d64a8f67152f38d0bb355a61979c0b85daf7e62eb0e0c21c6956bdbe"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.toggleQuestCompletion (cognitive 52): QuestController.toggleQuestCompletion has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (31 pts), boolean chains 9, loops 3 (6 pts), ternaries 5, error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"130473d70e2db9c96dbbdd1732beb8c52c3c1bf9218b41815525caf868c46767"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._handlePendingGuideTaskEdit (cognitive 49): _HomePageState._handlePendingGuideTaskEdit has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 14 (28 pts), if/else 11 (15 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"90127dd6c106db4a9bffe212a9ae6a109022ecd77db84e02399810d604ac6125"}},{"ruleId":"D2","level":"warning","message":{"text":"agent_planner.planAgentGoal (cognitive 43): agent_planner.planAgentGoal has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 17 (31 pts), if/else 11, 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":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"a964fa0ccd1ce9fff12f429be465cdc99f773d84edc9461f8bcb39e3825b552d"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.moveQuestByDrop (cognitive 41): QuestController.moveQuestByDrop has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 5, loops 3 (4 pts), error handling 1, ternaries 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfcc6ac2583e2c2249bd7194f01bb4b33ef78a8451374ae0d581408577ce13f5"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._openGuidePanel (cognitive 41): _HomePageState._openGuidePanel has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 7 (12 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b43a265a81c66e6434b7175d393b87c7080ec12cc04744073a68742ff664a35"}},{"ruleId":"D2","level":"warning","message":{"text":"index.tryDetectMemoryAchievements (cognitive 40): index.tryDetectMemoryAchievements has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 4 (16 pts), boolean chains 1, loops 1 (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"754b659c0749585f6a7fb038dcbc398f50028b6bfe377b779427c668693f7be9"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Deno.serve() (cognitive 39): index.Deno.serve() has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 4 (9 pts), error handling 4 (5 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 14). Of this number, 38 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"45643295da109922c256160ddda11ca707d239cadbca93c76fa121c2bd169621"}},{"ruleId":"D2","level":"warning","message":{"text":"_QuestEditSheetState.build (cognitive 38): _QuestEditSheetState.build has cognitive complexity 38 (threshold 15). Drivers by points: ternaries 13 (23 pts), boolean chains 8, if/else 5 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8faa0bc29f8df66c7ff3dab7c7917e758223fbe6fd5ee419f0d0bb4f67ac561"}},{"ruleId":"D2","level":"warning","message":{"text":"login.html.draw (cognitive 38): login.html.draw has cognitive complexity 38 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 1, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"379a77f6198edcb6b585f53aef512b29f8c47416eabefa48c55f94ef4cfef8e4"}},{"ruleId":"D2","level":"warning","message":{"text":"_QuestItemState.build (cognitive 37): _QuestItemState.build has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 24 (25 pts), if/else 7, boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_item.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b3120680bdbcfdbcb6143fe5d22530d32e8300e3c2513c16382dccae8d6a9c"}},{"ruleId":"D2","level":"warning","message":{"text":"refactor_home.find_all_methods (cognitive 37): refactor_home.find_all_methods has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (30 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refactor_home.py"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b674b398c6059e87a40cadfa4fe94aa27740792aa8c09180e063afcd3d290dab"}},{"ruleId":"D2","level":"warning","message":{"text":"_RewardShopPageState._openAddReward (cognitive 36): _RewardShopPageState._openAddReward has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 5 (10 pts), boolean chains 4, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f15fa6a6a67165083c8c55dae37ad3c7f6ef480428d0f3899e45d3c4b7ced98"}},{"ruleId":"D2","level":"warning","message":{"text":"index.handleTaskCapture (cognitive 36): index.handleTaskCapture has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 9 (15 pts), if/else 11 (13 pts), boolean chains 4, loops 3, error handling 1 (nesting depth added 8). Most of this is not in the body itself: 4 of the 36 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 142, 235). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cb83085d1d8f64d4800b5e7b0db49cc06834f0ac97b7311c7470811b9d3803"}},{"ruleId":"D2","level":"warning","message":{"text":"refactor_home.main (cognitive 35): refactor_home.main has cognitive complexity 35 (threshold 15). Drivers by points: loops 12 (22 pts), if/else 6 (12 pts), boolean chains 1 (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refactor_home.py"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7959f8065e57ad493ba8f5cab57f85418dafa23deb9388eb2b5b39b777dbe18"}},{"ruleId":"D2","level":"warning","message":{"text":"guide_memory.isChainBreaking (cognitive 33): guide_memory.isChainBreaking has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (26 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 13). Of this number, 24 points are the body\u0027s own statements and 9 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3c2e240249415219b80db36bb7e071281ba1813c73b08f8d060c493b0ccc3a"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._handleGuideTurn (cognitive 30): _HomePageState._handleGuideTurn has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 5 (12 pts), if/else 6 (10 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2781}}}],"partialFingerprints":{"codehealthFindingId/v1":"434c06f79de86e0e10d8527708b2c211aeb74caeaba1b91c96c2304bd5af59b5"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._runGuideBootstrapIfNeeded (cognitive 29): _HomePageState._runGuideBootstrapIfNeeded has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 4, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc5e2e61d54e80a5d04d67d2fd9d391e160b59a1b47dc24f30227f7d1ec787"}},{"ruleId":"D2","level":"warning","message":{"text":"index.createAgentStepCompleteHandler.\u003Creturned closure\u003E (cognitive 29): index.createAgentStepCompleteHandler.\u003Creturned closure\u003E has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11, ternaries 8 (11 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f393deed1970682cf8469d7c50aded87adfef5baa41ceb1f678fa909ae6a540"}},{"ruleId":"D2","level":"warning","message":{"text":"agent_policy.inferAgentRiskLevel (cognitive 28): agent_policy.inferAgentRiskLevel has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_policy.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f5447db66278e5b89339169a30d31967ef614e8df48a50898c0226d9ebd3eb3"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController._handleGuideRedeemReward (cognitive 27): GuideController._handleGuideRedeemReward has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (21 pts), if/else 3 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"7307cab8e4b33eb7587237650ab588e08ee1ff14ccb08dbe7554eeea8032ef2e"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestService.parseQuest (cognitive 26): QuestService.parseQuest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (18 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/quest_service.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c2bfc80504ab7179e6a7a818e4325cee842af87171f67faeb0d780d23e2d6c"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.updateQuestDetails (cognitive 26): QuestController.updateQuestDetails has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 5 (10 pts), boolean chains 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1440}}}],"partialFingerprints":{"codehealthFindingId/v1":"738dcaf4632b0e4b81db039288fb0f8d8891804d8e425fd55de066620cc1d115"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentService._invoke (cognitive 25): AgentService._invoke has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (6 pts), boolean chains 3, error handling 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":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a07f073f3463171cb8fad74b4ca336c32f54ac2f1fa62e76b3acf0a0c87c14b"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Deno.serve() (cognitive 25): index.Deno.serve() has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 2 (4 pts), error handling 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6704d5eefc5ec2e8f1a9594e9199dd00cee9fa8724413091f015ea2befdd4c"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideService._invoke (cognitive 24): GuideService._invoke has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, error handling 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b489946a78388b9cf50c6c09a5e6615cd674742a3e3829aed70e075c36bc69"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._handleDocumentRecognition (cognitive 24): _HomePageState._handleDocumentRecognition has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3323}}}],"partialFingerprints":{"codehealthFindingId/v1":"f52de0640b19116763b701e1da451dfe411a9a771d0e3ea3a95bd58039749b38"}},{"ruleId":"D2","level":"warning","message":{"text":"_LifeDiaryPageState._pushToWechat (cognitive 24): _LifeDiaryPageState._pushToWechat has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 2 (5 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/life_diary_page.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2437995219ba47a3338c08b84efcbbe6db8733dda93cec90065b69fc2463c9"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController.handleGuideTurn (cognitive 23): GuideController.handleGuideTurn has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (9 pts), if/else 5 (7 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c366eb06748a079115feb815822d2f2d8290b3b0bbac636bed9e9e1442333d"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._buildGuideQuickActionAnalysis (cognitive 23): _HomePageState._buildGuideQuickActionAnalysis has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 9 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ac6668f4da696110f73ffcc05a3f96fdc6d578ba90c1cd48498e1eed65ef38"}},{"ruleId":"D2","level":"warning","message":{"text":"_MemoryCardState.build (cognitive 22): _MemoryCardState.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 6 (9 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/memory_card.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"540a508a7adeb184f2644f71b6c6607ad86ee892a9fd217c5fc2f68682898dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"index.detectPatrolSignals (cognitive 22): index.detectPatrolSignals has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 7). Of this number, 19 points are the body\u0027s own statements and 3 belong to 3 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c3a7653e2a3c45b48e57dfabfa09d5580d031b4f1a9a21b3ed67109be1aca2"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Deno.serve() (cognitive 22): index.Deno.serve() has cognitive complexity 22 (threshold 15). Drivers by points: error handling 6 (11 pts), if/else 7 (8 pts), boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"704ae55b25aaf6fffda53754efee768a3913b5af321cafad51111032dc197c78"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.createManualQuest (cognitive 21): QuestController.createManualQuest has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5, ternaries 2, error handling 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1e680c0426c17df020f88285670f45b5fc923cbb804776b2a66de01a0aa6c6"}},{"ruleId":"D2","level":"warning","message":{"text":"_QuickAddBarState.pickAndRecognizeImage (cognitive 21): _QuickAddBarState.pickAndRecognizeImage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_add_bar.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da72749b1fa137d3e4acc3db070410d2105628b5089e5a593e96045680a45c2"}},{"ruleId":"D2","level":"warning","message":{"text":"guide_memory.detectWeeklyCycleChains (cognitive 21): guide_memory.detectWeeklyCycleChains has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1fdfe77a715eb034a670e8f674da3278d487860f8b9c693166ac8c1886983a"}},{"ruleId":"D2","level":"warning","message":{"text":"index.normalizeLlmPayload (cognitive 21): index.normalizeLlmPayload has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 5 (7 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a073cea61f2bc35c29853761c2ae84207038ab419dfe2ffb54efcc99f5caf29"}},{"ruleId":"D2","level":"warning","message":{"text":"_GuideComposerState._handleKeyEvent (cognitive 20): _GuideComposerState._handleKeyEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (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":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"692fb6bdfefd67086ddabbe0c870b48006816c453e6391d163ecdc4d53f05fa7"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryService._parseBreakpointMemory (cognitive 19): MemoryService._parseBreakpointMemory has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 3 (6 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"76944c70e2f39240df82d1587635620fb0afada9b954a261b8f96db1461ab05f"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController._upsertDailyLogForToday (cognitive 19): QuestController._upsertDailyLogForToday has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 7, error handling 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d065e06ea8d82007d95d62ca4e6f2046cdbfc15f5b53c264ecd4ba183cffd4c1"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._syncTodayMemories (cognitive 19): _HomePageState._syncTodayMemories has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3500}}}],"partialFingerprints":{"codehealthFindingId/v1":"f72355a75353195e5e365745dd68f19674ae1a467c7a98b2ac4410b647175364"}},{"ruleId":"D2","level":"warning","message":{"text":"_LifeDiaryPageState._load (cognitive 19): _LifeDiaryPageState._load has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (9 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/life_diary_page.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa23f188fe9862cd0c1e6dc0ee80f8adfa791a28c8b8269fd30560407575b7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"index.patrolUser (cognitive 19): index.patrolUser has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 5 (7 pts), boolean chains 3, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e02bd64820b4457dd0bac54544080a14509aee7988ffc6fa56891d78d1cde0"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController.isGuideConfirmationText (cognitive 18): GuideController.isGuideConfirmationText has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 17, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3b2cb6775361c94301eeaf26d293ace6d0798ef1b65922b287afe5d4fb9359"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.addOnboardingTutorialBundle (cognitive 18): QuestController.addOnboardingTutorialBundle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (6 pts), loops 3 (5 pts), error handling 2 (4 pts), ternaries 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df70a13f1ccd7871f582c6ddf810280ad4d22aece281e8d4f98b8d26f949717"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.deleteQuest (cognitive 18): QuestController.deleteQuest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (4 pts), ternaries 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (QuestController.restoreQuest) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b4abac8ac62bd698df5994b6d44c73c032dcffb5d00e930fd179d378264c89"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController.restoreQuest (cognitive 18): QuestController.restoreQuest has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (4 pts), ternaries 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (QuestController.deleteQuest) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"6737522c06a24076593f1eabe79205b39500965db44b461703e8e5236d607623"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._generateUserProfile (cognitive 18): _HomePageState._generateUserProfile has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (4 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fab897623fbfc914cd15b4bf45169c55b0055958123ac52940470d06b3534ba"}},{"ruleId":"D2","level":"warning","message":{"text":"guide_memory.detectTimeSlotChains (cognitive 18): guide_memory.detectTimeSlotChains has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2d30b9ba2028b1acd517aea1d079c27b233ef97c93acef44f99625bbb12ad8"}},{"ruleId":"D2","level":"warning","message":{"text":"agent_planner.replanAfterToolCompletion (cognitive 18): agent_planner.replanAfterToolCompletion has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 2, error handling 1. Of this number, 15 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea542cb30026871c5a765ba6bcee498b405e4d6b71456c835f6bd1d1ea6c7a5"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController._handlePendingGuideTaskEdit (cognitive 17): GuideController._handlePendingGuideTaskEdit has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), if/else 5 (6 pts), boolean chains 3 (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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"e543d2855d879d0669ae46f613b94138182077ee5dee47cbc634f285159e48db"}},{"ruleId":"D2","level":"warning","message":{"text":"_LifeDiaryPageState._summonWeeklySummary (cognitive 17): _LifeDiaryPageState._summonWeeklySummary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/life_diary_page.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c3934bb96911bd17b1d286fb08c6cac5c8315eb9a09671cef1743f4f3455d4"}},{"ruleId":"D2","level":"warning","message":{"text":"_InventoryPageState.build (cognitive 17): _InventoryPageState.build has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 6, boolean chains 3 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"6269e70ba72ce8a492aa24de81eb774c79b7ec543dcb55eef36f88dcbe6a60b6"}},{"ruleId":"D2","level":"warning","message":{"text":"_RewardShopPageState._friendlyErrorMessage (cognitive 17): _RewardShopPageState._friendlyErrorMessage has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 4, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"076b41d12e2927392f940d4e60428d549dac1feb9f01c035664e925db8388449"}},{"ruleId":"D2","level":"warning","message":{"text":"guide_memory.applyDecayWeights (cognitive 17): guide_memory.applyDecayWeights has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 5). Of this number, 9 points are the body\u0027s own statements and 8 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"2813172cd271b8ba4ab5694417e59000643c8863ef01872ff1d5c4dd7bebad16"}},{"ruleId":"D2","level":"warning","message":{"text":"index.Deno.serve() (cognitive 17): index.Deno.serve() has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 3 (4 pts), boolean chains 3, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-freeform-chat/index.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b95687f555e88fa8c743907609dd19605dc0742dfa8ec52ddd5edbdaca6b44c"}},{"ruleId":"D2","level":"warning","message":{"text":"index.generateImageViaOpenAI (cognitive 17): index.generateImageViaOpenAI has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (5 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fe735d26f4204bab46f55e4f95bf8cfe4baf1dfa2f60c295825d5f81e6aede"}},{"ruleId":"D2","level":"warning","message":{"text":"MemoryService.recognizeImage (cognitive 16): MemoryService.recognizeImage has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (6 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"38a6d7f0c8f891fd168b76e6d163f795abb0879cfbd29e2a5c6a209326cb4a4c"}},{"ruleId":"D2","level":"warning","message":{"text":"_VoicePlaybackRowState._initPlayer (cognitive 16): _VoicePlaybackRowState._initPlayer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/voice_playback_row.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4585a68bd95581d918335c1baddd7b084c581c3e296372247c7121a6378d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"GuideController.requestDirectFreeformChat (cognitive 16): GuideController.requestDirectFreeformChat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f4a90f706b32b6bec588128009184902eabe21102690b66b41244c431b2260"}},{"ruleId":"D2","level":"warning","message":{"text":"QuestController._syncMemoryFireAndForget (cognitive 16): QuestController._syncMemoryFireAndForget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e6c5600afef515433cb26b7f217084ab1273699bac9eb957c2c2800804a075"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._requestDirectFreeformChat (cognitive 16): _HomePageState._requestDirectFreeformChat has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74d6a53724b6b827eacd08db91005fd5087da10b848e3bf64896cb83a0c7c55"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._handleDailyEventDecision (cognitive 16): _HomePageState._handleDailyEventDecision has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, error handling 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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9995a107950123462a6432b7686ef4e0fcbe5ab9216fcb5043596c3ecf9169c"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomePageState._guideCompanionCardContent (cognitive 16): _HomePageState._guideCompanionCardContent has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba310cec2b2fe31e51e58be7b137ce49d4dfe8e280d4caa52f648b040100713"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _HomePageState: ClassTooLong \u2014 3306 significant lines (blank, comment-only and punctuation-only lines excluded), 76 methods. The bar is 400 significant lines; this is 2906 over it, 8.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f714775e2df3e7d63aa3eaf2dd1d6248f7c09f2551241c66546bc5ea65cd120a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/home_page.dart: FileTooLong \u2014 3369 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _HomePageState (74-4537). The bar is 500 significant lines; this is 2869 over it, 6.74\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8788d44e9316b66697fcc3767957005d16dfc46aedb49690a1d767fb31d153"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GuideController: ClassTooLong \u2014 1616 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 400 significant lines; this is 1216 over it, 4.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3fda3cc2976e9e2bf8f47b23222550a39688435690f91ab12ae5bfc9e7bf1ed"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QuestController: ClassTooLong \u2014 1556 significant lines (blank, comment-only and punctuation-only lines excluded), 85 methods. The bar is 400 significant lines; this is 1156 over it, 3.89\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c94c829a06d0f30b95de75ee7172721ab0170bf4b07eecdd85661820ecdcc1f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controllers/guide_controller.dart: FileTooLong \u2014 1685 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: GuideController (98-2242). The bar is 500 significant lines; this is 1185 over it, 3.37\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6770f9848a72a6c12c8e431388ca84fd64b47867190c8a04eb9206f8f8c1a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: controllers/quest_controller.dart: FileTooLong \u2014 1601 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: QuestController (50-2112). The bar is 500 significant lines; this is 1101 over it, 3.20\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97847c5aac5bbdbab16d95ab9e4d7ea0fcad2003e6ae16f53a1b446b885b04d8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState.build: MethodTooLong \u2014 build runs 301 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 201 over it, 3.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":4125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3af9846742817fcbecd04b3ae536c40c1f3db58b4276068735297769f7c067"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState._handleGuideModifyTask: MethodTooLong \u2014 _handleGuideModifyTask runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d73702ff00b00b035861fa6f726b027fd6668c09c5a035203edbfe7ef261bf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GuideController: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63b82618d5fe2f8dbbbf83420b97430685d244cda045b768f22674c4bc9bda2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuestController: TooManyMethods \u2014 85 methods. The bar is 30 methods; this is 55 over it, 2.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32f8ed6fd11e9ff97fbdab80eb1c2807e10974cc264f9fcf8b2a51ff1dbf065"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EarthOnlinePromo.PosterComposition: FunctionTooLong \u2014 PosterComposition runs 274 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 174 over it, 2.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dae7f79118d09a1b14421710bacb333119b8873bc603cfae8cfaaff78fdaf93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/EarthOnlinePromo.tsx: FileTooLong \u2014 1354 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 854 over it, 2.71\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":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24432f4bf09fd65bac3954bb6ddd212b034f3d06a7991b0da9643950707729d1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState._openUnifiedSettings: MethodTooLong \u2014 _openUnifiedSettings runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3768}}}],"partialFingerprints":{"codehealthFindingId/v1":"0377a387d1fa0d4d05a2dfe03260960f6bdd71c5cf0611f86129f7ae1cb7dc08"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _HomePageState: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7efd73ec04c51044ec4f26eba3500b56e1653fbcfeb3ecc1d2b844abd09d3d72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState._handlePendingGuideTaskEdit: MethodTooLong \u2014 _handlePendingGuideTaskEdit runs 235 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 135 over it, 2.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"1036388f5c06ec5cef9e2790b22f9eb250998cf007e5d318841b21577f7ed1ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuestEditSheetState.build: MethodTooLong \u2014 build runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"995652133102e0a8cadf32aa8c2013f72223e0f637461886e934a6546ce3ea94"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuestItemState.build: MethodTooLong \u2014 build runs 217 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 117 over it, 2.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_item.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"850e983dc4790635fa0943520bfffa962b4340046942accbe96dba3838353f7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/binding_view.dart: FileTooLong \u2014 1050 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 550 over it, 2.10\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93d692910952e0f565d3928dca18998845571fc0c2330be41a0595f264e17b7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: agent_planner.planAgentGoal: FunctionTooLong \u2014 planAgentGoal runs 189 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 89 over it, 1.89\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827e73d4321400d95d119d9013a6a8da5a3d43f9c381875bbd2334837c5c834"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/login_screen.dart: FileTooLong \u2014 925 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 425 over it, 1.85\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":"frontend/lib/features/auth/screens/login_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72018707a990138e379bf29239fe203b62939961f5ceeb1e555ca58efb8bd194"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LoginPanel.build: MethodTooLong \u2014 build runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/login_screen.dart"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9efd0c8954ef2d59ff72df0017913e49d8baaa52c891a99d81cd54da39fbee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RewardShopPageState._openAddReward: MethodTooLong \u2014 _openAddReward runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e43a11e95279b29600ffbaf1df3a479c40de2c6cca3d5d73aba2cce1634bb3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _shared/guide_memory.ts: FileTooLong \u2014 879 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 379 over it, 1.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fe6d6ae37c6b97550a81c64d38685beb9c40177e778c00ab3663a9427587ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState._openGuidePanel: MethodTooLong \u2014 _openGuidePanel runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2905}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7bed94230aa7465034bd089efb4663db897ab2c053820d01339df98cf40288"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _QuickCreateDialogBodyState: ClassTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 230 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f79aa2acec57a4106fb0153d2249e32c1aeca4d1cd270b0fb12444d7328066"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _RewardShopPageState: ClassTooLong \u2014 622 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 222 over it, 1.56\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"db056ca43bd80dbd951c5cbab87bb0a075d322200c18c053b7839dade405bfd3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AppDrawerState.build: MethodTooLong \u2014 build runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7388234d4959163b4c5f1b6fcbaf52c697e36349a60bd6659a61c0fdb1d680f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MemoryCardState.build: MethodTooLong \u2014 build runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/memory_card.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"11739b30dab069922d034276094b9be56169258f650e70144b5c98ae89005934"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _HomePageState._generateUserProfile: MethodTooLong \u2014 _generateUserProfile runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3556}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35ce1d3059b455867f711a6d7f4a884d2da2ab3c8a2c734cc53b1cadd09f334"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/EarthOnlineCompetition.tsx: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 256 over it, 1.51\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08f079c1609126e80331b17e95f0bf652711a9012e7a68589a57aa69387eddd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuickCreateDialogBodyState.build: MethodTooLong \u2014 build runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4630c257990c64b87fa0e56578ccd0bcb3ed0a6b21c970e12d864a56169d10e2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XpCurveChart.build: MethodTooLong \u2014 build runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/stats/widgets/xp_curve_chart.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef65bc201515357fbc15f65bd24394dd1c16e35b0ece3c279e1bda4efaa56b41"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AppDrawerState._buildUserHeader: MethodTooLong \u2014 _buildUserHeader runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37fe690c1cbb84830e982774d438faf791017e08f9369e1b4fd3da08c66a2a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FeishuBindPanelState.build: MethodTooLong \u2014 build runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/settings/widgets/feishu_bind_panel.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd96b5323a4d7e326764e449f5b8c13b198ee77a5db7b4dc83d3964fbd7b0c19"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.Deno.serve(): FunctionTooLong \u2014 Deno.serve() runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29dfea9118b6f4603c9812a4399468cd1a7ff1ec8d65847c8860bfc61112b2b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EvermemosService: ClassTooLong \u2014 582 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 182 over it, 1.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"266f372350d61186d8d911cd8b82ac0cefb306c24a8d99ac886612c1362a3210"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/guide_panel_dialog.dart: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 217 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11319e14a7d232e338ddcdc3eebe63ba48df0432be781d1298323b11e488c527"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LoginScreenState.build: MethodTooLong \u2014 build runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/login_screen.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e34cbff71da67d26d88b323b4bdc43dc79d9b427591fceea141cd61fcbfdf63"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/evermemos_service.dart: FileTooLong \u2014 690 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: EvermemosService (139-951). The bar is 500 significant lines; this is 190 over it, 1.38\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a5c43d511860787b45deef1b3c7c0a09e02af597e7e5f9c19aa1444a8c604df"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EvermemosService.buildUserProfileFromMemories: MethodTooLong \u2014 buildUserProfileFromMemories runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"12f84e05261c642f3ff5cfe76bf9a109f226c166074223c09f6edb5f8a0f7168"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GuidePanelDialog.build: MethodTooLong \u2014 build runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ead4316844e6d097611d65ca476bd92d7bd2be34d22404d45ecd8857c251884"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: src/EverMemOSDemo.tsx: FileTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 182 over it, 1.36\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":"promo-video/src/EverMemOSDemo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"648b45fa5e755b1ce3767f11582684f7fdd88a15feab5d6319f46b3b75e729ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/quick_create_dialog_content.dart: FileTooLong \u2014 666 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: _QuickCreateDialogBodyState (53-913). The bar is 500 significant lines; this is 166 over it, 1.33\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b210b5f5d8873bfb85927f2cfb58d581dd6fb323e6483db00d67515200ead47f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/reward_shop_page.dart: FileTooLong \u2014 644 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _RewardShopPageState (33-885). The bar is 500 significant lines; this is 144 over it, 1.29\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0313ac1c0b9a17a505053d5bbc87586f7a36ff46cd6b2c6e8432c01f4dd66945"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MemoryController: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/controllers/memory_controller.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e6d5912ad93c50e276800ffb230f8f220dca4a9a122f73bf2d9b9c430fdb1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/app_drawer.dart: FileTooLong \u2014 630 significant lines (blank, comment-only and punctuation-only lines excluded), about 77% of them inside a single declaration: _AppDrawerState (52-728). The bar is 500 significant lines; this is 130 over it, 1.26\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e60940728aa969062d04c446c514e8cccf0114b2009d65278264af020eb3f37"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EarthOnlineCompetition.HeroSceneView: FunctionTooLong \u2014 HeroSceneView runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a48fd7440d183d9608410defa13c9afc5600609500881a9440b6cdb86f440f4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _AppDrawerState: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 88 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7af3da2c1e1203164c0a17b85ffbc25e91d703ad9e7f54046811b951efca91"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EverMemOSDemo.SidePanel: FunctionTooLong \u2014 SidePanel runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EverMemOSDemo.tsx"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"765031866bf06f300839fd1ab6aee7ab93da8fb426d499824cb81d201c5927dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.handleTaskCapture: FunctionTooLong \u2014 handleTaskCapture runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"55faccf2c5d3193eb6becd6924d854cbadb7244418ca53dd5f8872b0b4f77468"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/guide_service.dart: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1ab5a668a723fd140d17aaa1d4ad8e87413cd881e5c42333df754ddadc7f85"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GuideHeader.build: MethodTooLong \u2014 build runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd2302c65e1fa080d1319288489071890195a9f43419dd05d3a54ef05f9aa8c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuickCreateDialogBodyState._buildAttachToExistingMainPanel: MethodTooLong \u2014 _buildAttachToExistingMainPanel runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddd254a30b5c2158cdb142c9f602ef53d147635a092e6f9c3e67367f86304d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.createAgentStepCompleteHandler: FunctionTooLong \u2014 createAgentStepCompleteHandler runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"96401c7e78940f92d9a77dfcb2fd01d326d9a414ac5c4d9eed183c29c87e2f21"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuestController.simulateAIParsing: MethodTooLong \u2014 simulateAIParsing runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1958}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dc9bd2a33431ab9b142c935c9096779262d71a4c251e72d6bc29ca2371868b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _shared/agent_planner.ts: FileTooLong \u2014 561 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 61 over it, 1.12\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":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e44bbcedc328f06e12f599ed317e289a2165eca8d85367de12d46c0b14258de"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.createAgentStepCompleteHandler.\u003Creturned closure\u003E: FunctionTooLong \u2014 createAgentStepCompleteHandler.\u003Creturned closure\u003E runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb6174115fb14fc3c05ead42a3015879fe7f20fa9bc1ced584e7850aaa02157"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _GuideMessageBubbleState.build: MethodTooLong \u2014 build runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecd20370d713b8314dc6053137cb7381994d23f228071ccc28e75228fc00bc0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuestBoardState._buildEntry: MethodTooLong \u2014 _buildEntry runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_board.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"4483ba7e6f8be6005a7154eebaa358997b7b78057bbfb5a7e6fa43da95e2f120"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuestDialogShell.build: MethodTooLong \u2014 build runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/shared/widgets/quest_dialog_shell.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1570df8e13e7ef52622d189a434adca5df28a89cefc503490043152d59996fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NightReflectionDialogState.build: MethodTooLong \u2014 build runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/night_reflection_dialog.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"202378574f7d970089a02b8f92fb9f7709d12aba0befbd18b73d5098c96e267b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _shared/guide_ai.ts: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 43 over it, 1.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4f8a71363b10355623a633be583687c8fe4b4f822958ed9476d565d20a7393"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: login.html.draw: FunctionTooLong \u2014 draw runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"745960ae2e3cca2b5c08052d4a86a5c26c60b4e30b0f61a168b8d44a05a42096"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BindingViewState.build: MethodTooLong \u2014 build runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4f88163a9b04d947ff10f47be262c46c2cb8f13b2930d7e0a58c20b7117463"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RewardController: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83fe2bf42681995f4e04c557e148cb0e5a4418f409873675a62a8f7e3a066d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CoachMarksOverlayState._buildBubble: MethodTooLong \u2014 _buildBubble runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/shared/widgets/coach_marks_overlay.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6034299743dc8673b17fb1725265e7fab018713ea75e3ca9c0c619b2266a14"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: EarthOnlinePromo.ProgressionVisual: FunctionTooLong \u2014 ProgressionVisual runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"1038f6320afb7a3a46764212d40ba615e17368f5bfb91fb4115b65552543db70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: _shared/guide_engine.ts: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0bf48e055f02b4a66079113d58c810317b9e870641700b335228bc193fed33"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (57 shared lines): frontend/lib/features/reward/screens/inventory_page.dart:120-231 | frontend/lib/features/reward/screens/inventory_page.dart:233-337 \u2014 These two members are variants of one another: 57 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e1edeb691d7c3a34546867f9037859ef96af40c4516c72edb63a2c9f9e3170"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (54 shared lines): frontend/lib/features/quest/screens/home_page.dart:1871-2169 | frontend/lib/features/quest/screens/home_page.dart:2668-2779 \u2014 These two members are variants of one another: 54 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1871}}}],"partialFingerprints":{"codehealthFindingId/v1":"370294239e006d316b80611f07483cc60aff169258d45e467624f19e6fa6505d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): frontend/lib/features/quest/controllers/guide_controller.dart:1115-1121 | frontend/lib/features/quest/controllers/quest_controller.dart:165-170 | frontend/lib/features/quest/screens/life_diary_page.dart:37-42 | frontend/lib/features/quest/widgets/quest_edit_sheet.dart:53-58 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"601ab843a2f0f04b974c51f1b6dfe22ae6d010d310e962ca5c4a13fc24492f51"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): frontend/lib/features/stats/widgets/completion_chart.dart:31-108 | frontend/lib/features/stats/widgets/streak_calendar.dart:22-110 | frontend/lib/features/stats/widgets/tier_pie_chart.dart:23-90 | frontend/lib/features/stats/widgets/xp_curve_chart.dart:27-231 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/stats/widgets/completion_chart.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"139fc4298dc74eb038df059dd4827421f23033a925811e7ba9136fee7ff9f096"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (98 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:375-472 | frontend/lib/features/quest/screens/home_page.dart:2781-2886 \u2014 These two members are one piece of code written twice and then edited apart: 98 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f3a425d2bbff7f845006deead83ad8ac9595b682fc3e2370710ed19a6fed5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1926-2012 | frontend/lib/features/quest/screens/home_page.dart:1278-1384 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e2e880315a04b273929fb9b20eeea5451340cb422a3b9d7da2844d018e1279"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (89 corresponding lines): frontend/lib/core/widgets/app_drawer.dart:590-678 | frontend/lib/features/quest/screens/home_page.dart:350-445 \u2014 These two members are one piece of code written twice and then edited apart: 89 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c0119e985006f0fa80fd5499bd81ead9a7ee5da1ad5f3d58ccb9a953b00b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (69 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1726-1794 | frontend/lib/features/quest/screens/home_page.dart:510-580 \u2014 These two members are one piece of code written twice and then edited apart: 69 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c548013e306abbedfb71a51e926e65aed3e15e2fef13f73c6896981a33ca50c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (48 corresponding lines): frontend/lib/features/quest/widgets/quest_board_fab.dart:177-231 | frontend/lib/features/quest/widgets/quick_add_bar.dart:402-449 \u2014 These two members are one piece of code written twice and then edited apart: 48 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_board_fab.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"87826792eef22707676c91c58bd13623a97ba8fa1c3dca5763967bc44d21e30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:634-686 | frontend/lib/features/quest/screens/home_page.dart:724-778 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e07777f8b79c8bcd87c1dbd25f8cf4fab7da713e3355c32f91ca4d54a0011f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): frontend/lib/features/quest/widgets/quest_board_fab.dart:83-167 | frontend/lib/features/quest/widgets/quick_add_bar.dart:337-393 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_board_fab.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d19954d2ed8184b500c94e1d8cd3473e0dfc4a6b1ce79596cbb9101859d3beab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:963-1013 | frontend/lib/features/quest/screens/home_page.dart:628-682 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"447ad1c3b1f24593a7311f7ac73096e04de9966cbef9f34b7bbb587e200ea5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1495-1538 | frontend/lib/features/quest/screens/home_page.dart:1179-1228 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5c167b3920a16c22418026d6c65082d7dfe87b34829578a03783dd691d9610"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1540-1583 | frontend/lib/features/quest/screens/home_page.dart:1230-1275 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"457abefd319d11daa02b2138a9317a8afec2b37fce3f56e66be11f26cc0d83ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): frontend/lib/features/quest/widgets/home_settings_widgets.dart:94-153 | frontend/lib/features/quest/widgets/home_settings_widgets.dart:244-313 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/home_settings_widgets.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e67e7069a69958a10822c3afd9a6c192e77176b017ba9dba711c8fa8f0c5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): frontend/lib/features/memory/screens/memory_detail_page.dart:259-294 | frontend/lib/features/memory/widgets/memory_card.dart:287-331 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"c875b853cb3bd37031cf495ceaeafad4d49d70159570116955a64195e8893df5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): frontend/lib/features/quest/controllers/quest_controller.dart:1724-1770 | frontend/lib/features/quest/controllers/quest_controller.dart:1772-1817 | frontend/lib/features/quest/controllers/quest_controller.dart:1875-1910 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbadf7949fd6b29c1260e1db5cf3ace23264e7f1929bd1a2ffc4e91ed0b014f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:898-939 | frontend/lib/features/quest/screens/home_page.dart:583-624 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"664a8cd17486cdab08d4d713c867d3a344ee0340b644cb136ce7413f7e0ff15a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): frontend/lib/features/binding/screens/binding_view.dart:1240-1295 | frontend/lib/features/binding/screens/binding_view.dart:1349-1391 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacc43e46341e7873bf18253c7e9c86194770df2e07d27bc59308add93cbec17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): frontend/lib/shared/widgets/quest_dialog_shell.dart:357-388 | frontend/lib/shared/widgets/quest_dialog_shell.dart:405-439 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/shared/widgets/quest_dialog_shell.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a70b4d65038d0ca87b7a9ed90938212ecbc6f9c5e3a9d06c642c48bcaa56b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:241-265 | frontend/lib/features/quest/screens/home_page.dart:246-268 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3696301d0a6c5f9d858a541eb2cd290fae00aafc464ba4ca79f664c9c3d6d39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:613-632 | frontend/lib/features/quest/screens/home_page.dart:703-722 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd02717f24e688ee8a60bc9b61363251df65eddea80f756efdd3650946ba016"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): frontend/lib/features/reward/screens/reward_shop_page.dart:562-585 | frontend/lib/features/reward/screens/reward_shop_page.dart:587-617 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5887a80dd9c26222303248b8869f26b70fe7d9836a64039d7ef9dc2ad4648cd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): frontend/lib/features/auth/widgets/forest_particles.dart:288-310 | frontend/lib/features/auth/widgets/forest_particles.dart:347-368 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_particles.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c30ba413908c7145fec460283d5448313ce88c5b87dc346771d1b465eb8e2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): frontend/lib/features/auth/widgets/forest_atmosphere.dart:78-108 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:111-142 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:145-180 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"264ab2819c12cfcf3ad579ccd84e5dd60ae010e38698bebfa088cd4619c6cbcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1690-1724 | frontend/lib/features/quest/screens/home_page.dart:477-508 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab3d274d76e7b78f59fb8e66d784a3b005c1605bd31130cd5948f60f587ff0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): frontend/lib/features/achievement/screens/achievement_page.dart:200-231 | frontend/lib/features/stats/screens/stats_page.dart:255-284 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/achievement/screens/achievement_page.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa069419174d60b85bac85aec8ba20cd26f877e58c46703a9104755215540300"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): frontend/lib/features/quest/controllers/quest_controller.dart:846-872 | frontend/lib/features/quest/controllers/quest_controller.dart:1411-1434 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"750ca826db5a04512c52e72a23edff91cf7c73ea1584f48b6bab27efd1aa6a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): frontend/lib/core/widgets/app_drawer.dart:837-868 | frontend/lib/features/binding/screens/binding_view.dart:1309-1333 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"15366d82cbf9973a72eb434f316db785900d98ae51e0c0290286d929c0747dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): frontend/lib/core/services/guide_service.dart:750-774 | frontend/lib/features/quest/controllers/guide_controller.dart:2103-2121 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"0648cb330048e2bbc965a9fab0550fc229b49e4c390813bd13200131a334f963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart:84-97 | frontend/lib/shared/widgets/celebration_overlay.dart:51-73 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f0dbc28a4b062f05cdbe521b52b60b3f3372ba791a81f07c528cd53b0c24ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:577-592 | frontend/lib/features/quest/screens/home_page.dart:685-700 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"533454b30272fab54611027fd5eb28583227bcaf2a7e81c9d3288d48cd5b7eeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:532-553 | frontend/lib/features/quest/screens/home_page.dart:797-819 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"271e33e8b9519a533fc9ee2be93b3cb94baa60f03741e14256ed34772eac16b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): frontend/lib/core/services/agent_service.dart:128-147 | frontend/lib/core/services/agent_service.dart:205-230 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5230611f2cecab7d4bb2158727029aac8178e616b84756aec8765d59463b53e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): frontend/lib/features/quest/controllers/quest_controller.dart:1647-1662 | frontend/lib/features/quest/controllers/quest_controller.dart:1664-1678 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d95268ea0c04ecb2efa899984d00d1cffd2f6c2d850bed77ed55605ec06a5c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): frontend/lib/features/quest/controllers/quest_controller.dart:1912-1936 | frontend/lib/features/quest/controllers/quest_controller.dart:1938-1955 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1912}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5da289f9e73a7693740e296df15476b2467a7c01ce5ad347106d8401dd7069a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1345-1363 | frontend/lib/features/quest/screens/home_page.dart:1809-1826 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0e08184ce245b0e156f82b77e56e46dc4cba700f678620636c47157d9a5728"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): frontend/lib/features/auth/screens/forest_login_page.dart:124-143 | frontend/lib/features/auth/screens/forest_login_web_page_web.dart:125-150 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/forest_login_page.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca4da07f7b16a3ac378c06813780290144b97756e75f91d9fbbe55791208e4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): frontend/lib/features/reward/screens/inventory_page.dart:58-76 | frontend/lib/features/reward/screens/inventory_page.dart:78-98 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cacf94df9a43d197f5354dc7c4dcfd7a6c89c189bcce341e74ce7978af096859"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): frontend/lib/features/auth/widgets/forest_particles.dart:324-331 | frontend/lib/features/auth/widgets/forest_particles.dart:381-391 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_particles.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4786fc0799b5577a935f8134d889d73c3ca48ac4f16cf4f56d429089640371a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): frontend/lib/features/quest/screens/home_page.dart:271-287 | frontend/lib/features/quest/screens/home_page.dart:289-301 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"24307bc1de6ba0b2c637e0aed3e230cbb82bb97846948f1b543ea586353e84b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): frontend/lib/core/services/guide_service.dart:564-574 | frontend/lib/core/services/guide_service.dart:576-590 | frontend/lib/core/services/guide_service.dart:611-621 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3cdafa8f265eea336a1f962506cc1f9013b2dbd1c5bd0850a481a89d22747f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): frontend/lib/features/quest/services/agent_run_service.dart:78-89 | frontend/lib/features/quest/services/agent_run_service.dart:91-102 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/services/agent_run_service.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b13ef09e70de9f3e72319f2b2361d2f81d2140fe0d8d7bb267755c9478c892"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1371-1392 | frontend/lib/features/quest/controllers/guide_controller.dart:1394-1408 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"467937a7d69df26e81508d3c46655ae4c99dd004ee3b2c87bce4feabbf5d2085"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): frontend/lib/core/services/evermemos_service.dart:720-735 | frontend/lib/core/services/evermemos_service.dart:737-752 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8e85bcc659e5347c4168eb823178813d465db02368699935b68b0c1f006467"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): frontend/lib/features/auth/screens/forest_login_page.dart:145-156 | frontend/lib/features/auth/screens/forest_login_web_page_web.dart:152-169 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/forest_login_page.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0603c4c8c678d2ff2d5d2189d526b02e900494b6cd3de6cc1e6e4bd1c99f30e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): frontend/lib/features/auth/screens/forest_login_page.dart:173-190 | frontend/lib/features/auth/screens/forest_login_web_page_web.dart:177-194 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/forest_login_page.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c2947cc26cfa38e34dfab9d917ec087d2c5756db6756ec3b329e41159de13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1585-1599 | frontend/lib/features/quest/controllers/guide_controller.dart:1601-1615 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1585}}}],"partialFingerprints":{"codehealthFindingId/v1":"83080f0957888444f93e7553029c290f92fd11a6ae5a8a157c4cbf52bc44e597"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): frontend/lib/features/memory/screens/memory_detail_page.dart:343-346 | frontend/lib/features/quest/screens/boost_history_page.dart:200-203 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0f9e7d52c4e25f09941dcf5b22c219b8e68ca37164ab4f705b4dcbb98cffb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 10\u002B corresponding lines): frontend/lib/core/services/preferences_service.dart:162-171 | frontend/lib/core/services/preferences_service.dart:182-191 | frontend/lib/core/services/preferences_service.dart:202-211 | frontend/lib/core/services/preferences_service.dart:222-231 | frontend/lib/core/services/preferences_service.dart:242-251 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/preferences_service.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbffa01fe0f349f314f99489e5b18c88a3b4661c5982849400f69b9a121eed1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): frontend/lib/core/services/local_agent_runtime_service.dart:304-318 | frontend/lib/core/services/local_agent_runtime_service.dart:320-337 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/local_agent_runtime_service.dart"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada55d84ac99db431650f37382dcae5564c145469226e980b797f7fb4b0aec16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): frontend/lib/features/memory/controllers/memory_controller.dart:87-100 | frontend/lib/features/quest/widgets/quick_add_bar.dart:71-82 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/controllers/memory_controller.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29d010a7677c1400137fcfbb41bf9fb5be848b6d1331b64785fd52ab4c3d3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): frontend/lib/features/auth/widgets/forest_atmosphere.dart:572-586 | frontend/lib/features/auth/widgets/forest_particles.dart:141-154 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfe0da2dfe77d1fa1f117981bea1c13febb1ecde0dfcb818ae523e38b0e2aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): frontend/lib/features/quest/models/quest_node.dart:30-35 | frontend/lib/features/reward/models/reward.dart:60-65 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/models/quest_node.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ea0f7a65b4ca637e0428173a5c32b770b0b3f02aa6ea5076dc534ba2434a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): frontend/lib/features/quest/controllers/guide_controller.dart:1068-1072 | frontend/lib/features/quest/models/agent_step.dart:70-74 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3b47c04972f5dc56b573fa6ce9014cfd61c7536edfd50a32e52d25dbc3d04b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): frontend/lib/features/reward/screens/inventory_page.dart:32-39 | frontend/lib/features/reward/screens/reward_shop_page.dart:38-47 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"012841686b6ba329453af2788883e5e4b5f8178f761aa5189b2c3038f10692c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): frontend/lib/features/quest/widgets/guide_panel_dialog.dart:795-798 | frontend/lib/features/quest/widgets/quick_create_dialog_content.dart:154-157 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8214081a149f2630dc64c1a2048ae401d5ce28a8d21445aca4613340fa19975"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): frontend/lib/features/auth/widgets/forest_atmosphere.dart:17-24 | frontend/lib/features/auth/widgets/forest_particles.dart:21-29 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b16225f37525981b7e93ba81f940a7b70d0a9a3d04648b15fbfea6925a8720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): frontend/lib/features/quest/widgets/quest_edit_sheet.dart:66-69 | frontend/lib/features/quest/widgets/quick_create_dialog_content.dart:123-126 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f09814f422ecd8528567a5ad6ad952dcf7a7c41bc9e9850c03f06db86f4064a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): frontend/lib/core/services/guide_service.dart:521-525 | frontend/lib/core/services/preferences_service.dart:253-257 | frontend/lib/features/profile/controllers/user_profile_controller.dart:125-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce539b43514f5be01a29da1ed4df655c1776a2ca3d92b8adf8edd0c91fd140d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201346 lines \u00D7 2): frontend/lib/features/quest/widgets/quest_board_fab.dart:186-231 | frontend/lib/features/quest/widgets/quick_add_bar.dart:409-449 \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 \u0060frontend/lib/features/quest/widgets/quest_board_fab.dart:186\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_board_fab.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"daabe729768ae0b81c43e66fc44e8d451d8c4a08c773e37623ca47448b3f07f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35\u201338 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:979-1013 | frontend/lib/features/quest/screens/home_page.dart:645-682 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:979\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8501c1eded16c45ea7540d922103905b3f9a2fe44f40d59e6ff8de877b843b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): frontend/lib/core/widgets/app_drawer.dart:630-663 | frontend/lib/features/quest/screens/home_page.dart:387-420 \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 \u0060frontend/lib/core/widgets/app_drawer.dart:630\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:422\u0060 calls \u0060of\u0060, \u0060pop\u0060, \u0060trim\u0060 and \u0060frontend/lib/core/widgets/app_drawer.dart:664\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":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"190f19707cb84e8356a223b9ab67c71b12fb06bc12a92fef5f2306ec12ad4489"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201334 lines \u00D7 2): frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart:309-338 | frontend/lib/shared/widgets/celebration_overlay.dart:129-162 \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":"frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b0fd0b0105ad6881cae737cda707fa8ad779d1274b7f86101a9fa24e3f66dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): frontend/lib/features/reward/screens/inventory_page.dart:121-148 | frontend/lib/features/reward/screens/inventory_page.dart:234-262 \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 \u0060frontend/lib/features/reward/screens/inventory_page.dart:121\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eed1a2bbfa18da47f98516f9d712c0418070d4a8599ba547851a9d719e82a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (68\u201369 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1128-1195 | frontend/lib/features/quest/screens/home_page.dart:1704-1772 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2eabadd5fa9d700bf389166bf1e6d78904c95d859cb3301820816311a2f4b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 3): frontend/lib/features/quest/screens/home_page.dart:2676-2702 | frontend/lib/features/quest/screens/home_page.dart:2711-2736 | frontend/lib/features/quest/screens/home_page.dart:2742-2768 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/screens/home_page.dart:2676\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:2709\u0060 calls \u0060_handleGuideRedeemReward\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:2740\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b2b85253ac71ad1c05dfa67085599dc87e02db381576eeff79be4bde12e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1759-1783 | frontend/lib/features/quest/screens/home_page.dart:543-569 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1759\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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dead13b1cb7884302162c791b21a862739affe03ab1deea7c7fdf9a59852158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): frontend/lib/features/quest/controllers/quest_controller.dart:962-986 | frontend/lib/features/quest/controllers/quest_controller.dart:1052-1076 \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 \u0060frontend/lib/features/quest/controllers/quest_controller.dart:962\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b4749ef1e5239a92f11fc805fba9fdc0db2a2e63f363ebe8acbec9ab0a2bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:1877-1901 | frontend/lib/features/quest/screens/home_page.dart:2013-2037 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:1877\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"574b170cf1b63cac4a0e0fa13b4dded6ca5e30d6f0f3f896f4fdf21665e4d620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): frontend/lib/features/settings/widgets/feishu_bind_panel.dart:161-184 | frontend/lib/features/settings/widgets/feishu_bind_panel.dart:222-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/settings/widgets/feishu_bind_panel.dart:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/settings/widgets/feishu_bind_panel.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"97dbb4ccfde1987db7badfddf7a412111c5a32346aa0265e42108ad24846cfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:90-111 | frontend/lib/features/memory/widgets/memory_card.dart:158-178 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/memory/screens/memory_detail_page.dart:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac30fbd26f21ef62dce2a9c6836b0b98b72af926e8a36c1fa7114e5b92e7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1728-1749 | frontend/lib/features/quest/screens/home_page.dart:512-533 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1728\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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1728}}}],"partialFingerprints":{"codehealthFindingId/v1":"737fdc0e944c47a5c28c4f1f9dcd007fe4f43a4c84296db6fd51a9db89fcca1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:2176-2197 | frontend/lib/features/quest/screens/home_page.dart:2350-2371 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:2176\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2176}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4e09736dc364ddc6a3b9816d931ed61539426afb92413c7a564690529e2eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:259-279 | frontend/lib/features/memory/widgets/memory_card.dart:287-307 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/memory/screens/memory_detail_page.dart:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46f35792a19f8892d6c538ad2180ad1dd7d590806bba65dbb55654ac0a1d6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:388-408 | frontend/lib/features/quest/screens/home_page.dart:2799-2819 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:388\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:2822\u0060 calls \u0060_performAgentNavigation\u0060 and \u0060frontend/lib/features/quest/controllers/guide_controller.dart:409\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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c43b052b0a4cd9e2efd7f31be3626442b8a0aea4f11d6cbe216e9876cc08ead"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): frontend/lib/features/quest/controllers/quest_controller.dart:1727-1747 | frontend/lib/features/quest/controllers/quest_controller.dart:1775-1795 \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 \u0060frontend/lib/features/quest/controllers/quest_controller.dart:1727\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1727}}}],"partialFingerprints":{"codehealthFindingId/v1":"db985e1a8968ba6ceed920e06410a6f68937b8f2468903d38af53a8cf877ae1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): frontend/lib/features/quest/widgets/agent_approval_card.dart:20-40 | frontend/lib/features/quest/widgets/guide_panel_dialog.dart:479-499 \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 \u0060frontend/lib/features/quest/widgets/agent_approval_card.dart:20\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":"frontend/lib/features/quest/widgets/agent_approval_card.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bdfa2f48c29207ffdfc6b5a7fbf4d83fe4a15295821824163fdd05f973e42d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_atmosphere.dart:290-309 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:317-336 \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 \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:290\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"0097bc83e763071d3fc18425e6728276def5476bc5f71581fbb5592187e11c4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:322-341 | frontend/lib/features/memory/widgets/memory_card.dart:383-402 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d6ce56e28d23465eb43b3723e9cc2eba741d4e78aaa012a1d7d72877e20ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1541-1559 | frontend/lib/features/quest/screens/home_page.dart:1231-1249 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1541\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d56792658c8f12d4f4afa50b0d34f6279a161bc101b6a08337e228dc16e6e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): frontend/lib/features/quest/widgets/quick_create_dialog_content.dart:462-480 | frontend/lib/features/quest/widgets/quick_create_dialog_content.dart:525-543 \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":"frontend/lib/features/quest/widgets/quick_create_dialog_content.dart"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87d75df8954ed2865367b78cc6c7a0f75578bd2af82f8de67f651a3bfeff2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): frontend/lib/features/quest/screens/home_page.dart:1879-1896 | frontend/lib/features/quest/screens/home_page.dart:1916-1933 | frontend/lib/features/quest/screens/home_page.dart:2015-2032 | frontend/lib/features/quest/screens/home_page.dart:2107-2124 | frontend/lib/features/quest/screens/home_page.dart:2391-2408 | frontend/lib/features/quest/screens/home_page.dart:2676-2693 | frontend/lib/features/quest/screens/home_page.dart:2711-2728 | frontend/lib/features/quest/screens/home_page.dart:2742-2759 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/screens/home_page.dart:1879\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:2709\u0060 calls \u0060_handleGuideRedeemReward\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:2740\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1879}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef35bab516e7edf0813f7aa381ffa055904334cb5c060b0fcb7b5d9196665a01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 4): frontend/lib/features/auth/widgets/forest_atmosphere.dart:161-178 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:292-309 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:319-336 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:346-363 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:161\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:159\u0060 calls \u0060Opacity\u0060, \u0060clamp\u0060 and \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:291\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":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0459f171c8bc632304c6dd373d702f9cdece5a5f380ef0c13753a26e4b545a65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): frontend/lib/core/services/agent_service.dart:165-182 | frontend/lib/core/services/agent_service.dart:186-203 \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 \u0060frontend/lib/core/services/agent_service.dart:165\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83eb55c2498d91d5375095e48caf2d2f5d6269106253eb33467bbc312a2c1eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:608-622 | frontend/lib/features/binding/screens/binding_view.dart:1129-1146 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:608\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"35efc8f3ee5f6a39d8a57bf0065c35403b65b4cd517d147857e8d27d34defe40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:653-670 | frontend/lib/features/quest/screens/home_page.dart:745-762 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:653\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fdfc563de4d67612f634995626aafed571cd9fd315e30fc308a5bb897c59b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:39-55 | frontend/lib/features/memory/screens/memory_page.dart:55-71 \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 \u0060frontend/lib/features/memory/screens/memory_detail_page.dart:39\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb7bbe35956b1324e5488703b78b60657ae5b2482f68cd9871ab7bab0f1731a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): frontend/lib/features/reward/screens/inventory_page.dart:185-200 | frontend/lib/features/reward/screens/inventory_page.dart:305-321 \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 \u0060frontend/lib/features/reward/screens/inventory_page.dart:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"186f8ccd1717d88ff0adea27252ce6146bc0f44fb2b7cc8b0871d800d54d0c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): frontend/lib/features/quest/screens/home_page.dart:1300-1315 | frontend/lib/features/quest/screens/home_page.dart:1329-1344 | frontend/lib/features/quest/screens/home_page.dart:1356-1371 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/screens/home_page.dart:1300\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:1327\u0060 calls \u0060buyReward\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:1354\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b4e7320c5afcbc58edb5560d00f2c4abc471f05702d9a036d90d702d729d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): frontend/lib/features/stats/widgets/completion_chart.dart:48-63 | frontend/lib/features/stats/widgets/streak_calendar.dart:43-58 | frontend/lib/features/stats/widgets/xp_curve_chart.dart:48-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 \u0060frontend/lib/features/stats/widgets/completion_chart.dart:48\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/stats/widgets/completion_chart.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"f363bc355ed2b1c775bd93a1fd54f8cd6581cb7c6b200b5efdb8ea33be9a4730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:624-639 | frontend/lib/features/binding/screens/binding_view.dart:1148-1163 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:624\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a7b698de5702b3ace3144c0cb9c07217cd242bd4846dce7c8b71675ca6ac42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): frontend/lib/features/quest/controllers/quest_controller.dart:851-866 | frontend/lib/features/quest/controllers/quest_controller.dart:1414-1428 \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 \u0060frontend/lib/features/quest/controllers/quest_controller.dart:851\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6b35e238c284cb5dab7d7aef28e9fca2366bc40134df66e17deb33b4c8961c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): frontend/lib/features/quest/widgets/agent_approval_card.dart:32-47 | frontend/lib/features/quest/widgets/agent_step_timeline.dart:22-36 \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 \u0060frontend/lib/features/quest/widgets/agent_approval_card.dart:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/agent_approval_card.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f390219388eaf798a2eda3350a1ff079f170a7d3ddf951e3615a4e949f7416c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): frontend/lib/features/quest/widgets/home_settings_widgets.dart:196-211 | frontend/lib/features/quest/widgets/home_settings_widgets.dart:285-300 \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 \u0060frontend/lib/features/quest/widgets/home_settings_widgets.dart:196\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/home_settings_widgets.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"2628c1c94cab48199bab55efe168d449abf77bdf19c7f843b45b211bca2fcf4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): frontend/lib/features/stats/widgets/streak_calendar.dart:36-50 | frontend/lib/features/stats/widgets/tier_pie_chart.dart:45-59 | frontend/lib/features/stats/widgets/xp_curve_chart.dart:41-55 \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 \u0060frontend/lib/features/stats/widgets/streak_calendar.dart:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/stats/widgets/streak_calendar.dart:52\u0060 calls \u0060Row\u0060 and \u0060frontend/lib/features/stats/widgets/tier_pie_chart.dart:60\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":"frontend/lib/features/stats/widgets/streak_calendar.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf97eadc49428cb79855fd4d13be3827a6a5722a570adbaad947ce9bf2c5bf1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:964-977 | frontend/lib/features/quest/screens/home_page.dart:629-643 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:964\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"081a0244aa8f1f167f8b8eff43b1503b55ea3cd3ca9b673772124121d8ce681c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1524-1538 | frontend/lib/features/quest/screens/home_page.dart:1214-1228 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1524\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa0568410d152b726fc931fab2e0aa85cf84c68a659bd12bd725ddd3387e716"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): frontend/lib/features/quest/controllers/quest_controller.dart:1757-1770 | frontend/lib/features/quest/controllers/quest_controller.dart:1804-1817 | frontend/lib/features/quest/controllers/quest_controller.dart:1897-1910 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/quest_controller.dart:1757\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"e574fb082181adb0be36537c59ecca74bad0fefc59c1c6dcc4cf4417f9f6d56d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_atmosphere.dart:252-264 | frontend/lib/features/auth/widgets/soft_auth_background.dart:39-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:252\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"264770653fdd109ff8c349a64579a070ffc8cceaafcc1302f46baebd4b39c66f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:1273-1286 | frontend/lib/features/binding/screens/binding_view.dart:1371-1384 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:1273\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"903c1b202437ebdf61e16139a7e4b3bd0100cb40bbd799016edff03c6faed014"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): frontend/lib/features/memory/widgets/memory_filter_sheet.dart:73-86 | frontend/lib/features/memory/widgets/memory_filter_sheet.dart:94-106 \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 \u0060frontend/lib/features/memory/widgets/memory_filter_sheet.dart:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/memory_filter_sheet.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9806a067481411773b0bb5afe80792ad28745aa3c3b8025d519148e8f4cfc05c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1509-1521 | frontend/lib/features/quest/screens/home_page.dart:1198-1211 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1509\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82ba6c255349fde9bb497d09d53c25738b453b37274e4825356f8abba418a0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:1913-1926 | frontend/lib/features/quest/screens/home_page.dart:2203-2216 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:1913\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cec3f75f3470f346545f186f56e20a1f2de1dd0de95bb189eb01cebc6dd277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:1991-2004 | frontend/lib/features/quest/screens/home_page.dart:2266-2279 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:1991\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1991}}}],"partialFingerprints":{"codehealthFindingId/v1":"deaa05a89992d5b55523b63bc814b00af3967a94df91b2cc52993f7dcb309086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): frontend/lib/features/quest/screens/life_diary_page.dart:390-403 | frontend/lib/features/stats/widgets/highlight_cards.dart:113-126 \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 \u0060frontend/lib/features/quest/screens/life_diary_page.dart:390\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/life_diary_page.dart"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"45123437108728eb4a7f529f4fc83cc5ed8c3b21ebcc9d7132af8ab90ae4750a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): frontend/lib/features/quest/widgets/portrait_insight_chart.dart:425-438 | frontend/lib/features/stats/widgets/highlight_cards.dart:113-126 \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 \u0060frontend/lib/features/quest/widgets/portrait_insight_chart.dart:425\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/portrait_insight_chart.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf6ee3c50840221d2d1caf7c52c919e7b1f5207f6157ecf430015492b0de26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): frontend/lib/features/quest/widgets/quest_edit_sheet.dart:268-281 | frontend/lib/features/quest/widgets/quest_edit_sheet.dart:315-327 \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 \u0060frontend/lib/features/quest/widgets/quest_edit_sheet.dart:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"5769e3a6b137959e8b710faa827f6901fac6f3927a0bd765c5514d5a00ab714f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 5): frontend/lib/features/quest/screens/home_page.dart:1996-2008 | frontend/lib/features/quest/screens/home_page.dart:2087-2098 | frontend/lib/features/quest/screens/home_page.dart:2153-2164 | frontend/lib/features/quest/screens/home_page.dart:2271-2283 | frontend/lib/features/quest/screens/home_page.dart:2444-2455 \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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/screens/home_page.dart:1996\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:2010\u0060 calls \u0060findGuideTaskById\u0060, \u0060findGuideTargetTask\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:2166\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1996}}}],"partialFingerprints":{"codehealthFindingId/v1":"89cfd5443ea70eec2b0c505d0027faef6036160ac4507e2ba226a9e6300e82ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): frontend/lib/core/services/evermemos_service.dart:243-255 | frontend/lib/core/services/evermemos_service.dart:292-304 \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":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8b245fa752997617e4e8c70d7b56df2d1cf95dc25a651dc7fe2629201be888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:339-351 | frontend/lib/features/binding/screens/binding_view.dart:367-379 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:339\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c6310a23ce06b6b7a9bd9b5b50b80c80eac5a9d4b4c3c5c6d966fc1190c0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:917-929 | frontend/lib/features/binding/screens/binding_view.dart:998-1010 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:917\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c890ce0a77beea06be0c4a9744a51375da9ad8df08bb698fcb7211f0d7adb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): frontend/lib/features/quest/controllers/quest_controller.dart:1539-1548 | frontend/lib/features/quest/controllers/quest_controller.dart:1822-1834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1539}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcfc977935551c20550a4091ffbf7ae548c94066d6fe3c3e67703cfc39480b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): frontend/lib/features/quest/widgets/quest_board_fab.dart:83-95 | frontend/lib/features/quest/widgets/quick_add_bar.dart:337-347 \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 \u0060frontend/lib/features/quest/widgets/quest_board_fab.dart:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_board_fab.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9755d27872bb6cb9ac137b1c4949482e06d397610cab6920683729dbbf2c209a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): frontend/lib/features/reward/screens/inventory_page.dart:165-177 | frontend/lib/features/reward/screens/inventory_page.dart:285-297 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/reward/screens/inventory_page.dart:165\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"0616025c604dfd9ffd1a4e140011f75b57a154035d6cb17ece204c666f87df81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): frontend/lib/features/memory/screens/memory_page.dart:134-145 | frontend/lib/features/memory/widgets/memory_card.dart:51-62 | frontend/lib/features/memory/widgets/portrait_timeline.dart:25-36 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_page.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"78364c1c1322239a100c6e2fd2ecf5302bb3729ebbcbf6aa028b9eacd7b5ab2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): frontend/lib/features/reward/screens/inventory_page.dart:129-140 | frontend/lib/features/reward/screens/inventory_page.dart:242-253 | frontend/lib/features/reward/screens/reward_shop_page.dart:775-786 \u2014 before extracting anything, compare \u0060frontend/lib/features/reward/screens/inventory_page.dart\u0060 and \u0060frontend/lib/features/reward/screens/reward_shop_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c7283ff9b2a232e092b878abd1a1362ac6d2be674a28cbd0b9a4490806b1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/core/services/evermemos_service.dart:721-732 | frontend/lib/core/services/evermemos_service.dart:738-749 \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 \u0060frontend/lib/core/services/evermemos_service.dart:721\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":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1244816717cbe7654ed7aee93853e4edd0acf4c50ff22136b991ce627557e91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/core/services/guide_service.dart:704-715 | frontend/lib/core/services/guide_service.dart:720-731 \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 \u0060frontend/lib/core/services/guide_service.dart:704\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"e781f787428b99a4c0a737695546e7dd234aa565699a8d2d8bc4fd590b8e82d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 2): frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart:85-91 | frontend/lib/shared/widgets/celebration_overlay.dart:52-63 \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 \u0060frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart:85\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":"frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fcdedca0156f3e595b363cc9341943ca98aa6d9c175801f885a2abafd9a6e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/auth/screens/login_screen.dart:944-955 | frontend/lib/features/quest/widgets/home_settings_widgets.dart:99-110 \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":"frontend/lib/features/auth/screens/login_screen.dart"},"region":{"startLine":944}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e0fff6613129fc8f2472236c1d4ea78290b1b15cc5448960f13f3f9f0390f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_atmosphere.dart:85-96 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:157-168 \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 \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:85\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:97\u0060 calls \u0060Color\u0060, \u0060withValues\u0060 and \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:169\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":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64f67879aa434c3c5d3e218d072b16b7917f9f297a6e16354e168c1db6c0b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_atmosphere.dart:84-95 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:117-128 \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 \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:129\u0060 calls \u0060Color\u0060 and \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:96\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":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29179e2abb671651c67e5f8715eaa68e0b7129a68701fc85c8f4da76b497587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:786-797 | frontend/lib/features/quest/controllers/guide_controller.dart:847-858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:786\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ea5170e1cdcfa432e602a2b31305c76f963e37e7c7303c70a90d2e42f21f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:899-910 | frontend/lib/features/quest/screens/home_page.dart:584-595 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:899\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"796b5e0c11ad525342436fba6d055c5f09efc5482722e4ce51c4af7692d79454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1372-1383 | frontend/lib/features/quest/controllers/guide_controller.dart:1395-1406 \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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d905e3c2b61e6245863cc719931b11c927131b9675049374e8dcbd40f9cd94d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/controllers/quest_controller.dart:932-943 | frontend/lib/features/quest/controllers/quest_controller.dart:995-1006 \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 \u0060frontend/lib/features/quest/controllers/quest_controller.dart:932\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/quest/controllers/quest_controller.dart:1008\u0060 calls \u0060trim\u0060 and \u0060frontend/lib/features/quest/controllers/quest_controller.dart:945\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":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e2c9347b5ac18c7217a710279890fdf9c35e1acc3e34102a8767a918bf0c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:2133-2144 | frontend/lib/features/quest/screens/home_page.dart:2422-2433 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:2133\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87c72ba698a369841642a50e426891b3c25706c2a0a8b0af515534fabec3d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:3591-3602 | frontend/lib/features/reward/screens/reward_shop_page.dart:96-107 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/reward/screens/reward_shop_page.dart:108\u0060 calls \u0060Form\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:3603\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":3591}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd10447455930cc94fd84b7740ff8e0bc87936b88057a80e6ee533866924888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/quest/screens/life_diary_page.dart:250-261 | frontend/lib/features/quest/screens/recycle_bin_page.dart:17-28 \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 \u0060frontend/lib/features/quest/screens/life_diary_page.dart:250\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":"frontend/lib/features/quest/screens/life_diary_page.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd89eeab1c3d5554ec7d0896c176b2c32a8b7124b663f30ccfe5549e3ac49a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): frontend/lib/features/reward/screens/inventory_page.dart:367-378 | frontend/lib/features/reward/screens/reward_shop_page.dart:814-824 \u2014 before extracting anything, compare \u0060frontend/lib/features/reward/screens/inventory_page.dart\u0060 and \u0060frontend/lib/features/reward/screens/reward_shop_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/reward/screens/inventory_page.dart:367\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":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ee4efef374fa6cdc688068357c5e4f19915f56c4d668c16c101c43abca9e34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/stats/widgets/hero_xp_card.dart:27-38 | frontend/lib/features/stats/widgets/motivational_insight.dart:19-30 \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 \u0060frontend/lib/features/stats/widgets/hero_xp_card.dart:27\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":"frontend/lib/features/stats/widgets/hero_xp_card.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"51201e788898f5e1d06d4465309d099030dcc3fa92bfb45ef58ac2d4183c504e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): frontend/lib/features/quest/controllers/quest_controller.dart:1538-1548 | frontend/lib/features/quest/controllers/quest_controller.dart:1726-1736 | frontend/lib/features/quest/controllers/quest_controller.dart:1774-1784 | frontend/lib/features/quest/controllers/quest_controller.dart:1821-1831 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1538}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4c756fb93f1930c360565f5725cb5c6fedf679ed0557439b25cabcf303feef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): frontend/lib/features/quest/widgets/agent_approval_card.dart:23-33 | frontend/lib/features/quest/widgets/guide_panel_dialog.dart:112-122 | frontend/lib/features/quest/widgets/guide_panel_dialog.dart:482-492 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/widgets/agent_approval_card.dart:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/agent_approval_card.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c5b419df12db3e26300a505be641182d764195910a37b5d49e271716449fd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): frontend/lib/features/reward/screens/reward_shop_page.dart:168-178 | frontend/lib/features/reward/screens/reward_shop_page.dart:197-207 \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 \u0060frontend/lib/features/reward/screens/reward_shop_page.dart:168\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71db184ce06a6e44368edab8e52c7024e2a7178fd314641d8ecc7ed29ff67ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): frontend/lib/features/reward/screens/reward_shop_page.dart:662-672 | frontend/lib/features/reward/screens/reward_shop_page.dart:689-699 \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":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc6b97f5375c9cbf3ffefed5f07d2512a0f2d27813d1a5cdfa7af6a14d22c868"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): frontend/lib/features/quest/controllers/quest_controller.dart:1738-1747 | frontend/lib/features/quest/controllers/quest_controller.dart:1786-1795 | frontend/lib/features/quest/controllers/quest_controller.dart:1879-1887 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/quest_controller.dart:1738\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee0900da3d0cc5a1c7c140d301372378ff511e7772d8aef57180e259c801dcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): frontend/lib/features/quest/screens/home_page.dart:1965-1974 | frontend/lib/features/quest/screens/home_page.dart:2136-2144 | frontend/lib/features/quest/screens/home_page.dart:2425-2434 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/screens/home_page.dart:1965\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2499ac02108f141c80ed135d444dcc28f8f36cc2815b91c28a1b4af5037e3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_atmosphere.dart:493-502 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:504-513 \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 \u0060frontend/lib/features/auth/widgets/forest_atmosphere.dart:493\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"85857ee31d496926e4ff91c8cd668f4b228023a90419585e8c278e198bb8059e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_particles.dart:73-82 | frontend/lib/features/auth/widgets/forest_particles.dart:110-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/auth/widgets/forest_particles.dart:73\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_particles.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"387ecb9dd80045e9279f4332de86baece9a5e6d1f7a50d4b85d5a6776513d2fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): frontend/lib/features/auth/widgets/forest_particles.dart:289-298 | frontend/lib/features/auth/widgets/forest_particles.dart:348-357 \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 \u0060frontend/lib/features/auth/widgets/forest_particles.dart:289\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_particles.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c05e4cdf142653e3efd6987e9290db661826ca4bef3f9ad4694a156ce82689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:1032-1041 | frontend/lib/features/memory/screens/memory_detail_page.dart:76-85 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/binding/screens/binding_view.dart:1032\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"8757eb802ee6d0f99fa381ad46ce00f1e77a5a3c28760eee6efe831539d10038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): frontend/lib/features/reward/screens/inventory_page.dart:47-56 | frontend/lib/features/reward/screens/reward_shop_page.dart:56-65 \u2014 before extracting anything, compare \u0060frontend/lib/features/reward/screens/inventory_page.dart\u0060 and \u0060frontend/lib/features/reward/screens/reward_shop_page.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e104527027935b8f426cf177cea6d48e20c6c613a5ea6b36f33799715cbff5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): frontend/lib/features/reward/screens/reward_shop_page.dart:564-573 | frontend/lib/features/reward/screens/reward_shop_page.dart:589-598 \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 \u0060frontend/lib/features/reward/screens/reward_shop_page.dart:564\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/reward/screens/reward_shop_page.dart:599\u0060 calls \u0060isDeleting\u0060 and \u0060frontend/lib/features/reward/screens/reward_shop_page.dart:574\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":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"38126dc69a1ad4a7172db89e7f0e8d3bbba04f233e8a155241e3cbb89fcc9c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): frontend/lib/features/stats/widgets/hero_xp_card.dart:29-37 | frontend/lib/features/stats/widgets/milestone_highlights.dart:25-33 | frontend/lib/features/stats/widgets/motivational_insight.dart:21-29 \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 \u0060frontend/lib/features/stats/widgets/hero_xp_card.dart:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060frontend/lib/features/stats/widgets/milestone_highlights.dart:23\u0060 calls \u0060shrink\u0060 and \u0060frontend/lib/features/stats/widgets/hero_xp_card.dart:28\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":"frontend/lib/features/stats/widgets/hero_xp_card.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"156b636a0dcbcf7eb5749f2ed3c865921a59e0e096f63dbf75a7eaf619c95124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:272-280 | frontend/lib/features/quest/screens/home_page.dart:290-298 \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 \u0060frontend/lib/features/quest/screens/home_page.dart:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc547a7dcb7e305575402b1fbb6e22576749018fe8c69a5a49d8e59d6dd05fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): frontend/lib/features/quest/screens/home_page.dart:4309-4317 | frontend/lib/features/quest/screens/home_page.dart:4323-4331 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/features/quest/screens/home_page.dart:4334\u0060 calls \u0060PopupMenuDivider\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart:4320\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":4309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a1aabd6917e07700767baa1ff052da4d946ad46066647f221e876b9ace6a349"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): frontend/lib/features/auth/widgets/forest_atmosphere.dart:485-493 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:496-504 | frontend/lib/features/auth/widgets/forest_atmosphere.dart:507-515 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/widgets/forest_atmosphere.dart"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"278303b438c49ccb34de3e5be9ecc8136823e87e3dabd1088ec2b390de304bfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): frontend/lib/core/services/guide_service.dart:565-572 | frontend/lib/core/services/guide_service.dart:612-619 \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 \u0060frontend/lib/core/services/guide_service.dart:565\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. 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":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f22dc369f6481aeeb1f88cc7ead5f09929667511e2038c8772e7d1258dc06a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): frontend/lib/features/binding/screens/binding_view.dart:993-1000 | frontend/lib/features/quest/widgets/guide_panel_dialog.dart:699-706 \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 \u0060frontend/lib/features/binding/screens/binding_view.dart:993\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/binding/screens/binding_view.dart"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"831ed4074cc02b897742ca666da9c460fde49e3d05ca9610370f9c50e7da17b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:79-86 | frontend/lib/features/memory/widgets/memory_card.dart:147-154 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/memory/screens/memory_detail_page.dart:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a59999622d16a768cbb11b143e6ff7664e2fe36c8c96e268304fdcb451c591"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): frontend/lib/features/memory/widgets/memory_card.dart:145-152 | frontend/lib/features/quest/widgets/guide_panel_dialog.dart:697-704 \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 \u0060frontend/lib/features/memory/widgets/memory_card.dart:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/widgets/memory_card.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d5f0bf33d2b0474e224f4db2fb4616f469c0bba97e6c9249801cc39fc151ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): frontend/lib/core/services/evermemos_service.dart:247-253 | frontend/lib/core/services/evermemos_service.dart:296-302 | frontend/lib/core/services/evermemos_service.dart:413-421 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/core/services/evermemos_service.dart:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34bb1bf7824b40da70ca6a70831b2f647161add1c6e3c0730eeeab03e15f72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): frontend/lib/core/services/agent_service.dart:300-306 | frontend/lib/features/quest/models/agent_step.dart:88-94 \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":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b989126d0c8b8cff794ff258e33af1f883d7c8bd76c93b223016bb94d5a89e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): frontend/lib/core/services/evermemos_service.dart:795-801 | frontend/lib/core/services/evermemos_service.dart:882-888 \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 \u0060frontend/lib/core/services/evermemos_service.dart:795\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The 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":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"817b0dac979e972db57e9c1b9bfbb7b2824c68458ea92e998213c613cd9d8732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:1690-1696 | frontend/lib/features/quest/screens/home_page.dart:477-483 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1690\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1690}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1048130d4bab3fd3426e92da37ffc0b89926c4c8825e8fbb892f2430ff2393c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): frontend/lib/features/quest/controllers/guide_controller.dart:615-620 | frontend/lib/features/quest/screens/home_page.dart:705-710 \u2014 before extracting anything, compare \u0060frontend/lib/features/quest/controllers/guide_controller.dart\u0060 and \u0060frontend/lib/features/quest/screens/home_page.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 283 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:615\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc0cf0c126181d232a4e17b8b7240a023a6d5a56a153b9719831e9caa2fd35e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:296-307 | frontend/lib/features/memory/widgets/memory_card.dart:357-368 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8ae51ac8017c30642f9795ffecfa538dc67b863aaf1f16c478ccc56dc225c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): frontend/lib/features/memory/screens/memory_detail_page.dart:309-320 | frontend/lib/features/memory/widgets/memory_card.dart:370-381 \u2014 before extracting anything, compare \u0060frontend/lib/features/memory/screens/memory_detail_page.dart\u0060 and \u0060frontend/lib/features/memory/widgets/memory_card.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcae4a96181ba1a186cbb98133c297788f3a7f3f49fce3a3fd7aa9c14a5de739"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): frontend/lib/features/quest/models/agent_run.dart:53-57 | frontend/lib/features/quest/models/agent_step.dart:76-80 | frontend/lib/features/quest/services/weekly_summary_job_service.dart:70-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/models/agent_run.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"76750cba301e8d7cd2d081cdab8f36c7ea8651e331e28cb4bc5cb1a4c69d8814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): frontend/lib/features/quest/models/agent_run.dart:59-63 | frontend/lib/features/quest/models/agent_step.dart:82-86 | frontend/lib/features/quest/services/weekly_summary_job_service.dart:76-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/models/agent_run.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"76bd2fd3562fb6a7675598789ba73bff13ff0f3afed79c79bbfbea593aee627d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): frontend/lib/features/quest/widgets/quest_edit_sheet.dart:60-64 | frontend/lib/features/quest/widgets/quest_item.dart:69-73 | frontend/lib/features/quest/widgets/quick_create_dialog_content.dart:117-121 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15bcb0393fb24aacd75fe055b4addec72c9e27977f20897c958382fb02f8653"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): frontend/lib/core/services/guide_service.dart:110-114 | frontend/lib/core/services/guide_service.dart:430-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060frontend/lib/core/services/guide_service.dart:115\u0060 calls \u0060trim\u0060 and \u0060frontend/lib/core/services/guide_service.dart:435\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":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dc0b798f6f5ea73522449fa1efc2b6a51e4bef54c65b7083a6fe8a77568563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): frontend/lib/features/quest/controllers/guide_controller.dart:1117-1121 | frontend/lib/features/quest/controllers/quest_controller.dart:166-170 | frontend/lib/features/quest/screens/life_diary_page.dart:38-42 | frontend/lib/features/quest/widgets/quest_edit_sheet.dart:54-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060frontend/lib/features/quest/controllers/guide_controller.dart:1117\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"004183f8e203a1c2e1c492e20239ab3b2f2f43ae0f76304b09c5e68e0b10c997"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: deno.json: deno.json: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db11a428d70b9f4db54f5b2f14eace232eac8532a658dfcff74a59a55b91c8f9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _AuthCopy (LCOM4 9): _AuthCopy\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/login_screen.dart"},"region":{"startLine":1197}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6946da3d378ee351ab761839907a59db227d7d497ac2a4f17badc9318c51c2a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SupabaseAuthService (LCOM4 6): SupabaseAuthService\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/supabase_auth_service.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e94e42072fe940cf9765c3ab329732d27c42ddea0173ea57795399b382110fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GuideController (LCOM4 6): GuideController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc077c6eb2b0fa8fa30b1de667f46cc6f0cdac96896ba57419de025b59b1734a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: QuestController (LCOM4 5): QuestController\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8d244fd9cd17b6cc57b25ff94b4d2cdf9c8204a2b6e77d68490bc31d3df473"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _GuideComposerState (LCOM4 4): _GuideComposerState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/guide_panel_dialog.dart"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5ec7f546f6f4615917162d617bb48b00420d31c2babb76ce5ae568a1a0efe2"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 backend/ runs vitest but declares no coverage provider, so the suite can run and still produce no lcov \u2014 add \u0060@vitest/coverage-v8\u0060 (or \u0060@vitest/coverage-istanbul\u0060) as a devDependency. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D10","level":"note","message":{"text":"Mock-dominated test: rejects request when Supabase returns error: This test sets up 3 test doubles (for example \u0060vi.mock/jest.mock of an imported module\u0060) against 0 real object(s) of its own, and its only verification is 2 check(s) that the doubles were called. It pins how the code is wired, not what it does: it passes with a wrong result and fails when a call is harmlessly reordered or merged. Assert the outcome instead (the value returned, the state left behind), build collaborators and value objects for real or with a small hand-written fake, and keep doubles for the boundaries the test cannot own \u2014 the network, the clock, the file system."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/test/auth.test.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"014e889be3972ec6e6bd908d4b6b74504d0c58cf387647f0072eb33f32db0524"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7e5efd0953a585cb702b6ad6e992a67c2785dd92d9f9804b2c8a9bbbb77669e8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: frontend/lib/features/quest/screens/home_page.dart: frontend/lib/features/quest/screens/home_page.dart changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in _HomePageState._handleGuideModifyTask at line 2285. 3 of those changes were fix/bug commits, and the other 16 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-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- frontend/lib/features/quest/screens/home_page.dart\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":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":2285}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7a2b6287de37a3bd65083b86cd8d391febbf51aa3b383fc18ce915985bfac3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: frontend/lib/features/quest/controllers/quest_controller.dart: frontend/lib/features/quest/controllers/quest_controller.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in QuestController.toggleQuestCompletion at line 1531. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- frontend/lib/features/quest/controllers/quest_controller.dart\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":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1531}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd69ffb1ebc9a6e3753541f606bfe9a764d7d63be7f6ccdcac1d7ded0c4ec49"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/_shared/guide_memory.ts: supabase/functions/_shared/guide_memory.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in guide_memory.gatherGuideMemoryBundle at line 902. 1 of those changes was a fix/bug commit, and the other 3 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-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/_shared/guide_memory.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec7436480a255c2d55eb074fcb5717c0c5f67cfbd37f7eddbcc58ef11d2feca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/parse-document/index.ts: supabase/functions/parse-document/index.ts changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in index.Deno.serve() at line 137. 3 of those changes were fix/bug commits, and the other 5 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-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/parse-document/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-document/index.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"74af364fadb2cc519224065c8314f4bd6f9869eb5f7cc1ef34ede6f9c2f7ea94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/weekly-summary/index.ts: supabase/functions/weekly-summary/index.ts changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in index.Deno.serve() at line 450. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/weekly-summary/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary/index.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2994c33a95497e8a16fd978c374b85940e6568bd22681df5f19a7c936c7e4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/agent-step-complete/index.ts: supabase/functions/agent-step-complete/index.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in index.createAgentStepCompleteHandler.\u003Creturned closure\u003E at line 157. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/agent-step-complete/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"05d21d1b0791fb15bd15d653ece8ae3c8bc0ef28bfda9b3aec2ca2289f0df593"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/guide-portrait-generate/index.ts: supabase/functions/guide-portrait-generate/index.ts changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in index.Deno.serve() at line 379. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/guide-portrait-generate/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc5e8fd35c153a3dc93ec8e5d572220927fd51c6976a814cbc222a386f282bd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/weekly-report-push/index.ts: supabase/functions/weekly-report-push/index.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in index.Deno.serve() at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/weekly-report-push/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa1743f7ceae9c869ef8bba50862a9723b9ad50f5f2b8cbb65f5924b51e0b79"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: supabase/functions/sync-user-memory/index.ts: supabase/functions/sync-user-memory/index.ts changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in index.Deno.serve() at line 343. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- supabase/functions/sync-user-memory/index.ts\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c20636cec625e53a14780a56d1bab17cc84bd5a10cbf6cf085476468973a6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: frontend/lib/features/quest/widgets/quest_edit_sheet.dart: frontend/lib/features/quest/widgets/quest_edit_sheet.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in _QuestEditSheetState.build at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-03-05..2026-06-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-03-05 17:26:45 \u002B08:00\u0027 --until=\u00272026-06-03 17:26:45 \u002B08:00\u0027 --full-history --no-merges -- frontend/lib/features/quest/widgets/quest_edit_sheet.dart\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":"frontend/lib/features/quest/widgets/quest_edit_sheet.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"558b3d3570409ff46f4326e32664111aefba28c93ff84b15901a93fa0c3871b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u6682\u65F6\u7981\u7528\u9690\u79C1\u534F\u8BAE\u5F39\u7A97\uFF0C\u5F85\u8C03\u6574\u540E\u91CD\u65B0\u542F\u7528 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/main.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"624add22f9126b45caec125496f2bf59eb07ce62b98e5d3a911115b302c23974"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u52A0\u8F7D\u66F4\u591A \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/boost_history_page.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23132dd75979fa03279d17ea1579ca1e260e7d5e74150e5af76085ccd79d3d6"}},{"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. ADRs are expected here because \u0060frontend/lib/main.dart\u0060 makes this repository a deployable product (line 24)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/main.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c890561d04fa5a3e01f5efca3dd0f5d741cce542ed2adc8b0d5e9331fa086825"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060frontend\u0060 (36699 LoC, 178 module-visible types across 40 directories) overshoots its size bounds. 2 of 13 build unit(s) (Deno, Gradle, npm, pub) overshoot their size bounds, lowering Project Cohesion to 6.9/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f248030b7950a553aa22f0cd8056722f9cc3217ae1721feddec412bb1e68173"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (9747 LoC, 57 module-visible types across 22 directories) overshoots its size bounds. 2 of 13 build unit(s) (Deno, Gradle, npm, pub) overshoot their size bounds, lowering Project Cohesion to 6.9/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d5244dbb9040f0ef9a41721fc246c38399605a5b233c47266a2093207fec1"}},{"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"f47fe133ab99fd9fe646c541cbea7cf045b570629956650b3d04747a5a6c4f07"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"30b4f9230c5bde85f13d620b3d2bd36b27e7be5c2c8372d3d61d194ddaebb1b5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"b15e7c4516957eb0ce628a71875180462280b3da835590c3e3ea26dfe36c7cc0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"b21ef51d97f04d1a8b921e635aca9ef4e877341aa2c3b0f6eaeabc61234774b6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"4ce5fe879732ad8dcb497532a515eff8ebdf8f2df6b73e2ca66a83edd7aeaaf7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"63c4a093cd4d8270d8663d7b47af1062c73ee032c2d6873d217251d788ab2402"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"6504d8d1633fd2629c17cb911821ef9d4b240f323d5e1ebac2df01ac4726a04a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"7dfbbf232fc907afe7f219bbbf37b78cf628f46e62ffe59ff07f6819dfa237a9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"f96de53a9c41aa9762bf4bb7d8c6ceb5328ca215e45d4016e18c2ff1458e371c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"e7aea5ad354bb944fe749ff0e5f574830ccdd11e2edd1cb16678dd3d93b52205"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"3bfe1342b2b2ff7ec30198c5be7e878786f57df0b5165ac1d200ed7af2efb121"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"d5f41e11db1ec020340c655aacfecc71871c6c80dd602c554777843270f6b592"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"855451eb322b80e9c22309f05343d55d411160048b3059476c34034cdd161958"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"fb4a23173542d7a1718b502d857067e50a3ab2bcd9e6cbc8252c0d9b2bd57371"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"49c16b6fbc91670e61b639ab9c9270b4df42b6b11889eae216a02e4dd9c52b80"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"296dd06d514d595ba198e66c69821acdab958d82c333b3c1ad6373aa0d41f5e0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"484e508fb8b125213a81118c2a06b7a2976ec2088451ba0cf82ef7bb2efa3029"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9eed760d5c7e3b57c13ebce677980ec9a89ec90f4feb51e6bff1e06aaceda500"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9b29ae7735b73fb4942a390922392293beff4d26b031ce725e08d381e8e1550f"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2248e3ef4dff615542c5f52e3f2f1a5280713af44f662e96a1a8169a0193f2f8"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"78b6ddfe91de7844e25873c214a4bc7b93939787cf9b9ef08c7c651f8e3cedb3"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"95740b583969c78c7132f35629806263a32606dcd6d14eefa8ad5abaeaae0af3"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-7","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e375153157cdcce3cc5cc348957b1e5b3b1189a914bb6578bd46da2646aca2b9"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"60ef67d353d90c5118d26224989a58325ad42b1ab7bf31be479c30b96615d628"},"taxa":[{"id":"CWE-345","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":"75ae5f1438763b88a4ce9149c934922abac60878c4adaa14f5bbd8f32ba2e882"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"6f35c311f0b6ff5c37bc5407e1721f6b8ce9f782f007ad24ec04d38003286f37"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"c0e775b656d41f73746b5706baae5971d02f6db86c109fc1a243fb82e44eff6e"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"65f89c323f2da64bdef426709cb71bcf9e40bd680f37d10afd5ea0b439dfd7f0"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"ff6bb28c238fa1cf2ec5c0df687ac3b0317347a06d4daac6d22f3e0e482c8969"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"ae95000f587f415dda45b3eb9520603bce6750ca2d21ca9ef27f9365e0840477"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"5d31dda255b5959c19986c87ef6e350b63bebf8fdba90c62a2fe770f7179c281"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"47087732398b2b1022e7afbd7c6fe266f7b201065fbe03a35394d27dfde93f49"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"4b7d58825b4df4065910fc5ae7f198832e7dd3d8d7652a88796c1f4aa554277b"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"c55c4e6fad17ebe9f38eaedcc0f2afe138cd0d0626c991554518aa41b92ecb55"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d4a1dd134e3b8e7caf34e0a9bdd7e21facdae911aae1e00dff95b7f6787580b2"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"99e982b444c364f94d770d872f14a40be31f0f548832e0d2be1ac6aa143ddb80"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2979a22b7aca3ee800a547cce7bfd7f88be88a9b27d92f51a07a992f0a774bc2"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10: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":"3069dc06ffcbc9c6044ceebaab72c394ebcc973a7551de877795ceb59c57e24a"},"taxa":[{"id":"CWE-209","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b634f1f8765de353ebb23cc9a558f875bb8d796bf099a8693acc1e64447da04"},"taxa":[{"id":"CWE-862","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe57edac41b8cbfb7406c75cdac20f1788ff475ccd65dd187e86538dc1d0cfd8"},"properties":{"dependency":{"package":"proxy-addr","version":"2.0.7","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"critical","fixedVersion":"2.0.8","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a8b32e415a70acba85e004e6bc3c45d2fe8b9f4b5f8a14e85521c09cc6649603"},"properties":{"dependency":{"package":"body-parser","version":"2.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.4.0","relation":"direct","declaredRange":"^2.2.2","reachability":{"kind":"production","file":"backend/src/index.ts","line":2}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6032cb95d7e4b7e8378053a0ba4f8cd442ac45ee42e88882fd358d3cc4fb8a9"},"properties":{"dependency":{"package":"form-data","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.0.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7f6036c92b318736ccc06ffd8fcbce63e16dbc9c605972d6f203ecf8dc026bfe"},"properties":{"dependency":{"package":"nanoid","version":"3.3.12","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c28f7cbac990e91f76c8547364e7b54bdbb8fc4e73e2d6a548a56e8ac533611f"},"properties":{"dependency":{"package":"path-to-regexp","version":"8.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.4.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8c1ff3e4f0cd5c03ceefe087a3d5784143e983b28968661cba55ef1e041a8d45"},"properties":{"dependency":{"package":"postcss","version":"8.5.14","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.18","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3debaacb91f6254fb62a999e0f611e82f3036376454795b88c6345393f2b7549"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cc032cef96a956fde52c4d573d668671b1cdbb70e19e9709e6cf07c41bcd302"},"properties":{"dependency":{"package":"vite","version":"8.0.13","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.1.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dec737f2461f3ec3faee314b7e5f50848db0635dfff5b2b4bfbc73a4f0610f0e"},"properties":{"dependency":{"package":"ws","version":"8.19.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.21.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8645c87b8e8cde81724180b15f178db8239ce7561d62a3e6e45f51db28c7a5d0"},"properties":{"dependency":{"package":"form-data","version":"4.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.0.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7d20b4ad5b396d5bdab0959a3f43334da25bf5f1ffffe4ef41876ffd687a0569"},"properties":{"dependency":{"package":"image-size","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.0.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"968c6d430fb16f21b9f574ec99a89d7512d1b3a2159f7da60055bf8f6f719397"},"properties":{"dependency":{"package":"browserslist","version":"4.28.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"4.28.7","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a5a577b51e4b30ca2735ca403c70c99f437b7fa976142fe3e0a8240b3f69b70"},"properties":{"dependency":{"package":"extract-zip","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bbc162e032e8db6a27d81dec0bee9d948270ba91b1dab70f9312f95b4490ce37"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.1.3","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56fba43a326c172908f0891ca63943f8959098b82588db2fcee5c0434a8ef0b5"},"properties":{"dependency":{"package":"nanoid","version":"3.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"3.3.16","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a7df974dad22fa3c5353a360b64eaec1cb3755c6d44355e1d311f49eac3d789b"},"properties":{"dependency":{"package":"postcss","version":"8.5.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.5.12","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b392755b20222021179fd2dd5157ed4a7c2ed66053638d3daccac82eb275008b"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"1.2.2","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"39166a6ea90ea7156d379f946bf6a9dc9b324b1b8f1ec3e77159b1e57edae065"},"properties":{"dependency":{"package":"ws","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"8.21.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d389652a83fa895dad946780dd9810ed885cf8446d302cc31a3a1720dae1d033"},"properties":{"dependency":{"package":"zod","version":"4.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"high","fixedVersion":"4.6.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0ae4987131c540999403ee4df5a0faf43f3454dc60c4439e592e9baefebbd8d7"},"properties":{"dependency":{"package":"@vitest/mocker","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3abe236a7bbdcfad81aad266b285947c0c30a290d076d451ca7e0ed84128ba36"},"properties":{"dependency":{"package":"qs","version":"6.15.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"6.16.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e9f6243b91bbd4a707d0620ee1bb5f6bc40791da680711a9c4da5428fdb416bd"},"properties":{"dependency":{"package":"vitest","version":"4.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"4.1.11","relation":"direct","declaredRange":"^4.1.6","reachability":{"kind":"production","file":"backend/test/auth.test.ts","line":1}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8967a94b4efaaa70dbf2a3458f4741ca709eaf5f377d9b7f499709c58cdb7bb7"},"properties":{"dependency":{"package":"baseline-browser-mapping","version":"2.10.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"2.11.0","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7348e0e1aa0af0a059a7528c1b6c6c67fe4b5ae5b8c7fe2dde260340e26719c5"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","fixedVersion":"7.1.6","relation":"transitive","reachability":{"kind":"not-imported"}}}},{"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":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"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":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"19d4cbb252a3e4997007fe629a8fde65a6a24e745494155b47ed43cbf523f1eb"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"046153fdc2850b8bfa1a81d3d8b8805fc88531c5180ad5c82f14384db4ecb662"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c6eb5a94052c328a9f9d4f3228923a5f2d4d56700f96d3ddbb1b358415402983"},"taxa":[{"id":"CICD-SEC-5","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":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fff5f9ccfcb845139b6526fecf2c913296b12af0984888df7ab727ef99d20fd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"a868fda5afecd753f0fb736655651d476a203b508a64289b69ca60d13cf247a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":531}}}],"partialFingerprints":{"codehealthFindingId/v1":"128eec03ddc6bd502a86dbfee400096ec9526c6924949ae4777128dcb9e6dfea"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"567a2c4ce2ab111448be5b276804bcd1b9ae91de3ef8662ddd4ec8eeecb3288b"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e485ab591987a01e7de52ce59248ffd863f51ff503c9312254a1f9f338838b6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A script attaches a click listener to this \u003Cdiv\u003E, but it has no role, no tabindex and no key handler, so it can only be operated with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"2189602e16387a2c90e18f4296be33d76214c32bcb1110b5503c127cc9dba10f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sun\u0060 moves (\u0060animation: sunPulse 4s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bedcb65e54fd23f69cf277205dbff1a78629758efe950a01d9a7570cdcbba84"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sun-halo\u0060 moves (\u0060animation: sunPulse 4s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8fbcc0f2963008fa7974e9ef1906db66e968b3a1e0d951c36c99558ccaa9286"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.sun-flare\u0060 moves (\u0060animation: flareDrift 5s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e0121db09be5dcb093803c65855ff13150946803f335f4b444260703a2d1da"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.mist\u0060 moves (\u0060animation: mistDrift 25s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b70b6a72a7705e7409355c6001db273c57746a2b487ef5239a227768e7068c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.grass-blade\u0060 moves (\u0060animation: grassSway 3s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"437a9c8e3af498722e2b635b4f9b2d873508785f351b6552b6d75473216181ae"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.amb-icon\u0060 moves (\u0060animation: ambFloat 12s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72c8cd65da8165a95595faa673b7b9bb21a8857814264d71f263c2d4426f921"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.glow-orb\u0060 moves (\u0060animation: glowDrift 6s ease-in-out infinite alternate\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6f0c7f91713e412b8b51a383cf019c894ae0d1b7c1c59c567b5265c1e59c3e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.login-card\u0060 moves (\u0060animation: cardIn 0.9s cubic-bezier(0.2,0.8,0.2,1) 0.3s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee011e647d384e13b0db1abf371e4b574865e10417a0c1026c2a7bce71a83572"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.vine.top-left\u0060 moves (\u0060animation: vineGrow 1.2s cubic-bezier(0.2,0.8,0.2,1) 0.6s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf9d2012ab0bb105041d41b8f245a274c0b28e8b23592695d8ab489c5456cfe"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.vine.top-right\u0060 moves (\u0060animation: vineGrow 1.2s cubic-bezier(0.2,0.8,0.2,1) 0.8s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"adebf6435cbc554b5cd6edeb03c02a6579a176351114abd86455b733830c5f94"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.vine.bot-right\u0060 moves (\u0060animation: vineGrow 1.2s cubic-bezier(0.2,0.8,0.2,1) 1.0s both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"47be992e57178da789618836f5a2a9cdbacc03a04899f5a6b82017b428179c48"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.primary-btn\u0060 moves (\u0060transition: transform 0.15s, box-shadow 0.15s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b8470010d273b409c46f49d0fc13171129d7864d58cdc2801c0886b0b0baee"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.toast\u0060 moves (\u0060transition: opacity 0.3s, transform 0.3s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"9578259205a6c04975ffe6ad46c02982745203c78b48182ac688eb5ba745a2d9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.view-enter\u0060 moves (\u0060animation: viewSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6642b43d63dde953bc217583a393e6755810cbdca5cdf56ba3aa77bfc92b983"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.view-exit\u0060 moves (\u0060animation: viewSlideOut 0.28s cubic-bezier(0.55, 0, 1, 0.45) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff37e01f81e0755db13aa6e47b557a935024d9958933a7602fce10511a9f378"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.privacy-card\u0060 moves (\u0060animation: cardIn 0.6s cubic-bezier(0.2,0.8,0.2,1) both\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c4035188c48fea17fbe004a30554f7d732713cec6114e6daebac43a543617d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.input-row input\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"714c132219fd8f2f200e2152d5052f31696f2ee56943c60f1ffe4a573f3feef0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.3:1): \u0060.auth-btn.active\u0060 sets color: #fff on background-color: #2F8A43 \u2014 4.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/assets/web/login.html"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1606325c47947f528d489b80d9d5f3698f7b8eb7b2e878660a4acf49392ff5c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair (4.3:1): The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef479440cd1bb54d073e03656bc91a8ebb5d94176d79442410e62582fefe5a5"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: quest \u2192 achievement: \u0060QuestController\u0060 (slice \u0027quest\u0027) depends on \u0060AchievementController\u0060 from slice \u0027achievement\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce506fa09b7a97111752103ea1dd30ae7ca597f2323200d918d46d81b6c3072"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: reward \u2192 quest: \u0060RewardController\u0060 (slice \u0027reward\u0027) depends on \u0060QuestController\u0060 from slice \u0027quest\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d775c683e016da5ed405d43e07a8897c7c6e4b5de1c1c122e0222fbb16c94c1"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: reward \u2192 quest: \u0060InventoryPage\u0060 (slice \u0027reward\u0027) depends on \u0060QuestController\u0060 from slice \u0027quest\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/inventory_page.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ad60389317db6e3cb1c9d8f461dd0e055f47e13f1144a38dc389103c4eea80"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: reward \u2192 quest: \u0060RewardShopPage\u0060 (slice \u0027reward\u0027) depends on \u0060QuestController\u0060 from slice \u0027quest\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/screens/reward_shop_page.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e05bdbfb9451b2912566047d445441dcbe66e328030201893fc6c2bdae2edfd"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: stats \u2192 quest: \u0060StatsController\u0060 (slice \u0027stats\u0027) depends on \u0060QuestController\u0060 from slice \u0027quest\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/stats/controllers/stats_controller.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"785dcac8a339b9505c11fe2db709cc68e9b51b92171d7defbeb8d1e4bf58b54c"}},{"ruleId":"AX7","level":"warning","message":{"text":"Cross-slice coupling: stats \u2192 quest: \u0060StatsPage\u0060 (slice \u0027stats\u0027) depends on \u0060QuestController\u0060 from slice \u0027quest\u0027."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/stats/screens/stats_page.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2052a44998a9c6c650147ba2e7b3c5e8c3b48f5d2cdc9d10d232c956c176fe6e"}},{"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 185 Python, JavaScript/TypeScript, Dart, JVM production file(s) this check read across 6 module(s). Each was searched for its ecosystem\u0027s logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging; Python: logging, structlog, loguru; JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; Dart: package:logging, package:logger, dart:developer\u0027s log()) 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 the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 as a CI step. What was searched, so you can tell an absence from a miss: the 3 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/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060package.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":"package.json"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b237f7efe841e3a95b381b232502a3a473094adeb069a11eaca8ca533fb1c34"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/release.yml"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 30 sibling directories (52 clone groups): 52 duplicated blocks under supabase/functions/ have copies in at least two of the sibling directories _shared, agent-run-status, agent-step-approve, agent-step-complete, agent-turn, evermemos-proxy (\u002B24 more sibling(s) not listed) \u2014 46 of them are reported below, and 6 are counted here but not reported individually: those copies match on shape but no longer clear R10\u0027s bar for an individually reported row \u2014 either they kept neither their own names nor their values, or what was copied is too small to stand on its own (it reports near-exact duplication only, and only of substantial extent). What this row states is the concentration, which the detector measured over all 52 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 52 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 52 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary-enqueue/index.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6fb52674c8cfb7f3eee58d78e4d96615547e03ee250217e1744a5a46d23e4e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (83 matched lines \u00D7 2 locations): supabase/functions/weekly-summary-enqueue/index.ts:14 \u00B7 supabase/functions/weekly-summary-job/index.ts:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 446 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary-enqueue/index.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"900e65cb0ad0620a036fc74c2a2a425712ce6a5c665e59fe8701dc45965137fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (75 lines \u00D7 2 locations): supabase/functions/generate-breakpoint-boost/index.ts:59 \u00B7 supabase/functions/pregenerate-breakpoint/index.ts:58 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/generate-breakpoint-boost/index.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d16e97cb5ff399d4cefc455f236ec9232434cf5ff1a5981acfabf63f3cd1726"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (63 matched lines \u00D7 2 locations): supabase/functions/agent-step-complete/index.ts:31 \u00B7 supabase/functions/agent-turn/index.ts:31 \u2014 the two spans are one implementation copied and then locally edited \u2014 449 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d1a3657aa96f34b61ed4732a633b25ec6bcf2c613dc6c1f3b6b0fb53a0e51b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2 locations): supabase/functions/feishu-notifier/index.ts:20 \u00B7 supabase/functions/task-reminder/index.ts:20 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa09bf20313fc61245442ee206ddb345b4175e360558f89c328157070ef0c910"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2 locations): supabase/functions/_shared/guide_engine.ts:126 \u00B7 supabase/functions/wechat-webhook/index.ts:34 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ec35ee315f4624c5236917248d0bdc5826041663554714166bde28f0eb7e6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): supabase/functions/agent-step-complete/index.ts:116 \u00B7 supabase/functions/agent-turn/index.ts:110 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b0fee74fddcd8298a5e183621474b6b60eb3402b50bba5e2b9dcfbf346703f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2 locations): supabase/functions/guide-bootstrap/index.ts:7 \u00B7 supabase/functions/guide-event-generate/index.ts:7 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-bootstrap/index.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd642ec2716c1d49e5fc9c2236924f2f15f119ca35241395798d562eaf85d5f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (32 matched lines \u00D7 2 locations): supabase/functions/guide-portrait-generate/index.ts:377 \u00B7 supabase/functions/knowledge-extraction/index.ts:28 \u2014 the two spans are one implementation copied and then locally edited \u2014 251 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"5408d9b179215a25ab3582662285a45208128bebf39f8a93e374fb4876de830c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (26 matched lines \u00D7 2 locations): supabase/functions/guide-event-accept/index.ts:8 \u00B7 supabase/functions/guide-night-reflection/index.ts:16 \u2014 the two spans are one implementation copied and then locally edited \u2014 197 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-event-accept/index.ts"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd5a686cad8a51dc856c3dbcaae67e588e20b337b9c5c192335a3874a1bc8c8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): supabase/functions/feishu-webhook/index.ts:4 \u00B7 supabase/functions/task-reminder/index.ts:5 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a2f803d9e2c8bf2d3cbc4f7ba84ebe98ff94876d06e2f2b0e305e899e3319c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): supabase/functions/_shared/evermemos_client.ts:120 \u00B7 supabase/functions/sync-user-memory/index.ts:29 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"607d19ae6357bb989c941450cadf7700cd6588ab88dfa243bb68d5eb7a492af2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): promo-video/src/EarthOnlineCompetition.tsx:347 \u00B7 promo-video/src/EverMemOSDemo.tsx:134 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f5894fb8cb81de43e27ba6072e29807432113793f727c29f695b6ea790d701"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): supabase/functions/agent-run-status/index.ts:37 \u00B7 supabase/functions/agent-step-approve/index.ts:76 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index.ts"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde2ada853822c203a2626fc16721c12b906e1733fd2ec99be6da97d4299989c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3 locations): supabase/functions/agent-step-approve/index.ts:49 \u00B7 supabase/functions/agent-step-complete/index.ts:82 \u00B7 supabase/functions/agent-turn/index.ts:77 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index.ts"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"c413e436508bef3511f6bdb74ba5e525339960374a839a2a36b7f681fc8eb6c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): supabase/functions/agent-step-complete/index_test.ts:172 \u00B7 supabase/functions/agent-turn/index_test.ts:121 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index_test.ts"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c3a823c6b35fbc7785a4618d0562f5d6be61a47c7ccf2b3e9ef1162d7e703d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): supabase/functions/sync-user-memory/index.ts:339 \u00B7 supabase/functions/weekly-summary/index.ts:448 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f608b94ae4f2ee7968e0cdd264dbb1e9d05dd8556116407649f52083ba30a38"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): supabase/functions/_shared/collective_memory.ts:28 \u00B7 supabase/functions/_shared/guide_memory.ts:77 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/collective_memory.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"71abb33118b54a900f03e99304f8a433cf9eb477448c05caad692cd4c63101ef"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): supabase/functions/_shared/breakpoint_helpers.ts:324 \u00B7 supabase/functions/_shared/guide_ai.ts:87 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbd42c8827a398ef10623e960b58519bdb8ac23a0260c562bfeedc87e0dc16b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): supabase/functions/feishu-webhook/index.ts:143 \u00B7 supabase/functions/wechat-webhook/index.ts:376 \u2014 the two spans are one implementation copied and then locally edited \u2014 62 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e325e194b82420c4303debcca80474593203409996a0b12a79878e610ec75af6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:437 \u00B7 promo-video/src/EverMemOSDemo.tsx:328 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"28fbdb7609f00ed5c333e561d45f1272888d71307dfa546b3548803a19b0e953"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): supabase/functions/_shared/breakpoint_helpers.ts:95 \u00B7 supabase/functions/_shared/breakpoint_helpers.ts:173 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34e5f46d07de30d58d2d97fef8ecf5bc0b0849fc1beada0bddd8caebd210151"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): supabase/functions/agent-step-approve/index.ts:129 \u00B7 supabase/functions/agent-step-complete/index.ts:307 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index.ts"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"452e30fef9ddea18bbfffbe3440926a1be02b7bf06a8657e733d1effe26449ee"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): supabase/functions/memory-patrol/index.ts:29 \u00B7 supabase/functions/weekly-report-push/index.ts:13 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"459bc87572d3cbc6b06143e4dfcea7829ed4e555004f70c9ae836a1123cc5d1f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): supabase/functions/memory-patrol/index.ts:334 \u00B7 supabase/functions/weekly-report-push/index.ts:111 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7c719fc130250165cd4fc1619b8d14dd80ab0cc7de63d3b080e148bfea5f7b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4 locations): supabase/functions/_shared/agent_planner_test.ts:32 \u00B7 supabase/functions/_shared/agent_planner_test.ts:47 \u00B7 supabase/functions/_shared/agent_planner_test.ts:62 \u00B7 supabase/functions/_shared/agent_planner_test.ts:88 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner_test.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9b8ca6038b381636e98514741b16ec794175091227c08187626e2dcee432da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:316 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:331 \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":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a33985f69aeebbd5e0bbf07a36661344adb76b135c7f46c4b2530d075cb2485"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): supabase/functions/_shared/agent_engine.ts:223 \u00B7 supabase/functions/_shared/agent_engine.ts:260 \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":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d221d5f219f0d7d247829b93dc527a9b1e2133f8fbd6f6586c72f9e37bab4d5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:257 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:287 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"098cc98c0be3f90f90bc92e20a7d876318232bdf2f5873ed3cb7b2b2373d8fd4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): supabase/functions/agent-step-complete/index_test.ts:14 \u00B7 supabase/functions/agent-step-complete/index_test.ts:71 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index_test.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c5556b49d3d17a4385f851a5399658025952c2724ab728dc8531b5dfbd45d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:132 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:152 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd60d55d757d5265b3ef4f8a4aa6070e8756cbd33b998ea12e4b663f121964bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/_shared/guide_ai.ts:98 \u00B7 supabase/functions/_shared/guide_ai.ts:168 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"210025c5330f1e96b54f600391844f0a9bd2d845260d19e07ac620cb97469805"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/_shared/weekly_summary_jobs.ts:60 \u00B7 supabase/functions/weekly-summary/index.ts:63 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/weekly_summary_jobs.ts"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c620176b4e06f41713ec9110b23adaa43fefe725083f60f2b62c238aca051d4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4 locations): supabase/functions/agent-run-status/index.ts:69 \u00B7 supabase/functions/agent-step-approve/index.ts:133 \u00B7 supabase/functions/agent-step-complete/index.ts:311 \u00B7 supabase/functions/agent-turn/index.ts:228 \u2014 the 4 copies are spread across 4 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index.ts"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c11c0de8bc9c7cc2320ca06e2c2f31d5b48bce924eca860f57a02fa0902b69"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3 locations): supabase/functions/agent-run-status/index_test.ts:28 \u00B7 supabase/functions/agent-run-status/index_test.ts:48 \u00B7 supabase/functions/agent-turn/index_test.ts:32 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index_test.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3dd4c17c5d8a1d9590a3ca1975cfe1de0227859ea8018e9365dd42fcc4db5ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5 locations): supabase/functions/agent-step-approve/index_test.ts:10 \u00B7 supabase/functions/agent-step-approve/index_test.ts:33 \u00B7 supabase/functions/agent-step-complete/index_test.ts:12 \u00B7 supabase/functions/agent-step-complete/index_test.ts:39 \u00B7 \u002B1 more site(s) not listed \u2014 the 5 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index_test.ts"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9840eaae695a4357355d5014da449657c913c12aa3418e5c7c3356a19cf3db31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/guide-freeform-chat/index.ts:23 \u00B7 supabase/functions/guide-portrait-generate/index.ts:376 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-freeform-chat/index.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8059f0dee29ff2b962a991553982e60af2a8c0c8f09d0f8807b55ea3b2df66fd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/memory-patrol/index.ts:58 \u00B7 supabase/functions/weekly-report-push/index.ts:55 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"16580751da4630df71e88e6637c41a9e32f9a01371fc8ea692d2876030267cea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/parse-quest/index.ts:143 \u00B7 supabase/functions/weekly-summary/index.ts:403 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index.ts"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"df8e2b14f42187bdf4864aa5f6ca2a218aeb662a0a4bd1fae8567f0d6b811e00"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): supabase/functions/weekly-report-push/index.ts:95 \u00B7 supabase/functions/weekly-summary/index.ts:21 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa33c48c1d95d51bfcf3fad818a32dca3217c10f6c9766ee378e0c572b70e702"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): promo-video/src/EarthOnlineCompetition.tsx:503 \u00B7 promo-video/src/EarthOnlineCompetition.tsx:643 \u00B7 promo-video/src/EverMemOSDemo.tsx:556 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a42d28e60c6f24f7715e48cbed9a62dd2b7ed9ef24686df76ba1f57d0d6691b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): promo-video/src/EarthOnlineCompetition.tsx:639 \u00B7 promo-video/src/EverMemOSDemo.tsx:552 \u00B7 promo-video/src/EverMemOSDemo.tsx:685 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8f0dfbc6b2cf1e42cb6fe9ef1b26f5fe704e6889fe0cc8a9acfa20d7442c8d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): supabase/functions/_shared/agent_planner.ts:542 \u00B7 supabase/functions/guide-freeform-chat/index.ts:10 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa0aec100d6495db78de5c97915653f0ae18bb63ca30aeed8c1c72f7673825e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): supabase/functions/_shared/evermemos_client.ts:516 \u00B7 supabase/functions/_shared/evermemos_client.ts:544 \u00B7 supabase/functions/_shared/evermemos_client.ts:599 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c106c22623e2a9f28c40bdb86dc70b980b31b4b879a3ab6c5800524855da8a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): supabase/functions/_shared/guide_memory.ts:88 \u00B7 supabase/functions/weekly-summary/index.ts:178 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd4adb76d287469120dab4aa913dd6cfde382b6f0c635a76f72ce69361b20e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): backend/src/llm.ts:85 \u00B7 supabase/functions/process-tasks/index.ts:86 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/src/llm.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0876d507d4d7f03e59ec797e6071da082dfd5a3d31dbccc96c3ce9978236bb5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/_shared/agent_planner_test.ts:81 \u00B7 supabase/functions/_shared/agent_planner_test.ts:107 \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":"supabase/functions/_shared/agent_planner_test.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1cc7c4268ce8e4c1d00f166fccf7ce047e27847ee3df9b89c927b2dd9f1e33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:273 \u00B7 supabase/functions/agent-turn/index_test.ts:40 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b0c03e49f1d6a4e64cba6118a08bf13ae1fb288c63c3f9be7e6aa8de1c7203"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/_shared/evermemos_client.ts:549 \u00B7 supabase/functions/_shared/evermemos_client.ts:604 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"db80df0fed2ca77bd73f12c93365d8033f150fdc3d0cb33cd9e9746a863e3b88"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/_shared/guide_memory.ts:1121 \u00B7 supabase/functions/memory-patrol/index.ts:225 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1121}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba3b2a79fb1230c8202fdeb15cdac385b88d2409ea8b4cfc2471c99133dc78a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/agent-step-complete/index_test.ts:31 \u00B7 supabase/functions/agent-step-complete/index_test.ts:55 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index_test.ts"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c46b3ad0137042df7721883dee20cc634ffef40cf574c47b5697674a7163ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/knowledge-extraction/index.ts:26 \u00B7 supabase/functions/memory-recommender/index.ts:170 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/knowledge-extraction/index.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4ba79228a4eab17dab997ea0788b70bbf91fcad28facd9b91ee39e473e1f81"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): supabase/functions/knowledge-extraction/index.ts:57 \u00B7 supabase/functions/memory-patrol/index.ts:370 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/knowledge-extraction/index.ts"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc56b7bf07330451ce27bcc93b55a396a5662b35ccc1f52451cd47eb2e630b83"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:1325 \u00B7 promo-video/src/EarthOnlinePromo.tsx:1363 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1325}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f15edf8516e84eada8e9bc9b5a589c71e1ca410303c9e05ce49a3391a11a506"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/_shared/agent_planner.ts:46 \u00B7 supabase/functions/_shared/agent_planner.ts:57 \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":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f2ba920353b1a0db1ae34c8ea03687e90970371e42ed19bd24fecb34a737550"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:93 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:103 \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":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86d9cfad558edd57dfa2f13f766b1c97846c05c7f8443b7f7e5a2ad2714ca73"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:226 \u00B7 supabase/functions/agent-step-complete/index_test.ts:194 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f9370656577fde42553c5e57ee1f6560d8d05fe2db152f272313724381cfcb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/_shared/evermemos_client.ts:445 \u00B7 supabase/functions/_shared/evermemos_client.ts:484 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c2acbe2449a3541406e04365cd0147c6e1fbc982063f8dc461f82e4fe7feb9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): supabase/functions/breakpoint-detector/index.ts:112 \u00B7 supabase/functions/breakpoint-detector/index.ts:124 \u00B7 supabase/functions/breakpoint-detector/index.ts:136 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/breakpoint-detector/index.ts"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"d536eee810e7fbf49b33abb9ca1bca6c2a1acfcf1e700284b53edc1d182b9259"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/feishu-notifier/index.ts:258 \u00B7 supabase/functions/task-reminder/index.ts:172 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"98343108f0d6e594e794724100f04a33c956a543a1e9c816bfcfbf2b52dfea4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): supabase/functions/sync-user-memory/index.ts:80 \u00B7 supabase/functions/wechat-webhook/index.ts:352 \u2014 the two spans are one implementation copied and then locally edited \u2014 57 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a7b6cd49ad415be0db69fec1cd6cd680b3ed89b0d1a7bb6a2c0edb166e4090"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): supabase/functions/weekly-report-push/index.ts:229 \u00B7 supabase/functions/weekly-summary-enqueue/index.ts:66 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1622ddb45df7940420365a523d9ea17b01fabbaa39a22f53b7ee602dc2fe4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): promo-video/src/EarthOnlineCompetition.tsx:248 \u00B7 promo-video/src/EarthOnlinePromo.tsx:241 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff87ef01c10ff918bd6d158c3328da954a520abd03e6366cbd8d3a8ff1c0373"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): promo-video/src/EverMemOSDemo.tsx:246 \u00B7 promo-video/src/EverMemOSDemo.tsx:321 \u00B7 promo-video/src/EverMemOSDemo.tsx:463 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EverMemOSDemo.tsx"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b49aa1f9e2609aa795f720e766d85b8364455cbc4130e1283223e9b3c791a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): promo-video/src/EverMemOSDemo.tsx:681 \u00B7 promo-video/src/EverMemOSDemo.tsx:786 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EverMemOSDemo.tsx"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"25bc3668e45826e0e41c03069b88b8fd3e348149fbaa03f2c0ad48d57c23dd3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8 locations): supabase/functions/_shared/agent_planner_test.ts:16 \u00B7 supabase/functions/_shared/agent_planner_test.ts:32 \u00B7 supabase/functions/_shared/agent_planner_test.ts:47 \u00B7 supabase/functions/_shared/agent_planner_test.ts:62 \u00B7 \u002B4 more site(s) not listed \u2014 all 8 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner_test.ts"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99dbf4bddba0562e6d48bc53ef24e685ab4c6deea42dabdcd1229d51073f473"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): supabase/functions/guide-portrait-generate/index.ts:412 \u00B7 supabase/functions/knowledge-extraction/index.ts:58 \u00B7 supabase/functions/memory-patrol/index.ts:371 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4072ee0e09827c57d212ebfc1aeb10e6ed541af8f4676b444a5f7686cec563"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): supabase/functions/process-tasks/index.ts:175 \u00B7 supabase/functions/webhook/index.ts:94 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/process-tasks/index.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fceba746ec3fa04c2c35cda65f2167b204d931866df84ab9212e3a9f0b9d32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): supabase/functions/sync-user-memory/index.ts:304 \u00B7 supabase/functions/sync-user-memory/index.ts:315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61db00896a539d8516eebffb0ac4bd86ad0c03dd094f584be94a398a930b034"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): backend/src/llm.ts:4 \u00B7 supabase/functions/process-tasks/index.ts:13 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/src/llm.ts"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9881631e88941d0d6f2252781e3ad7b2f2cf1859fe16c56b2abea9eca991a1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6 locations): promo-video/src/EarthOnlinePromo.tsx:507 \u00B7 promo-video/src/EarthOnlinePromo.tsx:575 \u00B7 promo-video/src/EarthOnlinePromo.tsx:723 \u00B7 promo-video/src/EarthOnlinePromo.tsx:807 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b208f9f31c35f6d5d6a30f8ff6dd5b01e5bbd44a4a8a706b472c4a45342e69ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:805 \u00B7 promo-video/src/EarthOnlinePromo.tsx:978 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb73763cffd556a58a0dd680f90f22761e8ad9e9b364536b465b6e5446ddb1a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/_shared/agent_tool_execution_test.ts:81 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:99 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"488394dfd6a6263f066628b0d019789d9a71ab6b72602402146e9eecf8b306ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/_shared/agent_types.ts:89 \u00B7 supabase/functions/_shared/http.ts:11 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_types.ts"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe17e02cfa80e34486c44bf078e48f5272317d77b06981824b47c7c0f133a45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/_shared/breakpoint_helpers.ts:28 \u00B7 supabase/functions/weekly-summary/index.ts:55 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1d0dcc51425e4ac3a88ef56dae27b2a352406789bd4eb1d8136973177bad33"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): supabase/functions/evermemos-proxy/index.ts:15 \u00B7 supabase/functions/guide-chat/index.ts:5 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/evermemos-proxy/index.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ffd831199d986d309efcd704019d351e5ad1e3384c45dfc65ee58578bfedfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/guide-chat/index.ts:20 \u00B7 supabase/functions/knowledge-extraction/index.ts:40 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-chat/index.ts"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1bdefdbf218abdca941bf7d319df39d9b3abea89cc1fa13ad4aaeec70dcdfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/knowledge-extraction/index.ts:40 \u00B7 supabase/functions/parse-quest/index.ts:177 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/knowledge-extraction/index.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eba60eefc517818ab7efd6923958124148a360e18c295b9654e02aa6811cb8c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/process-tasks/index.ts:6 \u00B7 supabase/functions/webhook/index.ts:5 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS \u2014 bindings the module declares and exports \u2014 rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER \u2014 the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration \u2014 one binding per distinct thing, differing precisely in the thing each one names \u2014 the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/process-tasks/index.ts"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6a4d2240c089c195e26cc0e1847aba21b625ef71422403614475a1372022e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): supabase/functions/sync-user-memory/index.ts:470 \u00B7 supabase/functions/weekly-report-push/index.ts:328 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0622112e3f2658c918fca5d14a3126dfc19cb5747aed596d2d6fa0bdd8200e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:234 \u00B7 promo-video/src/EverMemOSDemo.tsx:19 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b156e4089808073549cd65eefdb8d00348883a2bc9f29e7caa777fd88e345ec"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:875 \u00B7 promo-video/src/EarthOnlinePromo.tsx:1250 \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":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"637158c0dc8fce579a8497d85f81a357dbd51d236727363f722ddb1cb39dec68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): promo-video/src/EarthOnlinePromo.tsx:1080 \u00B7 promo-video/src/EarthOnlinePromo.tsx:1264 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e06b748c18c026cdf172e6f0f321f0d16aa560e28b0a3b783473ed80bc14d56"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): supabase/functions/_shared/guide_memory.ts:59 \u00B7 supabase/functions/weekly-summary/index.ts:17 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c50735d5e4af9dcf4dde1fab631be567af3929baf812b95f68d1f911224b44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): supabase/functions/_shared/agent_tool_execution_test.ts:76 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:94 \u00B7 supabase/functions/_shared/agent_tool_execution_test.ts:104 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d81ab0aa2da4a050f092470f415d07e0f1540a91eb1378300d7e623f899c26"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): supabase/functions/_shared/guide_ai.ts:203 \u00B7 supabase/functions/_shared/guide_ai.ts:227 \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":"supabase/functions/_shared/guide_ai.ts"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"4221003c73f75050b3b7c85ed37ab102a74e9e9b6080431169e2f5717427d66d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): supabase/functions/_shared/guide_engine.ts:27 \u00B7 supabase/functions/_shared/weekly_summary_jobs.ts:25 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"8926fd3285becb6f054fbf162f2b167ec6227ffa1716731560844e3dec8c4f3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function gatherGuideMemoryBundle (cyclomatic 42, cognitive 59): gatherGuideMemoryBundle has cyclomatic complexity 42 and cognitive complexity 59; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb418b3ae2d78b5114c6e1f8098517abf06bbbf606072fb485e9295f64f46373"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function planAgentGoal (cyclomatic 30, cognitive 42): planAgentGoal has cyclomatic complexity 30 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bdc30c8b697bd1ec54904a565a8ead50ae3d411217702ffb6f61de44f25564"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 28, cognitive 41): (anonymous) has cyclomatic complexity 28 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6b6f23f99c83693138e6eea327c5f740a9c4a181703a21fbb6b0d2da3d719b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferAgentRiskLevel (cyclomatic 28, cognitive 28): inferAgentRiskLevel has cyclomatic complexity 28 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_policy.ts"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c97872c4767146a3680a9d0f67cf25e548ce0b0ec875d704a24683601f1559"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 30): (anonymous) has cyclomatic complexity 26 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe6c94d7cbb75779c306c4ded93ff294f9348244db19ab958272783c6ac9e10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 32): (anonymous) has cyclomatic complexity 25 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7b8edac81a0b9a5f6e14ca4007400a3202b7f6635892974d67c8b9c668256c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 23, cognitive 28): (anonymous) has cyclomatic complexity 23 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c15b63686aff5c5b4b6138b069ea7f6bcbe190d56f5971eb637cb70e5deabaa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateImageViaOpenAI (cyclomatic 22, cognitive 29): generateImageViaOpenAI has cyclomatic complexity 22 and cognitive complexity 29; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdf9506e1b474019a91b9d5b0e457c1fc364812073ff62eb9da081e584bc55b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 20): (anonymous) has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-freeform-chat/index.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35cfe4f0f1862f3242da7c540045c622c109c436ebb8175e24243a911f280d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tryDetectMemoryAchievements (cyclomatic 19, cognitive 41): tryDetectMemoryAchievements has cyclomatic complexity 19 and cognitive complexity 41; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd5daabdceea5675c1e680bca67195cce257d368d968a6c21eb952660478f6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 23): (anonymous) has cyclomatic complexity 18 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7bc65833c8e3cb0ba77296efa7c0e7803c2eff098da6fed4f1f8679890fbd6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function replanAfterToolCompletion (cyclomatic 17, cognitive 16): replanAfterToolCompletion has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"9095f412b8448588a14dbea00cbb1bd8a0bcc31886cbc8ee8b5d7169d52052a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-document/index.ts"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec22b3b572aaf1ab752a9742683e19aa888b03ce854395e97354f2131e06f6a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isChainBreaking (cyclomatic 16, cognitive 25): isChainBreaking has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c3a9ca31a3f873494929b640c9d903b71f39e6b5c1682ac1be88c2462d966a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function patrolUser (cyclomatic 16, cognitive 19): patrolUser has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d6c4c96ac4086f60c76d6e6337abe80c6f5bc0ed113e47f1420e6bff661e21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 18): (anonymous) has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b1d1bc2d934d00a688481c63f302524d884c0950eeccc39756ad3a0e7b2d07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function searchMemories (cyclomatic 16, cognitive 15): searchMemories has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d9b798d00571b6724d05e0dba1ef795aea812a7584a1f725a8b4138459f1c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 15): (anonymous) has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0501149714b5a739c249eb011aa8725fc8b216552b622dc4550d069efc7dfa69"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLlmPayload (cyclomatic 15, cognitive 21): normalizeLlmPayload has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index.ts"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac82cffaf975ea1211063b24bdc716aeb13369c81a1a06724a41aedf387cd668"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/knowledge-extraction/index.ts"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7420cbcf09932ded882b50141b9d2f1e33e77a11c13c37c65605026693403aa9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e836831486a00da818a3c65e0572f43031c97138713263c945cc8c50e717e7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function acceptOrDismissDailyEvent (cyclomatic 15, cognitive 15): acceptOrDismissDailyEvent has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"52cd23934931bfaf46cd8a854ba7755593bf47299c6e8c9cf177d0e69cf82546"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateBoostContent (cyclomatic 15, cognitive 12): generateBoostContent has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"62810c2316a58b724e93d5fd7dc63cc19e2aa89115bbe6fecd0a75476764c7df"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getActiveHabits (cyclomatic 14, cognitive 16): getActiveHabits has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"21648635a6a227a6c8c6f80bcb275918afd169d546ece10e58869baacc03f5a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildBehaviorSignals (cyclomatic 14, cognitive 15): buildBehaviorSignals has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"69388a1a1dabc4780314724986848a3627606fb71a0df28f6026d95bb963df92"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 14): (anonymous) has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-event-accept/index.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"1843317a4110c692e737a8171f5100e4b445a523fb1a21eed8e5f16b1c8a5818"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendAgentStep (cyclomatic 14, cognitive 11): appendAgentStep has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6243ce0634eda113b6897a9890ef90fd6dc305b68d7d1be53957e6eb946aff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectPatrolSignals (cyclomatic 13, cognitive 19): detectPatrolSignals has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4ff464eae11f4d973e149b048a70f5fc418b7597d0ab23f80a0a64850e626af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 14): (anonymous) has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index.ts"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"78c6b8e6e14d2ac56d5d7b17f39da0e4b82b38ba17a25fea84c9af861c7d3e14"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-turn/index.ts"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"be857a74c94745d65a61a3f8f884d642a55c61ec18b55e3abab84d754eaa6730"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectTimeSlotChains (cyclomatic 12, cognitive 19): detectTimeSlotChains has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91538a382b4dd152245f7c086a537348536be46a675cd34f35d4ce92db60c5b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRecommendations (cyclomatic 12, cognitive 15): parseRecommendations has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-recommender/helpers.ts"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d7a503b3e644162d8216f06382b89d981874271e49eb3df0514d3d1b4cc174"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 14): (anonymous) has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe3f4cdf5ac0af34b3ad60a40329ffd54c87d82330afda474bef2cddffcce1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferRunStatusFromSteps (cyclomatic 12, cognitive 12): inferRunStatusFromSteps has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"6963a2af514e38fa8fa610918689b41b7d0176da786819d1e5caa6aaaa576587"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-bootstrap/index.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb9b222ab361df2575f6bbcad857377d4b9f17fb43b3da89060506ee83a44ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-chat/index.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d8b918083830cf6df725f1222bfed2137ced65ebe785afa74c32631e024547"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-event-generate/index.ts"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0be152d9f6e65ea4f7408929f7a67f69fe3247bd6b38d05ace5e45ca24a7d31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-night-reflection/index.ts"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"afbf46fda2eedb85a4c035c0d9da8b26b7a0faee74d221d66246ee039caa443b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeSuggestedTask (cyclomatic 12, cognitive 10): normalizeSuggestedTask has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f44761ba41f2fc2f913a4e084b65ebf54195fe40f10e2abb8aad1b077a6f5c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectWeeklyCycleChains (cyclomatic 11, cognitive 21): detectWeeklyCycleChains has cyclomatic complexity 11 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"996331759f84de73c557618a10eb1276c4d6212ab46dfcd08dfd54bda30fb2a9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createMemory (cyclomatic 11, cognitive 14): createMemory has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"d132d433d4d94a81c9ce052bb24c2e562c95af9c1b9501ecc38f2791ce5073a2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectPushRecoverChains (cyclomatic 11, cognitive 13): detectPushRecoverChains has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b4dc7c2d34b797f033453525bb4e8fd804b0e9d4f0ac55a551be6f8fdc3c80"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildIntermediateResultStep (cyclomatic 11, cognitive 12): buildIntermediateResultStep has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"87724ced5b9102bc395f46f3384d717e8ad4ff2bf319bf7d1e98fcf06e3338bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldKeepStructuredMemoryItem (cyclomatic 11, cognitive 12): shouldKeepStructuredMemoryItem has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc08c1fd550f15b018b3cbdf9fa7232d56527ad20236480f84f39e0968e5afa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/task-reminder/index.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ce27a4ac6e68ae39a081a78423780bb6d15aa21258527faa254cba08d0774e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/webhook/index.ts"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"768477a63f1206c2e417954ccc255fabfb7828afb863d3c1feb223a828130639"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary/index.ts"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"04719a24bbfd2d7949d8f2e3b29eff1b34fc7b62ee004f5316ae448c6ae8db39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/src/index.ts"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b98e06546d92a9b47c526091b8ab6cd158d7fc428793642ef0b29b4b5389230"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function serializeAgentRunStep (cyclomatic 11, cognitive 10): serializeAgentRunStep has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"57abfbcfa03bd283d45068d205905bf28ac59e5cd1bbfb447a4b9208ba0ba7b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function heuristicContinuation (cyclomatic 11, cognitive 10): heuristicContinuation has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15269260ced22b98dc1b1fc8de04a71cffbda825f53aa91ce3cd82af22ee654"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendStep (cyclomatic 11, cognitive 10): appendStep has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index_test.ts"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"56312ca3ae4459fe73ad82052b1f3c60839d5efa51d539ad40c1471934027e2a"}},{"ruleId":"R3","level":"warning","message":{"text":"promo-video/src/EarthOnlinePromo.tsx: 1465 lines of code: promo-video/src/EarthOnlinePromo.tsx has 1465 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlinePromo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1f96ffe2f90a6b6911cc7794baabff4bf3a81b9476ae3f3425817e6ac6b6d8"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/guide_memory.ts: 1249 lines of code: supabase/functions/_shared/guide_memory.ts has 1249 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"282f6490434b6e9a7743169424914f3f1ed8cdaf7b2510cb20754e244a29a3d4"}},{"ruleId":"R3","level":"warning","message":{"text":"promo-video/src/EarthOnlineCompetition.tsx: 860 lines of code: promo-video/src/EarthOnlineCompetition.tsx has 860 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EarthOnlineCompetition.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36c81e27937ec5939192e0df161a84eaa2ac1b133636d3816becbaeca4feb8"}},{"ruleId":"R3","level":"warning","message":{"text":"promo-video/src/EverMemOSDemo.tsx: 777 lines of code: promo-video/src/EverMemOSDemo.tsx has 777 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/EverMemOSDemo.tsx"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4caf3e615559459c80b90e929851a3962173aed6d136ce46efd10d256e3d65c6"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/agent_planner.ts: 701 lines of code: supabase/functions/_shared/agent_planner.ts has 701 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e6dcc4a8b8d4eb5258c42099391ca5a2a266a9e5d13d05d8423e4a76eb4799"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/guide_ai.ts: 683 lines of code: supabase/functions/_shared/guide_ai.ts has 683 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"244a6f18fa6a68d4663e0d35d426eacd1b854bc0fb91947067bae98052a45168"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/guide_engine.ts: 616 lines of code: supabase/functions/_shared/guide_engine.ts has 616 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa71659a44056f588a94f3fcbccf045b39eda6275c6a7cd5a08ffb6c80a1f62"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/evermemos_client.ts: 573 lines of code: supabase/functions/_shared/evermemos_client.ts has 573 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/evermemos_client.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"406327b75f3f34f2852cfca7a569928814c4f5e24d473fe56585545fbc1f5ac3"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/weekly-summary/index.ts: 541 lines of code: supabase/functions/weekly-summary/index.ts has 541 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"238cc997d6119752a51c26b5e233755e1dff28ece75f8493fffef4ff1cb61ceb"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/guide-portrait-generate/index.ts: 430 lines of code: supabase/functions/guide-portrait-generate/index.ts has 430 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eea92309403af11983f4e8d59e9bc0c4989ba72acccd982c054200725270b7f1"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/sync-user-memory/index.ts: 422 lines of code: supabase/functions/sync-user-memory/index.ts has 422 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07074e144293be4c0a605ac92f2c1718b524e08ac0d5f699bc89d13659152da"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/_shared/agent_engine.ts: 412 lines of code: supabase/functions/_shared/agent_engine.ts has 412 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b15e659e31c926467930330a1690c13375e025f0653dac81be7be73d15b7ee"}},{"ruleId":"R3","level":"warning","message":{"text":"supabase/functions/memory-patrol/index.ts: 401 lines of code: supabase/functions/memory-patrol/index.ts has 401 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d7d3e70587bf709c2d52ea3d310e0232e7afb2f7e5b6c896d880beaa76e4f4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test rig can mount a component in this workspace: backend/vitest.config.ts declares environment \u0022node\u0022, and no package here declares a DOM implementation (jsdom / happy-dom), a component testing library or a browser runner \u2014 so none of the 4 unreached component module(s) can be tested as written, however the suite is authored: promo-video/src/EarthOnlinePromo.tsx, promo-video/src/EarthOnlineCompetition.tsx, promo-video/src/EverMemOSDemo.tsx, promo-video/src/Root.tsx. Add a DOM environment and a component testing library (for example jsdom \u002B @testing-library, or the runner\u0027s browser mode), then test the components. Reported once because these files share one cause, not one omission each."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/vitest.config.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"471e8de4496a8e9522d3dbb6b2df94a046d4297c2f1f69ce99c46c98fbd8dd10"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbb8cacf902472f9c92673689a33b9dcb9084af769c81582e7ca5277cbd3809"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c21f162b7ef1368233b655c6757de7ba12de9a3772409eb7c68007474648c08"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d4d53bd642f43dd39ff9a78ac79d7c5b8828a27a2cc94cb62a3d4fe27b5174"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52043d6fe0c4c39acc53c2f729cc99b6f71fe772e44d2a834e2bc295bb25f8b0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"826a144e54857f2e813eb6a50e2a41b21e1ecaffe38b370fe0b371cb4eec8b0a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6a25ae098587b369e01dafb885450efb596867e9dbd9c5f820f77900e9999f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/wechat-webhook/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1aac98ac9365c81994cc264901df37bc21d59483ead04672f027e59503dec7a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a2207a6ec17604f4b87fabb3205457e8d9e10bfefc62f8ca0e7984d4b670ed"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"087d0448cc75172278cd97f7c578f8197a903a79decc5dcc4cb9604b81bb5b91"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-report-push/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"890a1c2336f488651945d8b9ccc33362d4ed17720bcfc656861200d013eb4faf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64eb95ce76483355df3c44319eb2cd15d5edf36f1042621df38696e59058d560"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2cf8bf87a003070764b15ede57e76671aabdfede9d7f76bb1d500d40bddd6e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d6f0b417e37e5051c1658533a4645d841eeb7b1add59d9ea422a2ce1b9a7fe"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-recommender/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab51ae4a13ff1e5cc66f09ec5193e20c31c0d198dccbae117b3f471657fc256c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-turn/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60853f6a3dc284343216e090b72075d847c0952e7efe946532f474e5e2086dd1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0bdaf224932ddbeb1a5f3d1019ea4c802bf18ebb47640cb55e6c3460acc6d1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/evermemos-scenes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b1bcb8aea81b0013578a7237af1bf0d3b05c60495a97eb509f2cec5a032f98"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-complete/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9d74e436b47f206c4978fac24d30026b4f9420d09cab03c2e19e2973868f10"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5acca7dc6b4ed42c4dee664adc383190c14156cdd6d5a474b68785b325b88c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/process-tasks/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bc2ee04f4535b17592d1a725de785e56a2570de861869bd3c472b93dbe74f6"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary-enqueue/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"809b6f8b74e6609166eff12bddba99472dd5d3780ebf50b421f9e39e54df81c2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/task-reminder/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9671953ad097cabf64547e914d592670c111dcec58a122f119137b03b5570a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc3b35dceb35d3380c914755b2a68595f9e91653d2dbd4cd5ae73bc5a077fff"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79c49bf9f8b9e46a3f50655a601bf6ceb6a127033c36ead87dfaf7a5c2af3c3f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/breakpoint-detector/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bb05ef6492f50a9969d148a472ca4a859224e050bbb8da999f8b2a31a58999"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_memory_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f219b2c73a72917f99f6b3ad37b2ea2ca5488dde27de72eb0037de0aa8e7718f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_types.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffbc713a61f17f064d66690071d1eec9c534d1c688bee3fd74e7eac3008511e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-step-approve/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2f2bfab334642c33e961e4a66c3cbd377e98bb3f763aa51d0d45667dfa97ba"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa46ec6597c441b42510520203783920d42ba297050fdba2afc574f30039321e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-turn/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a73b07ed1681d304d0717c731f5e2e62951d192f9de38f44a7685d9f835b7ba"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/scenes.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92bd0156d1a7ddd409ca86d4f7703ac2d49b5ce21326118cc637cdaf71a791d5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/weekly-summary-job/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"138a2f65704edb2b959afbc4885bb3dc1326b6be46c4a33a4bb6879ce02a1a21"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/generate-breakpoint-boost/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad75afe1257e9354195dfd5f158d6648d887cd42d3e854195710be3b9bbdd26"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/pregenerate-breakpoint/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59b21be9f95f93e61dd1d63f1a5296ecdcaa53d1f34dc8593b0056bde1b5452"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2704230ba6db3d0f60c4b613c6a7178dff892d8893c964da07aef2084e70cf"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4f371bcae35c02f72e9f783e4716bc59ec5cee8a6992def8b9020d3c06d98b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-freeform-chat/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbbb0e8461038032dae5ff993154837db89efade44f2fa301c58f464410387ad"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_policy.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90038c45f2c1d1f1d5cbbafe099f57b73c602d27124e9d2e4bdd872eb3a1f52"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/scenes.zh.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5016c8b2ed892f32b368cdd4fd06483b86545f5f7f183dd6688dd176799b01a5"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/knowledge-extraction/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f7b62fcdc0eab20795adc4172d032cc713d0a80f5b13631f27dcb1f53c389b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/wechat_agent.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0921152640745c0e67fe566b8a236fecdf3ed50e8835b5926beda13cec4ba602"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/webhook/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0216c7930fdd86e36388d9b05f95eb6fcd1e851161658193122fc5e0813e92e9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_policy_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba49eccefbfbc5d103044d1e38f1ef8b4a98f3b02c0c7e9b94aad5d5b9065e5d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c2633a08331e38a8f20d66709e49aaebfe5cb57186aef2968c1967eb03a915a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d90b05d198a2d56ff6022c337152d2749634aafb0a31cb41249f61c347037bc4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/auth_guard.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2dfcd7a404f87bf88dc7987b34c60bef93d104f3282432b96369cd226bee3e"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai_language_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"284e0cdd6eff8c834784b22bc34a166a3f96213bc1ee3ee95ca89a7e980e152b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/weekly_summary_jobs.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e253c707d95c0902fe565d39ae121216cf891495dab833b1683c1bf1bb3c5f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/evermemos-proxy/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1203ffa8b81c0f9889f51ee5b5066a62899286a97a68b5cdf5d8ba1b00ebb154"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/generate-binding-code/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2a398706ea755afe27028c497b63ab4ebeab31f9785d676bfc839aa8e3a4ea"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/wechat_agent_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42e87cc4fe6745304bd33880d5ef8fbbf3a9b010f18989814848a40a19bbf29"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1bdab21349c8d6af77731df818b6beee9848ec3dfd0a84e64e71ed77ec6fa9"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-event-generate/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b752513cccbef46e1b408d583c992b216114a998562347eeabca210616f34701"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-night-reflection/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69175efca8d517d0215a1c51deb563534f1318ad2e8ab3f070f0ee8c1a30cbae"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-bootstrap/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45d5d8c4e54df13cf6217d19921b9dc8bf30d9be5d809a3d49fec04662e3b310"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-chat/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb004e617594874f25b2ccc128713a055dedaeb20dbe3fbf1454a42cfcd4643"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/weekly_summary_jobs_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"515ad66ee3223b096ab5ad73625ef6fd8e926449aa98f0dfae1d6a6d3060a103"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-event-accept/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5954b735c43ac8077f11c32dba97961b78020a3267b993fa15f086341958cd7"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82685cc0f3fc005961b4f93e5d54af5a2dbd0c6e0f39acc65bcad23f5ff65314"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/helpers_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b9feaab1f851a72482251ba7e93f9fe6d9bfd6a22399e5fd3f1f584f6a9ae0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"promo-video/src/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ba32cfb985bc2909fbc75800110e9219e43df9c03bc6d2cf3b43a6d579ad6f"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~391 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), but 2 in-repo import(s) from 2 other file(s) do name it (supabase/functions/generate-breakpoint-boost/index.ts, supabase/functions/pregenerate-breakpoint/index.ts) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_helpers.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e31635c57a7110fdd91925aa735b2f0c3e891e2d509c6942b8d67d76d00104b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~344 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_tool_execution_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2da6fec0875f622ea8fb062ee547535b58bfece6d744504501cbb7b88aef6bc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~274 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e94382de4d4598cfc5d56a2c2d32684618a87e2ee46d4ee8eafaa7dece17731"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~180 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), but 5 in-repo import(s) from 5 other file(s) do name it (supabase/functions/_shared/breakpoint_helpers.ts, supabase/functions/_shared/breakpoint_memory_test.ts, supabase/functions/breakpoint-detector/index.ts and 2 more) \u2014 every one of those referrers is itself unreachable, so this file is dead only as a member of that cluster: if any referrer is in fact alive, this row falls with it"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_memory.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"676d7a576a0a875538a7d526398cbf67d7eee8c12f0a78ef8208e6d3ab949ddc"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~164 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/breakpoint-detector/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01baf71dbf56f0034e73de786669403714ad30c0d9b47b22358eaf9108c922b0"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~160 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/breakpoint_memory_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"567aaa0ed101cc1f9f472e60e4b1c51f3efa3c2af6157f1356fd1579f893c209"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~144 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60350218a7a70572128f2e2de2d50e77d5219f555b0a4c25a28217940184fb5e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~133 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/generate-breakpoint-boost/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6c1ca0c7f6c576b12f6b827a163b5aa998a173c3e276f4067fedc7be530c01"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~132 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/pregenerate-breakpoint/index.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a098ffb0d970e539224cd63568906ae89e17918cf6a05094af23f74be006d3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~126 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_engine_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a2d5804f1e9854bd039c575f15c33eadb5b874b4e403cb51f3d193ce01ca7c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~71 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai_language_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b58d3c498be5a6e80689a239020f08316dd399030e4d353d4806bb950f3948"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~62 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/wechat_agent_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecfa502fee7ea396146abde5b1b86daf78ae49463e9bc9d782b997b1359add73"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~62 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfbf5c266004659fa01caedd45e5fb5b73cc45efd0ddc114376bbd0641d3c98"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~48 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/weekly_summary_jobs_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b81283ae8385b561c2e9aa761704d3540c7a893f1c647da5682e3bb460c9ba"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~38 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-quest/index_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf821922213e0cfe747ee0ca620ba17351f3fb62504cf502e9595f1810b4c9b5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/helpers_test.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a39a79f5c51ed41b72d4bdd2dd5c1dbe6fb01e1dfc1a4e14c0a8ae8748e5532"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~2 LoC): no import path from any entry point (39 application, 1 tooling, 38 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/cors.ts"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee84cb712e3e5356bcf448ec22c2b47cdfcebcc52689b398609170fd07721d2"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027isAgentStepTerminalStatus\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_types.ts"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45fbe5f4f12b65779e88019d61d6eac7b815be5580c72302e7e28a13ca0b451"}},{"ruleId":"R7","level":"note","message":{"text":"Unused export \u0027detectGuideLanguage\u0027: Nothing imports this binding \u2014 it is safe to review for removal."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_ai.ts"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d94da458f4608e6d6ce21efd8b06a7de14d89e08d7a537f9dc81130f8407a2a"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027buildImageUrl\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"55dddd2e240d14116bf45f8c1a04c7c9c8f5172ce35855a9d0f51437678d79a9"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027touchImage\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/guide-portrait-generate/index.ts"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"8801ae911a349c4611570750117e648d9b8bbe7279d265be68998f5ade0a4fbe"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027DAY_MS\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/tests/habit_chain_detection_property_test.ts"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b4a0cdfff8251751c09052e6c8795f13cf00406483f17bf8b5defbab1c1be4"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027pptxgenjs\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"b272909a6d3266aa0bd7aef1d55b1b54a7d94109191fc99179ef77de048a1fd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!step.isToolCall || !step.isReady || step.needsConfirmation\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d2e034ece75db6fa3758f767c6f03647ef021723f2a1d66583896e4329f77e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060accessToken == null || accessToken.isEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/core/services/agent_service.dart, frontend/lib/core/services/quest_service.dart. 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":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd90d1f4a94605d4c0f5ed97576eb67522f2babfe8bca0106bd0660b404100e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060achievement.xpBonus \u003E 0 || achievement.goldBonus \u003E 0\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/achievement/widgets/achievement_card.dart, frontend/lib/features/achievement/widgets/achievement_unlock_overlay.dart. 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":"frontend/lib/features/achievement/widgets/achievement_card.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"46667de9d8a3f285c254373f22a33ca174cf2f9237275a6184a804e031184d00"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cleaned == \u0027\u6062\u590D\u0027 || cleaned == \u0027\u6062\u590D\u4E00\u4E0B\u0027 || lowerCleaned == \u0027recovery\u0027 || lowerCleaned == \u0027recovery task\u0027\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"e00e1be3b723cf64f5926e772cca51676c81c4ce0f1a0ecb1128859c53c11c84"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060createdRaw is String \u0026\u0026 createdRaw.isNotEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/memory/models/memory_item.dart, frontend/lib/features/memory/models/portrait_timeline_item.dart. 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":"frontend/lib/features/memory/models/memory_item.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c25ca240690ca3c25a8c2db722b6bbd124dae7cf02b4985ae72b063017bdb79"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060glassTint != oldDelegate.glassTint || isDark != oldDelegate.isDark\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/widgets/quest_board_fab.dart, frontend/lib/features/quest/widgets/quick_add_bar.dart. 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":"frontend/lib/features/quest/widgets/quest_board_fab.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d80abe3c5efde2a2e5bb02e111e4e39ae31e8ba4fa683659faa63d7c898497"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.eventType == \u0027image_recognition\u0027 \u0026\u0026 item.imageUrl != null \u0026\u0026 item.imageUrl!.isNotEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/memory/screens/memory_detail_page.dart, frontend/lib/features/memory/widgets/memory_card.dart. 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":"frontend/lib/features/memory/screens/memory_detail_page.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5d2236959eddf081178b0e0c2f8ef742c74be485a70eeec8bd233ee0c00ab5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pendingStepId == null || pendingStepId.isEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eeb75855f2e9aad48dbb0baa3bfb5420d5871610683b328b6b52998bed7d1c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060raw.contains(\u0027\u6062\u590D\u4EFB\u52A1\u0027) || lowerRaw.contains(\u0027recovery task\u0027)\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"380103e57af7e71a8e2f7406e8c7c194e6e44da1d7b53197de7c7c8888f7b5e3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode \u003E= 200 \u0026\u0026 response.statusCode \u003C 300\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1743}}}],"partialFingerprints":{"codehealthFindingId/v1":"2155bf0d2594ad6fe0f6cf167a95ef47a0be35c33e6c0154021946187ac9d18e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.dailyEvent != null \u0026\u0026 result.dailyEvent!.isPending\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"df18ce91f2b43a15e9694f0d36ec6cdc8ec1d942d048c81aa3661cd441c5d326"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.reply.trim().isNotEmpty || result.messageCard != null || result.resultCard != null || result.quickActions.isNotEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dba63fbeeff6ed494e876ad77ef93b2f49b0f9b273ae0b432bab71e75ab9ef7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rewardTitlesZh.isNotEmpty \u0026\u0026 rewardTitlesEn.isNotEmpty\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8535c4d5b5ffabd59c1bd4d6b9f8da4458038114aaaa80c23eaae10010895a65"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status == \u0027notListening\u0027 || status == \u0027done\u0027\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/memory/controllers/memory_controller.dart, frontend/lib/features/quest/widgets/quick_add_bar.dart. 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":"frontend/lib/features/memory/controllers/memory_controller.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7e48c66baa9394f1e43de08e1d3085afaee02bbf8310e0d939424ad84272a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060title.isNotEmpty \u0026\u0026 (query.contains(title) || title.contains(query))\u0060 appears character-identically in 2 files \u2014 frontend/lib/features/quest/controllers/guide_controller.dart, frontend/lib/features/quest/screens/home_page.dart. 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":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1524}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf40e647eccde3a54b2de82700d0aee6913f34762faabc596ccf021a717dcc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!supabaseUrl || !supabaseAnonKey || !serviceRole\u0060 appears character-identically in 5 files \u2014 supabase/functions/agent-run-status/index.ts, supabase/functions/agent-step-approve/index.ts, supabase/functions/agent-step-complete/index.ts, supabase/functions/agent-turn/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/agent-run-status/index.ts"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09583998f01e370bcc2fcfe160b6041200488f02a9453ea3116be6dc3184bf2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!user_id || duration_hours == null || !breakpoint_type || !last_active_at\u0060 appears character-identically in 2 files \u2014 supabase/functions/generate-breakpoint-boost/index.ts, supabase/functions/pregenerate-breakpoint/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/generate-breakpoint-boost/index.ts"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e001f779523d1d9a0ac7809ab797b07a94a10e9be84c3517fb54f8ba5f70028"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Deno.env.get(\u0022OPENAI_API_KEY\u0022) || Deno.env.get(\u0022DEEPSEEK_API_KEY\u0022) || \u0022\u0022\u0060 appears character-identically in 3 files \u2014 supabase/functions/_shared/agent_planner.ts, supabase/functions/_shared/breakpoint_helpers.ts, supabase/functions/guide-freeform-chat/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"33429ab4507304c07f8857d815b4a960e203b537d910f5978f1e47501e172c86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Deno.env.get(\u0022OPENAI_BASE_URL\u0022) || Deno.env.get(\u0022DEEPSEEK_BASE_URL\u0022) || \u0022https://api.86gamestore.com\u0022\u0060 appears character-identically in 4 files \u2014 supabase/functions/_shared/agent_planner.ts, supabase/functions/_shared/breakpoint_helpers.ts, supabase/functions/guide-freeform-chat/index.ts, supabase/functions/weekly-summary/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_planner.ts"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a523e7f9d38d84662fafe10af0cae38e520609f5ab2594f3cd46e1d003c337"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Number.isFinite(timeoutMsRaw) \u0026\u0026 timeoutMsRaw \u003E 0\u0060 appears character-identically in 2 files \u2014 supabase/functions/sync-user-memory/index.ts, supabase/functions/weekly-summary/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/sync-user-memory/index.ts"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"585def110a37d7bf54d585d6f10ec0b5a703cc43263d30f4064e1d911099989d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_cachedToken \u0026\u0026 Date.now() \u003C _tokenExpiresAt - 60_000\u0060 appears character-identically in 2 files \u2014 supabase/functions/memory-patrol/index.ts, supabase/functions/weekly-report-push/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2998963222c0af8efe516df7bc9fb7c060d3a8fc812680b9e4f107c4c32061"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060data?.token \u0026\u0026 new Date(data.expires_at) \u003E new Date(Date.now() \u002B 30 * 60 * 1000)\u0060 appears character-identically in 3 files \u2014 supabase/functions/feishu-notifier/index.ts, supabase/functions/feishu-webhook/index.ts, supabase/functions/task-reminder/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"39318d30460cbfc088a0bd5c1796e1c13fd5bcf810c4f6a2dbe789eb0a313f2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof v === \u0022number\u0022 \u0026\u0026 Number.isFinite(v)\u0060 appears character-identically in 2 files \u2014 supabase/functions/_shared/guide_memory.ts, supabase/functions/memory-patrol/index.ts. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d9238e12605ab589a85134962b99207271e28f7d9f6d11d04cfca0eec43d0c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060toAgentJson\u0060 is exported and takes \u0060value: unknown\u0060 from its caller, and it calls itself at line 107 (\u0060toAgentJson\u0060) with a piece of \u0060value\u0060 (and at line 112) \u2014 and nowhere in \u0060toAgentJson\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. JavaScript sets no limit of its own on that nesting: \u0060JSON.parse\u0060 accepts any depth, so a 100,000-byte body \u2014 inside Express\u0027s default 100kb limit \u2014 parses to 50,000 levels, and a walk like this one throws \u0060RangeError: Maximum call stack size exceeded\u0060 long before it reaches the bottom. Wherever that throw lands, the work fails: a request errors, and a walk running outside any \u0060try\u0060 \u2014 an event handler, a timer, a promise nobody awaits \u2014 takes the Node process down with every other request in flight. Thread a depth argument through \u0060toAgentJson\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/agent_types.ts"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba9c46d254f5fa6b2492f24a4e6e14d69c8c87d5ad3ebfc81896c68c2b1e3504"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_QuestItemState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_controller\u0060 itself (line 44, \u0060AnimationController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_controller.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060AnimationController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_controller.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/widgets/quest_item.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fd08f4bb38f96eed8c744862c27bb632195a110ffa1bfb1ce97e5f2e846cf2"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 11/18 async functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getToken: \u0060getToken\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/task-reminder/index.ts"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"831a2482ad14016a228ff2d64c5b7c74b4e778a41e8877d51d759d4bce865cbd"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: sendCard: \u0060sendCard\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/task-reminder/index.ts"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09410656b2cba266b9e1a20e6111188e3b05390f8d1bd008d1997b2a99c32aa"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: callParseQuest: \u0060callParseQuest\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/parse-document/index.ts"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6475ae36ac037eb0fda637543e80fd2629ec793f607e3d8f28163dcc9bc6f3a0"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getToken: \u0060getToken\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd988bd82bf9739975e58954cda3de439e2e36f33c95a252afb71ce5052be07"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: sendCard: \u0060sendCard\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-webhook/index.ts"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13137a53336f86e43ed8fd53155689e76407d6920dd6e6b94cd0193f2074baf"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: getToken: \u0060getToken\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"be2ca1be1bfb7b73145bb9864626091de6377ab5ff2d5bba7b370911a66ebce5"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: sendCard: \u0060sendCard\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/feishu-notifier/index.ts"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6b4b87a13465ce33bf88f53cd2a8517cdd8543a5f51e7084cb9de8f481ab192"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dfc7aa7f67ee20f08535588908f902b8ba44675f7da42cd53ac6da8db10a0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85d2219c6408c18efa341cd23c6fc0af1220d7345d8dd84405dc8cbbc59da8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/memory-patrol/index.ts"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d0c52370b590c660850f2d14e5c8566c867c2c5520797c6bdadc0f331cd97b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"226d13af4bfd3e581141418c484f036cb459d72d2c2bca648d4c9c3ff511d80f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"498793c77cc6b1557f3b506d9b6da1645948f06e6d3cd65ed8fd5ea4df219c9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76261eabb90b25fbc112ce44262a41c3433ccbf16dbd23f1d83b02c3b9ff6d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd01b009e490fcc25c3badb784e1d5f88186468ffcfd450cd12fe485b5d9e2e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5221860246b8e10c2c18b68e4980949196decdbdcf73b5fdb54470af41d7bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_memory.ts"},"region":{"startLine":1346}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecba10801512f74159d90654957a1d5904ea760df1fe9f12720d8d0d00326f00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/main.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"535a21b1c9439df036f8e60f6914c6621fabaf66606bb36a12ab38503ab613a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8118dc3d333b20ad856cf7443e4d7a2887d00214fa42818bb7733d24cec4217e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"857d6d4c8c1b632d17927f12b1d682053760364cec6423d39d6272b4ed9fc8ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cca0d4fe7cd67eba9ebc78e589586bafef4abda863821a8a7f92a3efd2a9463"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4ad17dfd81e3cd1258d7cfedaa7ff807fdb111a80bcd4b1a73f2108053518c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e842812b54b8c8b81b11ee5db9d82202d089c9eee15aeea7b189cc3a597532"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/screens/home_page.dart"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ac9cdf1dd29b11d025f90069d8a95c40a46f1563a18e09a3efc58ca5c183b66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b7408043eb86c1fdf60087d94ae7cefc0c1794cdd26260bcef8dc0ecd84ea2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/guide_controller.dart"},"region":{"startLine":1791}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bdc7148eb42b8f685502be578485ea6ca008d83fee76856349d9c0e37f8e3bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"514c8524f244bdae2c7f845746f38ccb000fd72f9ee47a3b70397cd000431204"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"be507a5a2f6d800c627b0770e75b83bff6a815fc7a9ab05ef7b931b31036f3ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/quest/controllers/quest_controller.dart"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"637b3e6649038c67b04db4c9295639b4677e4f9f78f7b9d27330314dff85c484"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/profile/controllers/user_profile_controller.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccac06989c519949e3fccaed38bf8865abd717c2b13aa653177fc095d8693b6b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/controllers/memory_controller.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8fba5a4d29228b752a00ddf17a9b872c31df7c83cbe56734e54ab567d4371e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/memory/controllers/memory_controller.dart"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"614b8509774e433b4ae1e612df0abf0da78fcc4efb93fb69c1d4ce1bb7711f5f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/auth/screens/forest_login_web_page_web.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dfa2a8f00f7982d23fc5987506785b16387181e1a016aeee2155a0e8d533276"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/widgets/app_drawer.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab690cf05c7c4663f95d120da3753398fce9a1e3b322d3f62b424e916a540504"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/agent_service.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8a10f836aa84c62bcb719f7b11797face65d82b9e29e38f47b559a89edf75e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/evermemos_service.dart"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaf7f9a8195793f7adadebf820f081c44f1df0a32d590bd2ffcca69f3dff011"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/guide_service.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31633faa33b244f4c33bbd3e4c1d8f9592657a806f76e829c5a9c1e4f7e6c55"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"d931ab1ca425bed4108b3394e3be65327bbc15120d2b93e97d3a665b8a1fc955"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ba1dd9062e938a817f391fc7c9a73b22312b693e908ecf78315f61c611bab6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"462c6653f21423737b80932ce335e618b7366149a8ce5c1dabfc186fb079835a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/core/services/memory_service.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"87055e6673db53a1b9641f1878c6df4af5e892e7f16da9e46279709ad84f1cbf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060consumeXpBoostIfAvailable\u0060 turns every thrown error into \u00601.0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"frontend/lib/features/reward/controllers/reward_controller.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0731b07371ba9157efbfa74588b314087485f1392361fbc7470404659d94b58"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchRecommendations\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/_shared/guide_engine.ts"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"5018805183b9e824a1c23530efcec8111b736745febbaaf8c79aeb3e64c81bae"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060fetchRecommendationsPattern\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"supabase/functions/tests/guide_engine_recommendations_test.ts"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de089e007e5798f2da278a9f4d3ec3f5759fbc5395d4418058666866dab04c7"}}],"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-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-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-209","guid":"da28ecd2-f5c1-7852-ac41-a93b2d668c73","name":"Generation of Error Message Containing Sensitive Information","shortDescription":{"text":"Generation of Error Message Containing Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/209.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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-862","guid":"2d96ecd7-f7f1-7f55-9f3a-43bb5bafdf33","name":"Missing Authorization","shortDescription":{"text":"Missing Authorization"},"helpUri":"https://cwe.mitre.org/data/definitions/862.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-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"Server-Side Request Forgery (SSRF)","shortDescription":{"text":"Server-Side Request Forgery (SSRF)"},"helpUri":"https://cwe.mitre.org/data/definitions/918.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"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-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-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-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"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":77,"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."]}]}