U10b 首切片:config explain 键级来源溯源(cli > process-env > env-file > default) #12

Merged
weichen merged 1 commits from feature/u10b-config-explain-2026-09-29 into dev 2026-09-29 07:44:39 +00:00
Collaborator
  • config.Explain + 65 键 reporting-only 注册表(取值仍由 Load 唯一决定,抽样测试防漂移)
  • 秘密键永不显示值;env-file 层展示文件路径
  • server config explain 子命令,与 Load 同源的 env 文件栈解析
  • 单测:注册表活性抽样、四层归属、秘密脱敏;冒烟验证 CLI 覆盖行

后续 U10b 核心:ConfigSnapshot 全字段快照 + desired/applied revision + instance-settings 层。

- config.Explain + 65 键 reporting-only 注册表(取值仍由 Load 唯一决定,抽样测试防漂移) - 秘密键永不显示值;env-file 层展示文件路径 - server config explain 子命令,与 Load 同源的 env 文件栈解析 - 单测:注册表活性抽样、四层归属、秘密脱敏;冒烟验证 CLI 覆盖行 后续 U10b 核心:ConfigSnapshot 全字段快照 + desired/applied revision + instance-settings 层。
agent-bot added 1 commit 2026-09-29 07:39:29 +00:00
feat(cli): 'config explain' with per-key layer attribution (U10b slice 1)
CI / go-vet (pull_request) Successful in 13s
CI / short-tests-report (pull_request) Failing after 35s
CI / backup-restore-drill (pull_request) Successful in 25s
CI / web (pull_request) Successful in 31s
679028e44e
- config.Explain(envFiles, cliOverrides): per-key source layer following the
  application precedence cli > process-env > env-file > default; registry is
  reporting-only (values still applied solely by Load); secrets never shown
- ParseEnvFileKeys shares applyEnvFile's parsing rules
- cmd/server 'config explain' resolves the same env-file stack as Load and
  renders the attribution table; smoke: HTTP_PORT/AGENT_BACKEND -> cli
- tests: registry liveness sample + layer attribution (file/process/cli/
  default) + secret masking
- full per-field snapshot with applied/desired revisions remains U10b core
weichen approved these changes 2026-09-29 07:44:38 +00:00
weichen left a comment
Owner

explain 溯源批准。

explain 溯源批准。
weichen merged commit df6fe473b3 into dev 2026-09-29 07:44:39 +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#12