How V2 AI-Wiring handles spec changes
mainWhen the V2 spec drifts, the AI-wiring process attempts to automate the SDK update following these rules:
- Field Changes: For existing operations, it adds new optional keyword parameters to existing methods (leveraging surface-lock for backward compatibility).
- New Routes: It mirrors the pattern found in
resources/v2/extract.pyandparse.py. This includes:- Creating a resource module with a
run()method. - Creating a
*JobsResourcefor async routes (create/get/wait/list). - Adding a unified
Jobtype via_normalize.py. - Defining a new response type in
types/v2/. - Registering the resource in the
resources/v2/v2.pycontainer.
- Creating a resource module with a
- Exclusions: The
/v2/workflow*routes are explicitly excluded from the AI-wiring logic to prevent accidental or unverified changes to complex workflow logic.