Skip to content

Isolate fake reviewer tests from host credentials - #1344

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/1267-reviewer-home
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/1267-reviewer-home

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The shared reviewer fixture uses a pytest-owned home and clears inherited reviewer state and authentication inputs. Authentication tests supply only synthetic inputs.

Closes #1267

Supersedes #1292. Merging main required an import-line conflict resolution, so this PR allows a fresh review on the same merged head.

Validation

Recorded for 6506018bdc18

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0
  • Before the fix, all five sampled Codex version and Claude runtime-path logs included an external synthetic credential path.
  • After merging main, 198 runner tests passed in a scrubbed environment. Their mount logs contained none of the synthetic external reviewer paths.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 6506018, approve

eowca and others added 2 commits November 26, 2026 02:19
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@eowca
eowca marked this pull request as draft November 26, 2026 01:49

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loopzero primary review by claude on 6506018bdc18059873aecdbf3c38d80b59b12a13, 31.5s: 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)

Findings without a file location:

  • suggestion: Per-test override cleanup now duplicates the shared fixture — test_blank_reviewer_home_matches_unset still has its own monkeypatch.delenv loop for CODEX_HOME, CLAUDE_CONFIG_DIR, CLAUDE_SECURESTORAGE_CONFIG_DIR and CLAUDE_AUTH_ENV (lines 882-884), and it re-imports runners locally (line 873). The autouse fake_bwrap fixture now clears the same variables, plus CODEX_AUTH_ENV. Keeping both copies means a later change to the fixture's list may not reach this test, or the reverse. Smallest fix: delete the local loop and the local import, so the fixture is the only place that does this cleanup, as the acceptance criteria require.

Native Claude output is retained in the restricted local review receipt.

@eowca
eowca marked this pull request as ready for review November 26, 2026 02:03
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 86700af at 02:10 UTC

6 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:04 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1367
  • ✅ Merged 02:10 · 86700af · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 86700af into main Nov 26, 2026
23 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1267-reviewer-home branch November 26, 2026 02:11
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.

Keep fake reviewer tests away from host Codex and Claude credential paths

1 participant