[codex] Add crate API surface review rule (#27939)

## Why

Review guidance should explicitly discourage widening crate APIs for
testing convenience. Keeping those boundaries narrow reduces accidental
coupling and prevents one-off test utilities from becoming durable
public surface area.

## What

- Add a crate API surface rule to `AGENTS.md`.
- Ask reviewers to keep crate APIs small and avoid proliferating
test-only helpers.

## Test plan

- Not run (documentation-only change).
This commit is contained in:
pakrym-oai
2026-06-12 13:00:21 -07:00
committed by GitHub
Unverified
parent 7cc80b39f1
commit 2ee854eaa5
+4
View File
@@ -81,6 +81,10 @@ Likewise, when reviewing code, do not hesitate to push back on PRs that would un
## Code Review Rules
### Crate API surface
Keep crate API surfaces as small as possible. Avoid proliferating test-only helpers.
### Model visible context
Codex maintains a context (history of messages) that is sent to the model in inference requests.