Seed model and search settings on service start #49

Merged
weichen merged 4 commits from feature/svc-auto-seed into main 2026-09-30 11:56:50 +00:00
Owner

feature/svc-auto-seed:启动即播种模型配置

start/deploy 健康通过后自动写入设置(幂等):--model-base/--model-key/--model-name、--light-、--tavily-keys;SVC_MODEL_ 环境变量;/.svc.env 一次性配置文件(已 gitignore)——写一次,之后每次部署全自动。

实测:全量播种落库(密钥脱敏)、重启不重复播种且持久、.svc.env 生效、无参跳过。

# feature/svc-auto-seed:启动即播种模型配置 start/deploy 健康通过后自动写入设置(幂等):--model-base/--model-key/--model-name、--light-*、--tavily-keys;SVC_MODEL_* 环境变量;<repo>/.svc.env 一次性配置文件(已 gitignore)——写一次,之后每次部署全自动。 实测:全量播种落库(密钥脱敏)、重启不重复播种且持久、.svc.env 生效、无参跳过。
weichen added 4 commits 2026-09-30 11:56:50 +00:00
Why: a freshly deployed environment boots with an empty settings store,
so the first run dies with "main model unconfigured" and the user has
to open the settings UI before anything works - the opposite of
one-command bring-up.

Evidence: live matrix - full seed (chat+lightweight+tavily) lands in
the settings store (API view shows baseUrl/model with the key masked),
restart without flags does not re-seed and the settings persist,
.svc.env sourcing seeds a fresh environment from the one-time config
file, and a no-flag start stays silent. Also wrapped a /proc read race
in pid_alive that printed tr noise during stop.

Impact: --model-base/--model-key/--model-name, --light-base/-key/
-name, --tavily-keys on start/deploy (idempotent, only provided
fields); SVC_MODEL_*/SVC_LIGHT_*/SVC_TAVILY_KEYS env vars; <repo>/
.svc.env one-time config file (gitignored) makes every future deploy
self-configuring; auth-protected instances fall back to a clear hint.

Refs: feature/svc-auto-seed task card.
Record the sync checkpoint
ci / test (pull_request) Failing after 1m56s
e371a3c4fa
weichen merged commit 0e236bcbdc into main 2026-09-30 11:56:50 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#49