U10b 核心二:instance-settings 第五层(最终生效层 + 恢复开关 + 自覆盖防护) #14

Merged
weichen merged 1 commits from feature/u10b-instance-settings-2026-09-29 into dev 2026-09-29 08:22:32 +00:00
Collaborator
  • config_root/instance-settings.json 为第五层:default > .env > 进程env > CLI > instance-settings
  • LoadForServe 统一 serve/check/explain 入口;老 Load 行为不变
  • 定位字段(env)自覆盖失败关闭;SETTINGS_MODE=ignore 跳层恢复
  • 反射类型化应用(含 duration 两种形态),未知字段/类型不匹配失败关闭;宽松文件权限拒绝;缺省键=继承
  • 8 项单测 + e2e 冒烟(覆盖生效/ignore 回退)
- config_root/instance-settings.json 为第五层:default > .env > 进程env > CLI > instance-settings - LoadForServe 统一 serve/check/explain 入口;老 Load 行为不变 - 定位字段(env)自覆盖失败关闭;SETTINGS_MODE=ignore 跳层恢复 - 反射类型化应用(含 duration 两种形态),未知字段/类型不匹配失败关闭;宽松文件权限拒绝;缺省键=继承 - 8 项单测 + e2e 冒烟(覆盖生效/ignore 回退)
agent-bot added 1 commit 2026-09-29 08:17:22 +00:00
feat(config): instance-settings fifth layer (U10b core 2, KTD16/17)
CI / go-vet (pull_request) Successful in 14s
CI / short-tests-report (pull_request) Failing after 36s
CI / backup-restore-drill (pull_request) Successful in 26s
CI / web (pull_request) Successful in 31s
28a2c8ca2b
- <config_root>/instance-settings.json is the final config layer:
  default > env-file(s) > process-env > cli > instance-settings
- LoadForServe wires the CLI mutation hook BEFORE instance settings;
  serve/check/explain all use it; plain Load keeps legacy behavior
- bootstrap denylist (env) fails closed (no self-locating file loop);
  SETTINGS_MODE=ignore skips the layer as the recovery path
- reflection-based typed application: string/int/bool/duration(string or
  seconds)/string-array; unknown fields and type mismatches fail closed
- group/world-writable settings file rejected; absent key = inherit
- sources table gains the instance-settings layer; e2e smoke verified
  (override applies; ignore-mode reverts to default)
weichen approved these changes 2026-09-29 08:22:32 +00:00
weichen left a comment
Owner

第五层批准:冒烟与 8 项单测全过。

第五层批准:冒烟与 8 项单测全过。
weichen merged commit a22f6b64d9 into dev 2026-09-29 08:22:32 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System#14