Add the startup configuration pipe with file and env layers plus explain #4

Merged
weichen merged 1 commits from feature/config-surface into main 2026-09-30 04:19:53 +00:00
Owner

重开(PR#3 因分支被清误关)。设计:documents PR#6;实现:internal/config 四源管道 + config explain(DSN 脱敏)+ envs 示例 + PROJECT.md 配置节;附带嵌套 core 钉子 build-blocker 修复(019617e→4ee1979,fresh clone 此前无法物化)。验证:config 单测全覆盖 + 全仓 12 包 PASS + explain 实弹。

重开(PR#3 因分支被清误关)。设计:documents PR#6;实现:internal/config 四源管道 + config explain(DSN 脱敏)+ envs 示例 + PROJECT.md 配置节;附带嵌套 core 钉子 build-blocker 修复(019617e→4ee1979,fresh clone 此前无法物化)。验证:config 单测全覆盖 + 全仓 12 包 PASS + explain 实弹。
weichen added 1 commit 2026-09-30 04:19:15 +00:00
Why: startup had only defaults and CLI flags; dev/test/prod operation needs
the standard baseline (explicit file, environment, explicit-only CLI) and a
read-only diagnostic.
Evidence: internal/config unit tests cover precedence, unset-CLI no-override,
presence-based file semantics, unknown-key/missing-file errors, env bool
parsing, explain source labelling and DSN redaction; full suite 12 packages
pass; live run of config explain with envs/prod.json shows correct layer
attribution and redaction.
Impact: serve gains --config and AGENT_SYSTEM_* env overrides (behavior
unchanged when neither is used); new config explain subcommand; envs/
examples and PROJECT.md configuration section.
Refs: documents docs/proposals/2026-09-30-configuration-surface.md; standards/configuration.md
weichen force-pushed feature/config-surface from 9a1b068504 to 66b4bbf55a 2026-09-30 04:19:15 +00:00 Compare
weichen merged commit 1e62188709 into main 2026-09-30 04:19:53 +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-Backend#4