# Quality report — 2026-09-17T19:14:34Z - **Gate**: ❌ **FAIL** - **Commit**: `4edda86` on `feat/acp-webapp` - **qlty**: qlty 0.639.0 linux-arm64 (d9801f1 2026-07-23) - **Run**: #3 (previous: 2026-09-17T19:10:18Z) ## Gate violations - code smells: 2 (max 0) ## Lint issues (`qlty check`) | level | count | vs previous | |---|---|---| | error | 0 | -13 | | warning | 0 | -4 | | note | 0 | -21 | ### Top rules _none_ ### Most affected files _none_ ## Code smells (`qlty smells`) Total: **2** (vs previous: -3) | smell | file | line | detail | |---|---|---|---| | qlty:return-statements | internal/agent/agent.go | 152 | Function with many returns (count = 6): Start | | qlty:return-statements | internal/mockagent/mockagent.go | 106 | Function with many returns (count = 6): play | ## Metrics (`qlty metrics`) | metric | total | vs previous | |---|---|---| | funcs | 106 | +14 | | classes | 27 | ±0 | | fields | 39 | ±0 | | cyclo | 294 | -13 | | complex | 146 | -12 | | lcom | 0 | ±0 | | lines | 2064 | +75 | | loc | 1453 | +55 | ### Most complex files | file | complex | cyclo | loc | |---|---|---|---| | internal/bridge/bridge.go | 26 | 40 | 201 | | internal/mockagent/mockagent.go | 20 | 32 | 176 | | ui/src/reducer.ts | 17 | 53 | 187 | | internal/agent/agent.go | 16 | 31 | 121 | | internal/bridge/ws.go | 14 | 15 | 61 | | internal/agent/client.go | 11 | 28 | 74 | | ui/src/ws.ts | 10 | 13 | 59 | | internal/httpserver/httpserver.go | 8 | 8 | 33 | | ui/src/components/PromptInput.tsx | 7 | 9 | 56 | | ui/src/components/ToolCallCard.tsx | 6 | 19 | 84 | | cmd/ori/main.go | 3 | 7 | 45 | | ui/src/components/ChatThread.tsx | 2 | 10 | 58 | | cmd/ori-mock-agent/main.go | 1 | 4 | 18 | | internal/bridge/protocol.go | 1 | 3 | 42 | | ui/embed.go | 1 | 3 | 13 | ## Trend | run | timestamp | error | warning | smells | complex | gate | |---|---|---|---|---|---|---| | 1 | 2026-09-17T19:09:37Z | 0 | 0 | 5 | 158 | FAIL | | 2 | 2026-09-17T19:10:18Z | 13 | 4 | 5 | 158 | FAIL | | 3 | 2026-09-17T19:14:34Z | 0 | 0 | 2 | 146 | FAIL |