about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
authorPjotr <wrk@bosa.lan>2026-11-08 15:39:43 +0000
committerPjotr <wrk@bosa.lan>2026-11-08 15:39:43 +0000
commit386aed031612abc118e3390638cb5aff144be971 (patch)
tree0c9fc936f63a9fbd497f10c3fb10414a18b79ad4 /docs
parent336f18e1bc22cb330052dc1ff45d1d06073bfcc3 (diff)
downloadgenenetwork4-386aed031612abc118e3390638cb5aff144be971.tar.gz
docs: tell users (and operators) to refetch the instructions when the build moves
`/version` reports the revision the *server* is running, and this
deployment is updated in place, so an assistant that cached
`ai-instruction.md` can end up calling an API that has grown options its
copy never mentions -- by default, silently.

The instructions now say what to do about it, in the two places a reader
sees a revision: pull the repository and re-read the page when `git` is
not the revision the session started with, and the same in the `/version`
section where that field is explained. It matters for the last few
commits in particular: covariates in `/compute/rqtl` and `/compute/gemma`
were added, and a stale copy would never know to ask for them.

`docs/www/operator-checklist.md` gets the operator's half: nothing here
enforces it, so a release that adds endpoints or options should say so
where tokens are handed out, and `source_digest` -- not the commit alone
-- is what identifies a build in a bug report.
Diffstat (limited to 'docs')
-rw-r--r--docs/www/operator-checklist.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/www/operator-checklist.md b/docs/www/operator-checklist.md
index 35bb42f..3a7ea61 100644
--- a/docs/www/operator-checklist.md
+++ b/docs/www/operator-checklist.md
@@ -287,6 +287,19 @@ Check it after any nginx change: without it every link points outside
 the mount point, and the API's own tests cannot see that (they run
 in-process, where there is no prefix).
 
+## When you update the running build
+
+This deployment is updated in place, so the build revision users see at
+`GET /gn4/version` moves under them. Two things follow:
+
+* their assistants are told (in `ai-instruction.md`) to pull the
+  repository and re-read it whenever `git` is a revision they have not
+  seen before, because the page they cached no longer describes the API
+  they are now calling. Nothing enforces that from this side, so if a
+  release adds endpoints or options, say so where you hand out tokens;
+* `source_digest` changes with every build, dirty or not -- it identifies
+  the binary, so quote it in bug reports rather than the commit alone.
+
 ## Optional but worth it
 
 * Rate limit per address at the proxy: `limit_req_zone` +