Show answerHide answer
Correct answer: A Adjust the prompts to constrain output format, re-run evaluations against the expected parsing-layer schema, then roll the model out with a feature flag and the option to revert per workflow.
Explanation
ExplanationThe scenario has two facts that pull in different directions: the new model is measurably better (8% on the highest-volume task), but it changes output formatting on two prompts that feed brittle regex parsers. The right rollout keeps the gain without breaking consumers, and option A is the only one that does both.
- Adjust the prompts to constrain output format: Formatting differences between model versions are a prompt-level concern. Making the format explicit (a schema, examples, or prefilled/structured output) is the standard way to get consistent output across models.
- Re-run evaluations against the parsing-layer schema: The existing evaluation suite measured task quality, but it evidently did not catch the formatting regression. Evaluating against what the downstream parser actually expects validates the real contract before anything ships.
- Feature flag with per-workflow revert: The upgrade doesn't need to be all-or-nothing. A flag lets you roll out gradually, upgrade the workflows that are ready, and roll back instantly if something slips through.
Why the others are wrong
B — Ship the change and fix issues in production: This knowingly ships a change that will break two consumers and relies on live failures to find the problems. Regex-based parsers can also fail silently by returning partial or incorrect matches rather than throwing errors, so monitoring may not surface the damage quickly.
C — Loosen the parsers: This is the wrong layer to fix and a larger, riskier change than needed. It broadens the surface area for mis-parsing, doesn't address the prompt problem, and expands scope well beyond the upgrade. Making the parsers more robust may be worthwhile long-term, but it is not the rollout plan for this upgrade.
D — Pin the old model: This forgoes a proven improvement and accumulates upgrade debt. Model versions are eventually deprecated, so avoidance only defers the migration. It also treats a solvable prompt issue as a reason to stay put.
Reference
- Anthropic documentation on migrating to newer models and increasing output consistency through structured outputs and format control. The specific model name "Sonnet 4.7" has not been verified against current documentation; confirm the name before citing it in an answer key.