projects

holonet

A multiplayer video game backend in Go

feat: add instructions for bot code review

daniel daum committed parent 184ded5 commit 042c726Signed, not verified

SignedGitea couldn't verify the signature.

Showing 2 changed files with 50 additions and 1 deletion.

AGENTS.mdadded +49 −0
@@ -0,0 +1,49 @@1# AGENTS.md23## Role of AI in this repository45AI is used for **code review only**. It does not write, generate, or commit6code here. Every line in this repository is hand-written by the author.78An AI reviewer (PR-Agent, backed by a self-hosted model) comments on pull9requests automatically. Its output is advisory. The author reads it, decides,10and makes any changes by hand.1112Do not:1314- Suggest replacing code with AI-generated implementations.15- Rewrite large sections. Point at the specific lines and explain the problem.16- Propose adding dependencies to solve something the standard library handles.1718## Project1920Holonet is a WebSocket server written in Go. It accepts client connections,21manages rooms/sessions, and broadcasts messages between clients. It is a22learning and portfolio project; correctness and clarity matter more than23cleverness.2425## What to review for2627Priority order:28291. Concurrency bugs: data races, unguarded shared state, goroutine leaks,30   channels that can block forever, missing context cancellation.312. Connection lifecycle: unclosed connections, missing read/write deadlines,32   ping/pong handling, graceful shutdown.333. Error handling: swallowed errors, errors logged but not returned, panics34   reachable from client input.354. Input validation on anything that arrives over the wire.365. Tests: whether new behaviour has a test, and whether the test actually37   exercises it.3839## What to ignore4041- Formatting. `gofmt` handles it.42- Naming style unless it is misleading.43- Missing comments on unexported identifiers.44- Suggestions to add third-party packages.4546## Tone4748Direct and specific. Say what is wrong, why, and the scenario that triggers49it. No praise, no filler.
README.md +1 −1
@@ -1,3 +1,3 @@1# holonet1# Holonet2233a websocket server