jason810496 opened a new pull request, #67221:
URL: https://github.com/apache/airflow/pull/67221

   related: https://github.com/apache/airflow/pull/67041#discussion_r3256716856
   
   ## Why
   
   Core API route handlers that let domain-layer `ValueError`s (e.g., from 
`MetastoreStateBackend`) bubble up surface as `500 Internal Server Error`, 
leaking internals and misleading clients. Capture the rule so future agents 
catch and re-raise as `HTTPException` with the right status.
   
   ## What
   
   - Add one bullet under `## Coding Standards` in root `AGENTS.md` directing 
agents to catch domain-layer exceptions in `core_api` route handlers and 
re-raise as `HTTPException` (`404` not-found, `400` invalid input).
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes, with help of Claude Code (Opus 4.7) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to