Skip to content

Commit 390144a

Browse files
docs: Add no-defensive-code guideline to AGENTS.md (#38)
1 parent 760dfa5 commit 390144a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ comparison.summary() # Rich-formatted report
6262

6363
- Minimal comments - only where code is non-obvious
6464
- Commit titles follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) with capitalized first letter: `feat: Add new feature`
65+
- No defensive code. Only validate at system boundaries (user input, external APIs, file/network I/O). Trust internal callers, framework guarantees, and type signatures — don't add try/except, None checks, fallbacks, or input validation for cases that can't occur. If a precondition is violated, let it raise. Don't write error handling without a concrete failure mode in mind.
6566

6667
### API Consistency Requirements
6768

0 commit comments

Comments
 (0)