You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit cc0e02a
Browse filesBrowse the repository at this point in the historyBrowse files
Mark Pollack
committed
Retire the legacy interop-* scenarios and their programs
The generated cells now cover everything they checked: reconnect (http.reconnect in every HTTP
cell), session/load, permission and
fs write round trips (the Python client's handler still answers "result": null), and, through
new matrix.json facts, the HTTP version each pair negotiates (h2c between the Java client and the
Java and Python agents, HTTP/1.1 otherwise) and DELETE answered 202 on every agent.
Removed: configs/interop-*.json, JavaAgentMain, JavaClientMain, ts-client.mjs, ts-server.mjs,
py-client.py, py-server.py and the rust-agent/rust-client binaries. The load-* scenarios stay.
A ref can be a branch, a tag or a commit SHA. Each ref gets its own checkout,
@@ -99,32 +99,17 @@ artifact.
99
99
100
100
| Scenario | What runs |
101
101
|---|---|
102
-
|`x-java-java-stdio`, `x-java-java-http`, `x-java-java-ws`| generated: the Java client against the Java agent over stdio, Streamable HTTP (h2c) and WebSocket, running the seeded catalogue steps ([Contracts](#6-the-java-seed)) |
103
-
|`interop-java-java`| Java client -> Java server; HTTP/2 (h2c) on every request |
104
-
|`interop-ts-server`| Java client -> TypeScript server, wired as the SDK's example ships it (HTTP handler plus WebSocket upgrade listener); HTTP/1.1 |
105
-
|`interop-rust-server`| Java client -> Rust server (axum); HTTP/1.1 |
106
-
|`interop-python-server`| Java client -> Python server (Hypercorn, h2c); HTTP/2; one **expected failure**, below |
|`x-<client>-<agent>-<transport>`| generated: the client program of one language against the agent program of another over one transport, running every stable catalogue step (`steps.json`). Pairs are Java<->Java and Java<->X for X in TypeScript, Rust, Python and Kotlin; transports are stdio, Streamable HTTP and WebSocket (Kotlin: stdio and WebSocket) |
103
+
|`x-<client>-<agent>-<transport>-unstable`| the same pair running the `unstable` steps (`session.fork`); on demand only |
104
+
|`conf-java-agent-<t>`, `conf-java-client-<t>`, `conf-java-client-catalogue-<t>`| the raw driver probing the Java agent, the Java client's raw mode, and the Java client running catalogue steps against the raw agent ([programs/raw/gen_conf.py](programs/raw/gen_conf.py)) |
110
105
|`load-50`, `load-300`, `load-1000`| N Java clients on their own connections, each: initialize, session/new, then 10 (or 5) prompts streaming two updates each |
111
106
|`load-shared-300`| 300 clients sharing one HttpClient, so one HTTP/2 connection |
112
107
113
-
The legacy interop steps are the same in every cell: `initialize`, `session/new`, two prompts that each
114
-
stream two updates, a prompt that triggers a permission round trip, `session/load` on the same
115
-
connection, a prompt after the load, and the DELETE on close (checked in the server's request log).
116
-
The Java client then reconnects on a new connection, loads the same session and prompts again.
117
-
The Python client also advertises `fs.writeTextFile` and sends a prompt on which the Java agent
118
-
writes a file through it; its handler returns `None`, which the Python SDK sends as
119
-
`"result": null`.
120
-
121
-
**Expected failure.** Java client -> Python server: reconnect-then-load gets a 404. The RFD
122
-
contradicts itself: its reconnect diagram opens the session stream before `session/load`, and it
123
-
also says an `Acp-Session-Id` the connection does not know is a 404. The Python server follows the
124
-
second rule; the TypeScript, Rust and Java servers accept the pre-open. The scenario declares the
125
-
two affected steps under `expectedFailures`. The suite stays green and shows them as XFAIL. If the
126
-
Python server starts accepting the pre-open, the steps pass, the scenario **fails**, and the
127
-
expectation has to be updated.
108
+
Over Streamable HTTP the cells also assert, through `matrix.json` facts, what the retired
109
+
hand-written `interop-*` scenarios checked: the negotiated HTTP version on both sides (h2c between
110
+
the Java client and the Java and Python agents, HTTP/1.1 everywhere else), and the `DELETE` on
111
+
close answered 202. `http.reconnect`, in every HTTP cell, loads and prompts a session on a new
112
+
connection.
128
113
129
114
**Load thresholds** (first baselines, from the 2026-09-25 pre-release run): `errors == 0`, every
130
115
prompt answered (`ok == expected`), every update delivered (`updates == 2*ok`), at most 4 SDK
@@ -329,8 +314,6 @@ partner. Today they implement the eight `seed` steps on all three transports:
329
314
The Java agent answers every other directive with `-32602 unknown directive`, and the Java client
330
315
prints `unknown-step` for every other step. The Java agent advertises `loadSession` only; the Java
331
316
client advertises `fs.writeTextFile` only. The rest of the catalogue lands with the Java package.
332
-
The legacy `interop.JavaAgentMain`/`JavaClientMain` serve the legacy configs until they are
333
-
retired.
334
317
335
318
### 7. Isolation: every scenario must be safe to run next to any other
336
319
@@ -373,15 +356,15 @@ language too, run on the same host at the same time.
373
356
### 8. CI
374
357
375
358
-`.github/workflows/interop-java.yml`, on every push to `main` and every pull request: JDK 17
376
-
only, `GenConfigs.java --check`, then the `x-java-java-*` cells on all three transports.
359
+
only, `GenConfigs.java --check` and `programs/raw/gen_conf.py --check`, then the `x-java-java-*`
360
+
cells on all three transports.
377
361
-`.github/workflows/cross-sdk.yml`, nightly and on manual dispatch (optionally for one peer):
378
362
a `prepare <peer>` job per peer SDK fetches and builds the peer and its programs once
379
363
(`run-all.sh --prepare-only`) and caches them under the peer's resolved commit
380
364
(`scripts/peer-sha.sh`); then one job per peer and transport (`typescript-stdio`,
381
365
`typescript-http`, ..., `kotlin-ws`) restores that build, installs only its own toolchain, and
382
-
runs `run-all.sh --only 'x-java-<peer>-<t>*,x-<peer>-java-<t>*'` (the `http` leg also runs the
383
-
peer's legacy `interop-*` scenarios). A `java` job runs the Java pair, conformance, load and
384
-
`--check`. Each job uploads `logs/` as `cross-sdk-logs-<leg>`; `fail-fast` is off.
366
+
runs `run-all.sh --only 'x-java-<peer>-<t>*,x-<peer>-java-<t>*'`. A `java` job runs the Java
367
+
pair, conformance, load and both `--check`s. Each job uploads `logs/` as `cross-sdk-logs-<leg>`; `fail-fast` is off.
385
368
- None of these gates a release.
386
369
387
370
## How a scenario is described
@@ -390,25 +373,27 @@ language too, run on the same host at the same time.
390
373
391
374
```jsonc
392
375
{
393
-
"name":"interop-ts-server",
394
-
"timeoutSec":240,
376
+
"name":"x-java-typescript-http",
377
+
"timeoutSec":565,
395
378
"peers": ["typescript-sdk"], // prepared from peers.json before anything is built
0 commit comments