diff --git a/Makefile b/Makefile
index c09003d..72e6b3f 100644
--- a/Makefile
+++ b/Makefile
@@ -221,6 +221,7 @@ check: $(LIB) $(BIN) $(PLUGIN) $(TESTS)
echo "== tests/test_a2a.sh"; sh tests/test_a2a.sh; \
echo "== tests/test_a2a_ui.sh"; sh tests/test_a2a_ui.sh; \
echo "== tests/test_a2a_server.sh"; sh tests/test_a2a_server.sh; \
+ echo "== tests/test_a2a_context.sh"; sh tests/test_a2a_context.sh; \
echo "== tests/test_ui.sh"; sh tests/test_ui.sh; \
echo "all tests passed"
diff --git a/README.md b/README.md
index 1ad1922..849ee33 100644
--- a/README.md
+++ b/README.md
@@ -134,8 +134,9 @@ SPLINTER_A2A_SERVER_TOKEN=... \
Another agent can send `SendMessage` to `POST /a2a` and read `GetTask` or
`ListTasks`; the
agent card is served at `/.well-known/agent-card.json`. `SendStreamingMessage`
-streams the answer as SSE artifact updates, then a completed status. Each
-request runs one turn in its own conversation. File parts, push notifications,
+streams the answer as SSE artifact updates, then a completed status. A
+`contextId` is a conversation: the next message with it continues. Without one
+the server creates a context and returns it in the task. File parts, push notifications,
`CancelTask` and continuation of an interrupted task are refused with a JSON-RPC
error rather than half-answered. Beyond loopback the bearer token is required;
there is no TLS, so put it behind ssh or a tunnel.
diff --git a/TODO.md b/TODO.md
index 1bb1d19..8ca3608 100644
--- a/TODO.md
+++ b/TODO.md
@@ -48,14 +48,15 @@ Context bleibt. `SPLINTER_A2A_CARD` findet den Endpunkt ueber die Agent Card.
Der Server ist gebaut: `src/a2aserver.c`, `POST /a2a` mit `SendMessage` (ein
Turn in eigener Konversation, completed Task), `SendStreamingMessage` (SSE,
-`artifactUpdate`-Chunks, dann completed `statusUpdate`) `GetTask`, `ListTasks`,
+`artifactUpdate`-Chunks, dann completed `statusUpdate`) `GetTask`, `ListTasks`, Multiturn ueber `contextId`,
`GET /.well-known/agent-card.json`, Bearer-Token ueber
`SPLINTER_A2A_SERVER_TOKEN` jenseits von Loopback.
Offen: Datei- und strukturierte Teile, Push-Notifications,
-`CancelTask`/`SubscribeToTask` und die Fortsetzung eines unterbrochenen Tasks.
+`CancelTask`/`SubscribeToTask` und die Fortsetzung eines unterbrochenen Tasks
+(`INPUT_REQUIRED`).
-Naechster Schritt: Multiturn (Task-Fortsetzung), danach Datei-Teile.
+Naechster Schritt: Datei-Teile.
### 4. `~/.local/lib` enthaelt Fremdlast
@@ -96,10 +97,12 @@ Naechster Schritt: entscheiden, ob die npm-Reste weg duerfen. Kein Code.
(JSON-RPC 2.0, Text, blockierend), in der UI `SendStreamingMessage` (SSE,
Artefakt-Text live) und findet den Endpunkt ueber `SPLINTER_A2A_CARD`;
`src/a2aserver.c` serviert `SendMessage`, `SendStreamingMessage` (SSE),
- `GetTask`, `ListTasks` und die Agent Card mit Bearer-Token. `tests/test_a2a.sh` prueft Task, Message, Token, Fehler,
+ `GetTask`, `ListTasks`, Multiturn ueber `contextId` und die Agent Card mit
+ Bearer-Token. `tests/test_a2a.sh` prueft Task, Message, Token, Fehler,
Streaming und Discovery, `tests/test_a2a_ui.sh` den Streaming-Pfad,
`tests/test_a2a_server.sh` den Server und den Client gegen den Server
- (Discovery, blockierend und streamend).
+ (Discovery, blockierend und streamend), `tests/test_a2a_context.sh` die
+ Konversation ueber `contextId`.
- **Fehler dabei gefunden und behoben**: `delegate_retry` las `id` und `force`
in denselben Puffer; `json_str` haengt an, also wurde aus `job-1` mit
`force=1` die Id `job-11` (`src/delegate.c`, `tool_delegate_retry`).
diff --git a/docs/PLUGINS.md b/docs/PLUGINS.md
index 207896f..5da00e4 100644
--- a/docs/PLUGINS.md
+++ b/docs/PLUGINS.md
@@ -312,8 +312,9 @@ needs the agent and its authorization model, not only a transport.
SPLINTER_A2A_SERVER_TOKEN=... \
splinter --a2a-server-listen 127.0.0.1 --a2a-listen-port 8099
-`POST /a2a` speaks JSON-RPC: `SendMessage` runs one turn in a fresh conversation
-(system prompt plus the caller's text), stores the completed Task and returns it;
+`POST /a2a` speaks JSON-RPC: `SendMessage` runs one turn in the conversation
+named by `contextId` (or a fresh one, whose id comes back in the task), stores
+the completed Task and returns it;
`SendStreamingMessage` runs the same turn and writes SSE `artifactUpdate` events
as the transport produces text (a non-streaming transport sends its whole answer
as one artifact), followed by a completed `statusUpdate`; `GetTask` returns a
diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md
index 83e16f5..b9000de 100644
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@ -5,9 +5,10 @@ Stand: 2026-11-09. Die geprüfte, ausführliche Liste mit Belegen steht in
1. **A2A: was noch fehlt** — Client (`SendMessage`, `SendStreamingMessage` in
der UI, Agent-Card-Discovery) und Server (`SendMessage`, SSE-Streaming,
- `GetTask`, `ListTasks`, Agent Card) stehen, alles mit Text. Offen sind Datei- und
- strukturierte Teile, Push-Notifications, `CancelTask`/`SubscribeToTask` und
- die Fortsetzung eines unterbrochenen Tasks. `swarm` ist nur lokale IPC im
+ `GetTask`, `ListTasks`, Multiturn ueber `contextId`, Agent Card) stehen, alles
+ mit Text. Offen sind Datei- und strukturierte Teile, Push-Notifications,
+ `CancelTask`/`SubscribeToTask` und die Fortsetzung eines unterbrochenen
+ Tasks. `swarm` ist nur lokale IPC im
selben Verzeichnis, kein A2A.
2. **Echte Gegenstellen** — die Kids-Zustimmung gegen einen echten Telegram-Bot
diff --git a/src/a2aserver.c b/src/a2aserver.c
index 5ed8d5d..a704b4b 100644
--- a/src/a2aserver.c
+++ b/src/a2aserver.c
@@ -18,9 +18,10 @@
* with half a protocol. Streaming is served: SendStreamingMessage writes
* artifactUpdate and statusUpdate events over SSE.
*
- * One turn per request, one connection at a time. The conversation is local to
- * the request (the system prompt plus the caller's text), so two remote agents
- * cannot read each other's history through a shared conversation.
+ * One turn per request, one connection at a time. A contextId is a
+ * conversation: the next message with the same id continues it. Without one,
+ * the server makes an id up and returns it in the task, so two clients that
+ * send no context at all do not share a history.
*
* Authorization: a token is required beyond loopback. It arrives as
* `Authorization: Bearer An agent harness you own: chat in the terminal, tools with authorization classes, plugins, any model that speaks OpenAI — built by us so we can change it, instead of getting used to how somebody else's client behaves.splinter_
POST /a2a takes SendMessage, SendStreamingMessage
(SSE), GetTask and ListTasks as JSON-RPC; the agent card lives at
-/.well-known/agent-card.json. One turn per request, its own
-conversation. Beyond loopback the bearer token is required.
/.well-known/agent-card.json. A contextId is a
+conversation; without one the server makes one and returns it. Beyond loopback the bearer token is required.
With the kids plugin every change needs a parent's approval
diff --git a/src/www/index.html b/src/www/index.html
index 6636182..09f097b 100644
--- a/src/www/index.html
+++ b/src/www/index.html
@@ -53,7 +53,7 @@ hr { border: 0; border-top: 1px solid #1d2126; margin: 3em 0 1.5em 0; }
Ein Agent-Harness, das dir gehoert: Chat im Terminal, Werkzeuge mit Autorisierungsklassen, Plugins, jedes Modell das OpenAI spricht — von uns gebaut, damit wir es umbauen koennen, statt uns an das Verhalten eines fremden Clients zu gewoehnen.
- @@ -209,8 +209,8 @@ sich selbst hin: splinter: A2A server on 127.0.0.1:8099 (token required)POST /a2a nimmt SendMessage, SendStreamingMessage
(SSE), GetTask und ListTasks als JSON-RPC; die Agent Card liegt unter
-/.well-known/agent-card.json. Ein Turn pro Anfrage, eigene
-Konversation. Jenseits von Loopback ist der Bearer-Token Pflicht.
/.well-known/agent-card.json. Ein contextId ist eine
+Konversation; ohne eines legt der Server eins an und gibt es zurueck. Jenseits von Loopback ist der Bearer-Token Pflicht.
Mit dem Plugin kids braucht jede Aenderung die Zustimmung eines
diff --git a/src/www/index.pt.html b/src/www/index.pt.html
index 6e4174a..e335f05 100644
--- a/src/www/index.pt.html
+++ b/src/www/index.pt.html
@@ -53,7 +53,7 @@ hr { border: 0; border-top: 1px solid #1d2126; margin: 3em 0 1.5em 0; }
Um harness de agente que e seu: chat no terminal, ferramentas com classes de autorizacao, plugins, qualquer modelo que fale OpenAI - escrito por nos para poder mudar-lo, em vez de nos acostumar com o comportamento de um cliente alheio.
- @@ -156,8 +156,8 @@ si mesmo: splinter: A2A server on 127.0.0.1:8099 (token required)POST /a2a aceita SendMessage, SendStreamingMessage
(SSE), GetTask e ListTasks em JSON-RPC; o agent card fica em
-/.well-known/agent-card.json. Um turno por requisicao, conversa
-propria. Fora do loopback o token Bearer e obrigatorio.
/.well-known/agent-card.json. Um contextId e uma conversa;
+sem ele o servidor cria um e devolve. Fora do loopback o token Bearer e obrigatorio.
splinter - C99/POSIX, BSD-3-Clause. Manual: man ./docs/splinter.1 · ABI de plugins: docs/PLUGINS.md
POST /a2a nimmt SendMessage, SendStreamingMessage
(SSE), GetTask und ListTasks als JSON-RPC; die Agent Card liegt unter
-/.well-known/agent-card.json. Ein Turn pro Anfrage, eigene
-Konversation. Jenseits von Loopback ist der Bearer-Token Pflicht.
/.well-known/agent-card.json. Ein contextId ist eine
+Konversation; ohne eines legt der Server eins an und gibt es zurueck. Jenseits von Loopback ist der Bearer-Token Pflicht.""",
]
SECTIONS["en"] += [
@@ -502,8 +502,8 @@ itself:
splinter: A2A server on 127.0.0.1:8099 (token required)
POST /a2a takes SendMessage, SendStreamingMessage
(SSE), GetTask and ListTasks as JSON-RPC; the agent card lives at
-/.well-known/agent-card.json. One turn per request, its own
-conversation. Beyond loopback the bearer token is required.
/.well-known/agent-card.json. A contextId is a
+conversation; without one the server makes one and returns it. Beyond loopback the bearer token is required.""",
]
@@ -592,8 +592,8 @@ si mesmo:
splinter: A2A server on 127.0.0.1:8099 (token required)
POST /a2a aceita SendMessage, SendStreamingMessage
(SSE), GetTask e ListTasks em JSON-RPC; o agent card fica em
-/.well-known/agent-card.json. Um turno por requisicao, conversa
-propria. Fora do loopback o token Bearer e obrigatorio.
/.well-known/agent-card.json. Um contextId e uma conversa;
+sem ele o servidor cria um e devolve. Fora do loopback o token Bearer e obrigatorio.""",
]