refactor(config,cli,server): rename the server: config block to serve:

Introduces the `serve:` host-role block in its RFC-002 shape — `graphs:` is a
served-set list, replacing the single `server.graph` scalar. The legacy
`server:` block is folded into `serve:` under the legacy schema and rejected
under `version: 1` (pointing at the new spelling, noting the scalar->list
change). Serving a true subset (`serve.graphs` with more than one entry) is
rejected with a route-unification hint; one entry (single-graph) and none
(serve all) preserve today's behavior.

Renames the accessors (server_* -> serve_*) and repoints the server boot call
sites; migrates the init scaffold to `serve:`. `servers:` (the remote endpoint
map) is deliberately unaffected — the key scan is exact-match.
This commit is contained in:
Ragnor Comerford 2026-06-04 21:38:25 +02:00
parent 56ff5eb9ec
commit 304ac5ec23
No known key found for this signature in database
3 changed files with 138 additions and 19 deletions

View file

@ -1579,8 +1579,9 @@ graphs:
storage: {}
# bearer_token_env: OMNIGRAPH_BEARER_TOKEN
server:
graph: local
serve:
graphs:
- local
bind: 127.0.0.1:8080
defaults: