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

Closed
weichen wants to merge 2 commits from feature/config-surface into main
Owner

设计:documents 仓 2026-09-30-configuration-surface(PR#6)。实现:internal/config 四源管道(默认→文件→AGENT_SYSTEM_* 环境→显式 CLI)+ config explain 只读诊断(DSN 脱敏)+ envs 三示例 + PROJECT.md 配置节。附带 build-blocker 修复:嵌套 core 钉子从仅归档可达的 019617e 推进到 core 当前 main 4ee1979(fresh clone 此前无法物化)。验证:internal/config 单测全覆盖 + 全仓 12 包 PASS + explain 实弹(见任务卡)。

设计:documents 仓 2026-09-30-configuration-surface(PR#6)。实现:internal/config 四源管道(默认→文件→AGENT_SYSTEM_* 环境→显式 CLI)+ config explain 只读诊断(DSN 脱敏)+ envs 三示例 + PROJECT.md 配置节。附带 build-blocker 修复:嵌套 core 钉子从仅归档可达的 019617e 推进到 core 当前 main 4ee1979(fresh clone 此前无法物化)。验证:internal/config 单测全覆盖 + 全仓 12 包 PASS + explain 实弹(见任务卡)。
weichen added 2 commits 2026-09-30 04:18:23 +00:00
Why: main pinned 019617e, a pre-rewrite chain SHA reachable only via the
rewrite-backup archive ref; fresh clones cannot materialize it (the earlier
advance fixed the worktree state but staged the pre-image pin).
Evidence: git ls-tree shows 019617e on origin/main while core advertises
4ee1979 as main; local builds passed only because the clones carry the
pre-image objects from the chain-bundle fetches.
Impact: build-blocker fix folded into this feature branch; pins core at its
current main.
Refs: documents/records/2026-09-30-history-migration.md
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 closed this pull request 2026-09-30 04:18:24 +00:00
weichen deleted branch feature/config-surface 2026-09-30 04:18:24 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
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#3