Skip to content

docs(agents): AGENTS.md conventions (auth/authz, test arch, money-path, run-tests) - #255

Open
LamaSu wants to merge 1 commit into
masterfrom
docs/agents-md-conventions
Open

docs(agents): AGENTS.md conventions (auth/authz, test arch, money-path, run-tests)#255
LamaSu wants to merge 1 commit into
masterfrom
docs/agents-md-conventions

Conversation

@LamaSu

@LamaSu LamaSu commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Preserves the AGENTS.md conventions written during the #247 work. Doc-only. Auto-read by codex/agents; would have prevented the auth-vs-ownership test breakage. Diff is a single file.

…variants + definition-of-done

Adds the conventions that would have prevented the #247 signing-identity test
breakage (and that codex/agents auto-read from AGENTS.md):
- apiGate owns authentication (401); facades own authorization (403) — don't
  re-check auth in a facade.
- gateway test architecture: facade-unit tests wire only the route (no apiGate);
  integration tests wire apiGate + provisionApiKey + Bearer. Know which layer.
- which /api/kernels routes are public vs auth-gated.
- money-path invariants: fail closed; SET-ONCE signer = 409; never weaken a
  security check to pass a test.
- definition of done: build + run the affected tests before returning; never
  imply an unseen green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MqxjtNMrzb7M23dChjizW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant