Edit the graph from natural language
Run the kernel agent server-side: describe the change in prose and the agent authors it, then the SAME fail-closed kernel gate every deterministic write passes must bless the result before it persists. This is real LLM spend: one unit is reserved against your daily edit quota BEFORE the agent runs, and refunded on a validation reject, agent error, or concurrency conflict. RESULT-ONLY: the response is exactly world, diagnostics, and reply. The agent’s system prompt, op grammar, lexicon, model id, and raw op trace are never exposed. If the agent needs clarification it returns the question in reply and leaves the world unchanged. Pass an Idempotency-Key so a retry doesn’t double-charge.
Authorizations
Headers
Body
A natural-language edit instruction for the server-side kernel agent. Either instruction or message is required.
Response
Edit applied (or a clarifying question in reply with no change). The new rev is the ETag.
The RESULT-ONLY response from a kernel-agent edit. It carries the validated world, advisory diagnostics, and the agent's natural-language reply, and none of the agent's internals: the system prompt, op grammar, lexicon, model id, and raw op trace are never exposed. When the agent needs clarification it returns its question in reply and leaves the world unchanged. (A TEST-mode response additionally carries a mock: true marker.)
A playable world's compiled graph, id, name, entrance, and the scene (states + events). This is the shape returned inside the world field of a World resource (see World) and by the graph-editing routes. Additional optional properties are allowed (forward-compatible); the schemaVersion on responses pins the contract version.

