Repository navigation
Conversation
The old "env drift is cosmetic — accept without comment" rule was too broad: it correctly covers stable values (`""`, `C`, placeholders) but also waved through host-specific leaks. A regenerated snapshot in #2764 embedded a macOS `LLVM_PROFILE_FILE` tempdir path; the cosmetic framing nearly let it through review. Split the section: stable values stay accept-silently; host/temp/PID/ timestamp values are leaks that must be redacted via `add_redaction(".env.VAR", "[VAR]")` in `add_standard_env_redactions`. Also record the non-obvious gotcha that `add_filter` never touches the `env:` block (it only substitutes captured snapshot content), so a redaction is the only tool that works there. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
worktrunk-bot
approved these changes
May 15, 2026
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.
The
tests/CLAUDE.md"Snapshot env drift is cosmetic" rule was too broad. It correctly covers stable values ("",C, redacted placeholders) but also waved through host-specific leaks. While regenerating snapshots in #2764, a macOSLLVM_PROFILE_FILEtempdir path leaked into the env block and the "cosmetic" framing nearly let it pass review.This splits the section into two cases: stable values stay accept-silently; host/temp/PID/timestamp values are leaks that must be redacted via
add_redaction(".env.VAR", "[VAR]")inadd_standard_env_redactions. It also records the non-obvious gotcha thatadd_filternever touches theenv:block (it only substitutes on captured snapshot content) — the actual fix mechanism applied in #2764.Docs-only; no code or test changes.