Repository navigation
Free 152 test lines by sharing setup and retaining behavior checks - #1732
Conversation
Architecture-Review: unchanged; the patch only changes tests and retains the delivery and trust behavior. Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the conflict resolution carries the landed CPU-grant case into the shared test fixture. Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 18738b983a35ebfaa5b5eaa9a94571e7caf06e24, 48.4s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| @pytest.mark.parametrize("state", [ | ||
| ".claude", ".codex", ".claude.json", "custom-claude", "custom-codex", "secure-storage", | ||
| ".claude", ".codex", ".claude.json", "custom-claude", "custom-codex", "secure-storage", "blank-secure-storage", | ||
| ]) |
There was a problem hiding this comment.
suggestion: The blank-secure-storage case runs four duplicate parameter combinations
The test is parameterized by state × exposure, so adding blank-secure-storage creates five cases. Only exact tests something new. It unsets CLAUDE_CONFIG_DIR and checks that a blank CLAUDE_SECURESTORAGE_CONFIG_DIR keeps the default ~/.claude protected. In the other four (ancestor, descendant, alias, repository), CLAUDE_CONFIG_DIR stays set to custom-claude and the protected path becomes host/.claude. That makes them the same as the existing .claude cases, except for a blank secure-storage variable that does not affect how .claude is protected. These four cases add sandbox runs without catching anything new, and the if blank and exposure == "exact" branch makes the function harder to read. Not blocking. To fix, either skip the blank state for exposures other than exact, or unset CLAUDE_CONFIG_DIR for every blank case so each one checks that default ~/.claude stays protected.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Free 152 test lines by sharing setup and retaining behavior checks
Context and goal
Refs #575
Acceptance
Notes
Each mutation ran in a separate source snapshot and was restored before the corresponding normal run.
The corresponding restored tests passed for all 12 mutations.
Base
main @ c81807a
Base: c81807a
Validation
Recorded for
18738b983a35uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review