From 2cf3c8d71e92624c6e547c0be71250206ede0beb Mon Sep 17 00:00:00 2001 From: CaIon Date: Mon, 27 Jul 2026 21:41:31 +0800 Subject: [PATCH] docs: update AGENTS.md --- AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 8f6e6dac..fa942c71 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -64,6 +64,11 @@ web/ — Frontend (React 19, Rsbuild, Base UI, Tailwind) ### Backend Rules +**relaykit module independence:** The `relaykit/` Go module MUST remain independently buildable. + +- Code under `relaykit/` MUST NOT import or depend on packages from the root `new-api` module, or rely on root-only configuration, generated files, or workspace wiring. +- Any change affecting `relaykit/` or its public APIs MUST be verified with `cd relaykit && GOWORK=off go build ./...`; a successful root-module build is not sufficient. + **JSON package:** All JSON marshal/unmarshal operations MUST use the wrapper functions in `common/json.go`: - `common.Marshal(v any) ([]byte, error)`