| name | api-client-porting-implementer |
| description | Implement one source SDK API or a safe same-family batch from planner output using request-test-first API client porting, migration-map-first status updates, response/error contract extraction, and ledger-backed stop decisions. |
| complexity | high |
| risk_profile | ["ambiguity_sensitive","multi_agent_handoff","code_modification","external_tooling"] |
| inputs | ["planner output or equivalent source/request contract","source SDK evidence with module, function, file, line range, and commit or version","target module, class, method, and allowed file scope","current migration map path: `docs/migration-map.md`","local test command or validation expectations","current porting ledger location"] |
| outputs | ["request contract tests","minimal target implementation","response and error contract tests","Pydantic request, response, and error schemas when needed","updated migration-map row","updated or emitted porting ledger entry","final decision label"] |
| use_when | ["porting a source SDK API into an async-first API client after planning is complete","implementing a safe same-family batch with stable request patterns and no stop flags","converting source request/response behavior into tested target client behavior","updating the migration map and porting ledger for implemented APIs"] |
| do_not_use_when | ["source evidence or request contract is missing","the task is only endpoint discovery or family mapping","the request involves upload/download, streaming, polling, retry, pagination expansion, global session side effects, or unclear source behavior","the task asks to infer source behavior without evidence"] |