# Quality report — 2026-09-17T19:09:37Z - **Gate**: ❌ **FAIL** - **Commit**: `4edda86` on `feat/acp-webapp` - **qlty**: qlty 0.639.0 linux-arm64 (d9801f1 2026-07-23) - **Run**: #1 (first recorded run) ## Gate violations - code smells: 5 (max 0) ## Lint issues (`qlty check`) _none_ ### Top rules _none_ ### Most affected files _none_ ## Code smells (`qlty smells`) Total: **5** (vs previous: —) | smell | file | line | detail | |---|---|---|---| | qlty:return-statements | internal/agent/agent.go | 152 | Function with many returns (count = 8): Start | | qlty:function-complexity | internal/bridge/ws.go | 16 | Function with high complexity (count = 22): WebSocketHandler | | qlty:return-statements | internal/mockagent/mockagent.go | 106 | Function with many returns (count = 10): play | | qlty:return-statements | ui/src/reducer.ts | 82 | Function with many returns (count = 9): reduceServer | | qlty:return-statements | ui/src/reducer.ts | 119 | Function with many returns (count = 6): reduceUpdate | ## Metrics (`qlty metrics`) | metric | total | vs previous | |---|---|---| | funcs | 92 | — | | classes | 27 | — | | fields | 39 | — | | cyclo | 307 | — | | complex | 158 | — | | lcom | 0 | — | | lines | 1989 | — | | loc | 1398 | — | ### Most complex files | file | complex | cyclo | loc | |---|---|---|---| | internal/bridge/bridge.go | 26 | 40 | 201 | | internal/mockagent/mockagent.go | 24 | 35 | 178 | | internal/bridge/ws.go | 22 | 14 | 47 | | ui/src/reducer.ts | 18 | 66 | 184 | | internal/agent/agent.go | 15 | 29 | 114 | | 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 | 48 | | ui/src/components/ToolCallCard.tsx | 6 | 19 | 78 | | 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 | ## Tooling notes - `qlty check` exit 99: ERROR > Error installing go@1.22.0. > > > Caused by: > 0: Error extracting tar.gz archive from https://go.dev/dl/go1.22.0.linux-arm64.tar.gz > 1: failed to unpack `go/CONTRIBUTING.md` into `/home/agent/.qlty/cache/tools/go/1.22.0-c5a26d064299/CONTRIBUTING.md` > 2: No space left on device (os error 28) ## Trend | run | timestamp | error | warning | smells | complex | gate | |---|---|---|---|---|---|---| | 1 | 2026-09-17T19:09:37Z | 0 | 0 | 5 | 158 | FAIL |