mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
[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:
committed by
GitHub
Unverified
parent
7cc80b39f1
commit
2ee854eaa5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user