Key practices
- Treat AI output as a draft, not source of truth.
- Validate all account constraints and authority checks manually.
- Reproduce generated code paths with tests before shipping.
- Keep prompts and outputs in version control for team review.
Practical workflow
- Ask AI for a narrow, testable code change.
- Run static checks and tests.
- Compare generated logic against protocol docs.
- Iterate with explicit failure cases.
Is this page helpful?