about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-14 12:41:57 +0000
committerPjotr <wrk@bosa.lan>2026-11-14 12:41:57 +0000
commit56bb6214aef7aba1b3ad01d334553c8a62deacdf (patch)
tree2437b499370dbf46bc984098791ee858bbc0b766 /README.md
parent7ff1543f8649b4e04d6ccfd012ae8d2403f2e0a7 (diff)
downloadgenenetwork4-56bb6214aef7aba1b3ad01d334553c8a62deacdf.tar.gz
docs: always offer one sentence of what to do next, unless disabled
The API already computes every reply's options -- `next` are GETs that answer
200, `actions` are the POSTs to run next -- and a caller that reads them
learned nothing extra from being told "you could now do X" in prose. What was
missing was the instruction: an answer that stops at the result leaves the
reader to work out the graph.

docs/www/SKILL.md gains "Always offer the next step": end every answer with
ONE sentence built from that reply's own next/actions -- after a compute run, a
lookup, a plot, an upload, a basket edit. Prefer the action href over a
hand-built call. A refusal is an answer too: its next or detail names the
alternative (bulklmm for a GEMMA permutation, /compute/gemma for a covariate
fit). Do not stack suggestions; one next plus at most one genuinely different
alternative. "Skip the suggestions" / "just the result" turns it off for the
session -- it is the sentence that is disabled, not the content. And never
propose a step the API cannot do: if nothing in next/actions fits, say so.

README states the same bargain where the next-link promise is described: the
server's half is that the suggestion is always reachable, the assistant's half
is that it is one sentence and it is a link the reply actually carries.
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 312b5dd..6dd0a9f 100644
--- a/README.md
+++ b/README.md
@@ -88,6 +88,14 @@ carries a placeholder for the caller to complete; and calls that are not `GET`s
 never suggests itself. `tests/links.rs` walks the graph from a dozen seeds and
 fails if any link does not answer 200.
 
+The convention that follows from this: **a reply always offers a next step, and
+an assistant relaying it should name one** — a single sentence after any job,
+taken from that reply's `next`/`actions`, unless the user asks for the result
+alone. The server's part of that bargain is that the suggestion is always
+*reachable*; the assistant's part is that it is one sentence and it is the
+link the reply actually carries. See
+[docs/www/SKILL.md](docs/www/SKILL.md#always-offer-the-next-step).
+
 - `GET /` - returns `Hello, world!`.
 - `GET /version` - returns a JSON record describing the running build: