Skip to content

feat(id-config): explain output with per-value source and digest (#9111 F2) - #14878

Merged
dezren39 merged 2 commits into
mainfrom
claude/project-thread-cd0v1t
Nov 25, 2026
Merged

dezren39 merged 2 commits into
mainfrom
claude/project-thread-cd0v1t

Conversation

@dezren39

@dezren39 dezren39 commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Part of #9111

Before: there was no way to ask id-config where a resolved value came from. A reviewer had to re-derive scope narrowing, mode defaults and fan-out clamping by hand.

After: id_config::explain(input) returns every resolved value with the layer that set it (document, a named scope, mode default, fixed gate, default, or clamped:fanout.deadline_ms) and the same sha256 activation digest that loading reports. Its text form is deterministic, one path = value # source line per value, ending with the digest.

How: explain parses and resolves exactly as loading does, so a document that would not load is not explained. It then reads the raw document once more to tell values the document wrote from defaults. Extensions are listed as retained, not executed.

Tests: pkgs/id/tests/config_explain.rs covers scope attribution, mode defaults, untouched fan-out keys, timeout clamping, digest equality with resolved_digest, deterministic text, and refusal of an invalid document.


Generated by Claude Code


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

… F2)

explain() takes a config document as written and returns every
effective value with the layer that set it (default, document, fixed,
mode, override:<scope>, clamped:<path>) and the resolved-config digest.
Its Display form is the text an operator reviews before activation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 marked this pull request as ready for review November 25, 2026 06:52
@dezren39
dezren39 merged commit 710f091 into main Nov 25, 2026
1 check passed
@dezren39
dezren39 deleted the claude/project-thread-cd0v1t branch November 25, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants