Repository navigation
feat(id-config): explain output with per-value source and digest (#9111 F2) - #14878
Merged
Merged
Conversation
… 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]>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, orclamped:fanout.deadline_ms) and the samesha256activation digest that loading reports. Its text form is deterministic, onepath = value # sourceline per value, ending with the digest.How:
explainparses 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.rscovers scope attribution, mode defaults, untouched fan-out keys, timeout clamping, digest equality withresolved_digest, deterministic text, and refusal of an invalid document.Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.