Question 130
A project hosts v1 and v2 API handlers in distinct directories. The older version requires legacy response envelopes; the newer uses typed JSON error objects. What is the best project-rule design?
Explanation
Correct Answer
Conditional file rules encode version-specific contracts without contaminating unrelated handlers. Common security practices can remain repository-wide.
Incorrect Answers
Legacy clients may depend on the v1 envelope. Cross-version rule leakage can break compatibility.
Absence of rules makes output inconsistent and does not protect either public contract.
Simultaneous incompatible instructions leave the model unable to choose correctly. Scope matters.