U10b 核心一:字段级来源快照(反射分层 diff,取代键注册表) #13

Merged
weichen merged 1 commits from feature/u10b-field-sources-2026-09-29 into dev 2026-09-29 08:11:16 +00:00
Collaborator
  • LoadWithSources 在 default/env-file×N/process-env 边界拍反射快照,字段级 diff 得精确来源——零注册表零漂移,新增字段自动纳入
  • Load 行为与签名不变;ApplyCLIOverlay 以克隆配置记录 cli 层
  • config explain 升级为 59 字段来源表(只报来源/状态,不打印值,KTD17)
  • 单测:文件/进程覆盖归属、CLI 覆盖、Load 回归

后续:instance-settings 第五层 + desired/applied revision(核心二)。

- LoadWithSources 在 default/env-file×N/process-env 边界拍反射快照,字段级 diff 得精确来源——零注册表零漂移,新增字段自动纳入 - Load 行为与签名不变;ApplyCLIOverlay 以克隆配置记录 cli 层 - config explain 升级为 59 字段来源表(只报来源/状态,不打印值,KTD17) - 单测:文件/进程覆盖归属、CLI 覆盖、Load 回归 后续:instance-settings 第五层 + desired/applied revision(核心二)。
agent-bot added 1 commit 2026-09-29 08:06:06 +00:00
feat(config): field-level source attribution via layer snapshots (U10b core 1/2)
CI / go-vet (pull_request) Successful in 13s
CI / short-tests-report (pull_request) Failing after 36s
CI / backup-restore-drill (pull_request) Successful in 37s
CI / web (pull_request) Successful in 32s
93ab4802e9
- LoadWithSources: reflection snapshots at layer boundaries (default ->
  env-file per file -> process-env incl. DSN/CORS/KB normalization); diff
  yields exact per-field source - no manual key registry, no drift
- Load unchanged signature/behavior (wrapper); ApplyCLIOverlay records the
  cli layer on a cloned config
- 'config explain' upgraded to field table (59 fields; source + set flag
  only, values never printed per KTD17)
- replaces the reporting-only key registry from PR #12
- tests: layer attribution (file/process override), cli overlay, Load regression
weichen approved these changes 2026-09-29 08:11:15 +00:00
weichen left a comment
Owner

字段级来源快照批准:反射 diff 零漂移。

字段级来源快照批准:反射 diff 零漂移。
weichen merged commit 9d550cfaf1 into dev 2026-09-29 08:11:16 +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#13