projects

holonet

A multiplayer video game backend in Go

Merge pull request 'Remove tangled & add code reviewer' (#41) from remove-tangled into main

Reviewed-on: https://git.danieldaum.net/daniel-daum/Holonet/pulls/41

daniel daum committed parent 0fb4ac6 parent 042c726 commit 5dfd875Signed, not verified

SignedGitea couldn't verify the signature.

Showing 3 changed files with 50 additions and 37 deletions.

.tangled/workflows/mirror.ymldeleted +0 โˆ’36
@@ -1,36 +0,0 @@1# .tangled/workflows/mirror-to-github.yml23when:4  - event: ["push", "manual"]5    branch: ["main"]67engine: "nixery"89clone:10  depth: 01112dependencies:13  nixpkgs:14    - git1516steps:17  - name: "Mirror to GitHub"18    command: |19      git fetch --unshallow origin || true20      git fetch origin refs/heads/main:refs/heads/main21      git remote add github https://x-access-token:${GITHUB_PAT}@github.com/${GITHUB_USERNAME}/${GITHUB_REPO_NAME}.git22      git push github refs/heads/main:refs/heads/main --force23    environment:24      GITHUB_USERNAME: "daniel-daum"25      GITHUB_REPO_NAME: "holonet"2627  - name: "Mirror to Gitea"28    command: |29      git fetch --unshallow origin || true30      git fetch origin refs/heads/main:refs/heads/main31      git remote add gitea https://${GITEA_USERNAME}:${GITEA_TOKEN}@${GITEA_HOST}/${GITEA_USERNAME}/${GITEA_REPO_NAME}.git32      git push gitea refs/heads/main:refs/heads/main --force33    environment:34      GITEA_USERNAME: "daniel-daum"35      GITEA_REPO_NAME: "holonet"36      GITEA_HOST: "git.danieldaum.net"
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