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
2 Commits
Author SHA1 Message Date
weichen 9a1b068504 Add the startup configuration pipe with file and env layers plus explain
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
2026-09-30 04:18:22 +00:00
weichen 29c4d574c5 Advance the nested core gitlink to the post-rewrite main
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
2026-09-30 04:17:50 +00:00