Commit 44513f8
test(compat): validate ADK requests against a window of server contracts
Generalizes the #405 regression guard. Captures the requests the ADK emits
(states.create/update for v1) and validates each against a window of supported
server OpenAPI contracts vendored under tests/compat/server_specs/: `current`
(scale-agentex main) and `min-supported` (pre-#278, which still requires
task_id/agent_id in the state body).
Catches the 0.13.0 class of break — a client that drops a field an older
deployed server still requires. Verified: with the field-drop, states.update
fails "task_id/agent_id required" against min-supported while passing current.
Specs are vendored for deterministic CI (no network); refresh_specs.py re-pulls
them at the SHAs in manifest.json. Advance min-supported as the oldest deployed
server moves forward; extend _OPERATIONS for more ADK operations.
Stacked on #405 (needs the extra_body fix so states.update passes).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f59f26d commit 44513f8
6 files changed
Lines changed: 13684 additions & 0 deletions
File tree
- tests/compat
- server_specs
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments