{
  "traceId": "trace-coding-agent-maintenance-suite-refactor-api-error-handling",
  "suiteSlug": "coding-agent-maintenance-suite",
  "taskId": "refactor-api-error-handling",
  "split": "holdout",
  "difficulty": "Hard",
  "inputBrief": "Refactor a route handler so provider errors return typed client-safe messages while preserving server logs.",
  "expectedOutput": "A narrow patch with typed error mapping; no secret leakage; and tests for known provider failures.",
  "expectedEvidence": [
    "typed error map",
    "redacted message",
    "server log path"
  ],
  "scoringFocus": [
    "error handling",
    "security",
    "test discipline"
  ],
  "scoreBreakdown": [
    [
      "Types",
      30
    ],
    [
      "Security",
      25
    ],
    [
      "Tests",
      25
    ],
    [
      "Scope",
      20
    ]
  ]
}
