Repository navigation
docs(utils): reconcile bug_report path-free docstring and clarify redact_paths contract (#9644) - #9650
Closed
ShayanMuhammad-CS wants to merge 1 commit into
Closed
docs(utils): reconcile bug_report path-free docstring and clarify redact_paths contract (#9644)#9650ShayanMuhammad-CS wants to merge 1 commit into
ShayanMuhammad-CS wants to merge 1 commit into
Conversation
…act_paths contract (OpenMined#9644)
Collaborator
|
Thanks for picking this up! We decided to remove |
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.
Pull Request: Reconcile
sy.bug_reportdocstring and clarifyredact_pathscontractTitle
docs(utils): reconcile bug_report path-free docstring and clarify redact_paths contract (#9644)Description
What does this PR do?
Reconciles the docstring in
sy.bug_report()(syft/utils.py) to align with the privacy guarantees of its collectors and footer output, while formally documenting theredact_pathsparameter as a backward-compatible contract.Context & Root Cause
In Issue #9644, it was noted that:
sy.bug_report()'s docstring stated:"The output is safe to share: it prints only versions, paths, and config metadata."However, all collectors and the printed NOTES section explicitly guarantee:
"This report contains no tokens, secrets, paths, or PII."redact_pathsparameter was accepted in the signature but unused by collectors since the report is path-free by design.Changes
syft/utils.py:658docstring to clarify that only versions and config metadata are included, omitting the misleading mention of paths.redact_pathsin docstring args: preserved as a stable, forward/backward compatible parameter.tests/unit/test_bug_report.pycovering:as_dict=True).redact_paths=Falseandredact_paths=True.Closes #9644