Skip to content

fix: #467 guard no longer ships or exempts the maintainer's real username - #475

Merged
fdaviddpt merged 1 commit into
mainfrom
fix/474
Aug 29, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
fix/474

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Closes #474.

The guard #467 added (tests/test_no_real_home_paths_467.py) to catch a real OS username shipping in a committed file itself quoted the real username twice in its own module docstring, and its tree-wide username scan exempted its own file (THIS_FILE) from the scan. Result: 8 passed on a tree containing exactly the value the guard exists to detect.

What changed

  • Both docstring occurrences of the real username are replaced with sanitized-user, the placeholder already standardised on elsewhere in the file and in tests/test_codex_upsubmit_stdout_451.py.
  • The THIS_FILE exemption on the tree-wide username scan is removed. Argued in the file's own docstring (the Scoped OUT of detector 2 section was rewritten): with nothing real left to quote, the exemption's only remaining job would be to permit a future real quotation, which a placeholder makes unnecessary. Keeping the exemption around just in case is the same kind of narrow, individually-defensible carve-out whose composition produced this issue.
  • The now-unused THIS_FILE variable definition is removed.
  • changelog.d/474.fixed.md added.

Verification

Verified the way the issue asked: git grep -n floriandavid -- . returns nothing at all, not the suite going green. Also ran the red/green pair for removing the exemption itself: with THIS_FILE's skip removed but the docstring still carrying the real username, the guard failed red, naming itself as the offending file; after the docstring fix it passed green, 8 passed, for the right reason.

Review

An Explore reviewer and the oss:auditor both reviewed the committed diff independently and both returned NO FINDINGS / FINDINGS: 0, classified via scripts/review_return.py as no-findings in both cases.

below-bar

None raised in this diff.

…name

Both docstring occurrences of the real OS username are replaced with the
sanitized-user placeholder the fixture already standardises on, and the
THIS_FILE self-exemption on the tree-wide username scan is removed --
argued in the file's own docstring -- since a placeholder explains the
mechanism identically and the exemption's only remaining job would have
been to permit a future quotation rather than excuse a present one.

Fixes #474

Co-Authored-By: Max <noreply>
@fdaviddpt
fdaviddpt merged commit 3485000 into main Aug 29, 2026
13 checks passed
@fdaviddpt
fdaviddpt deleted the fix/474 branch August 29, 2026 15:42
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.

The #467 guard still ships the maintainer's username in its own docstring, and exempts itself from noticing

1 participant